subskill-generation-rule
Define and enforce project orgnization rules for generating subskills. put generated recommendation outputs under data/, place new feature scripts under subskills/<feature>/, and optionally add SKILL.md inside each feature folder to keep main skill root clean.
Why use this skill?
Standardize your OpenClaw agent project structure with the subskill-generation-rule. Keep your workspace clean, modular, and easy to maintain.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/kenera/subskill-generation-ruleWhat This Skill Does
The subskill-generation-rule acts as an architectural blueprint for OpenClaw AI agents, ensuring that projects remain maintainable as they scale. As AI agents generate more code and artifacts, skill roots often become cluttered with one-off scripts and data files. This skill enforces a structured hierarchy by mandating that artifacts go into a data/ directory and feature-specific code is isolated within subskills/<feature>/. By centralizing documentation into a SKILL.md file within each feature folder, it ensures that project knowledge is decentralized and contextually scoped, preventing the main root directory from becoming an unmanageable mess. This is essential for long-term project viability.
Installation
To integrate this architectural standard into your current OpenClaw project, run the following command in your terminal:
clawhub install openclaw/skills/skills/kenera/subskill-generation-rule
Use Cases
This skill is highly recommended for developers who are building modular agents where multiple features or capabilities are added over time. It is particularly useful when:
- Refactoring legacy projects: Use it to reorganize scattered files into a standard structure.
- Large-scale automation: When your agent needs to generate dozens of Python scripts or temporary logs, this keeps the workspace clean.
- Collaborative environments: Standardizing folder layouts ensures that multiple AI agents or human developers know exactly where to find source code, configuration, and documentation.
- Preventing Technical Debt: By enforcing these rules early, you avoid the 'spaghetti root' problem where root-level scripts become impossible to track.
Example Prompts
- "Apply the subskill-generation-rule structure to my current project. Move all log files to data/ and group my report generators into subskills/report-generator/."
- "I need to add a new data extraction feature. Please set up the folder structure according to the subskill-generation-rule and create a SKILL.md file for the documentation."
- "Refactor my root directory. Move all stray Python scripts into subskills/ and ensure every module has its own SKILL.md for instructions."
Tips & Limitations
To maximize effectiveness, initialize this skill at the very start of your project development. While it is possible to apply it retrospectively, moving existing files might break hardcoded paths in your previous configurations. Always verify that your import statements are updated after moving scripts into the subskills/ subdirectories. Remember that this skill focuses on structure; it does not automatically refactor the logic within your code, only the file placement conventions.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-kenera-subskill-generation-rule": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read
Related Skills
中国城市天气Weather in China
中文天气查询工具 - 使用中国天气网获取实时天气(无需API密钥,不依赖大模型)
weather-zh
中文天气查询工具 - 使用中国天气网获取实时天气(无需API密钥,不依赖大模型)
A股短线交易决策 A-Share Short-Term Decision
A-share short-term trading decision skill for 1-5 day horizon. Use when you need real-data market sentiment, sector rotation, strong stock scanning, capital flow confirmation, date-based short-term signal scoring, prediction logging, and next-day market comparison for CN A-share momentum trading.