A structural protocol for AI agents to organize code into modular subskills and centralized data directories.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install subskill-generation-rule
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install subskill-generation-rule using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Subskill Generation Rule provides a standardized framework for managing the lifecycle and organization of AI-generated assets. By enforcing a strict directory hierarchy, it ensures that functional code, documentation, and data artifacts remain isolated and discoverable. This approach is essential for developers building complex Openclaw Skills that require modularity and long-term maintainability.
This rule prevents the common issue of root-level clutter in AI projects. It mandates that any new logic be encapsulated within a feature-specific subfolder, while generated recommendations or temporary results are kept within a dedicated data store. This separation of concerns allows both human developers and AI agents to navigate the codebase with high precision.
To apply these organization rules to your Openclaw Skills, structure your project directory according to the following layout:
mkdir -p data subskills
touch SKILL.md config.json
Ensure your agent's system prompt or root SKILL.md references these placement conventions to maintain consistency during automated code generation.
The rule organizes project data using a hierarchical taxonomy to ensure clear separation between logic and output.
| Directory | Content Type | Description |
|---|---|---|
data/ |
Artifacts | Stores generated recommendations, results, and logs. |
subskills/ |
Feature Logic | Parent directory for all modular functional scripts. |
subskills/<feature>/ |
Module Root | Contains the code (e.g., .py) and local SKILL.md for a specific feature. |
config.json |
Configuration | Global settings for the skill and its subskills. |
Loading
A data-driven decision engine for CN A-share momentum trading with a 1-5 day horizon.

Instantly transform local or Hugging Face models into OpenAI-compatible endpoints for direct chat interaction within your agent environment.

An automated maintenance skill that updates all agent capabilities and generates comprehensive versioning reports.

An AI-powered negotiation assistant designed to handle B2B sales objections through strategic value-shifting and diagnostic communication.

A zero-token Python script for retrieving real-time weather data and lifestyle indices for Chinese cities directly from official sources.

An automated downloader that extracts high-resolution images and videos from Instagram posts using the Cobalt API.








































