django-claw for Openclaw

A secure AI-agent skill for executing Django management commands and ORM queries through a controlled script dispatcher.

manojrammurthy
v0.1.0
Feb 26, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install django-claw-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install django-claw-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is django-claw?

django-claw serves as the canonical interface for managing Django projects using Openclaw Skills. Instead of allowing direct shell access to Python, this skill utilizes a strict dispatcher model to route specific commands through pre-defined bash scripts. This architecture ensures that interactions remain consistent, safe, and highly predictable for AI agents.

The skill provides a comprehensive suite of tools to inspect Django applications, manage migrations, and interact with the database ORM. By wrapping complex management logic into simple commands, it allows developers to maintain their Django environments without the risk of manually constructing shell commands or violating project best practices.

django-claw Use Cases

  • Running database migrations and tracking pending changes safely.
  • Inspecting project structure including models, apps, and registered URLs.
  • Executing Python code directly via the Django shell for rapid data inspection.
  • Enabling read-only mode to prevent destructive commands in production environments.
  • Checking project settings and server logs without leaving the agent interface.

How django-claw Works

  1. The user provides a specific django-claw command, such as django-claw migrate or django-claw models.
  2. The skill agent consults a strict Command Mapping table to find the exact script path associated with the request.
  3. The dispatcher executes the corresponding bash script from the internal scripts directory.
  4. If a safety check is required, such as verifyng read-only status, the script performs this validation before proceeding.
  5. The raw output of the script is captured and returned to the user alongside a concise plain-English summary.

django-claw Setup

To integrate this capability into your workflow, ensure you have python3 and bash installed on a macOS or Linux environment. Initialize the configuration by running the setup command:

# Initialize the django-claw configuration
django-claw setup

This will trigger an automated wizard to detect your Django environment and configure necessary paths.

django-claw Data Schema & Taxonomy

The skill organizes its operations through a structured mapping and metadata system to ensure compatibility across Openclaw Skills environments:

Component Details
Binary Requirements Depends on bash and python3 binaries.
OS Compatibility Optimized for darwin (macOS) and linux distributions.
Command Mapping A lookup table that strictly links user invocations to script files (e.g., list-models.sh).
Safety Logic Integrated read-only flags that block write operations when toggled.

django-claw Advanced Features

  • Integrated Read-Only Toggle: Instantly switch between safe inspection and active modification modes.
  • Command Dispatch Rules: Prevents command paraphrasing to ensure the exact script logic is always followed.
  • Direct ORM Querying: A dedicated shell command allows for execution of complex Python snippets against the database.
  • Automatic Dependency Detection: Verifies environment constraints before executing scripts to prevent runtime failures.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins bashpython3
Github Stars: 0
forks: 0

Featured*