Code and document template generation skill with mandatory schema validation against schemas/template.schema.json
Code and document template generation skill with mandatory schema validation against schemas/template.schema.json
Generates code and document templates for target projects with mandatory schema validation against schemas/template.schema.json.
Template metadata (embedded in .j2/.tmpl files as comment) MUST validate against schemas/template.schema.json. Required fields:
| Field | Type | Constraints |
|-||-|
| name | string | Min 3 chars |
| description | string | Min 20 chars |
| version | string | Semantic version |
| category | enum | ONLY: agents, graphs, memory, rag, tests, tools, ai, python, docs, config, trading, sap, dotnet, java, web |
| variables | array | Min 1 item, each with name, type, description, required |
| produces | string | What file type is generated |
| used_by_skills | array | Min 1 item |
| used_by_blueprints | array | Min 1 item |
category uses allowed enum valuename, type, description, requiredused_by_skillsused_by_blueprints (use ["none"] if not applicable)produces clearly describes output file type| Violation | Fix |
|--|--|
| Missing used_by_blueprints | Add used_by_blueprints: ["none"] if no blueprint |
| Variable missing required | Each variable needs name, type, description, required |
| Empty variables | Add at least 1 variable |
| Invalid category | Use one of the allowed enum values |
| Short description | Min 20 chars |
Based on stack, identify template categories:
| Stack | Categories | |-|| | Python | service-class, repository, model, schema, test-class | | TypeScript | component, hook, service, test | | Java | controller, service, repository, entity, dto, test | | ABAP | global-class, service-class, test-class, enhancement |
For each category:
schemas/template.schema.jsonTemplate structure:
{directories.templates}/{language}/{category}/{template-name}.{ext}
Create standard document templates:
| Template | Purpose |
|-||
| implementation_plan.md | Implementation planning |
| technical_spec.md | Technical specification |
| test_plan.md | Test planning |
Use consistent variable placeholders:
| Variable | Description |
|-|-|
| {CLASS_NAME} | Class name |
| {METHOD_NAME} | Method name |
| {FILE_NAME} | File name |
| {DESCRIPTION} | Description text |
| {TICKET_ID} | Ticket identifier |
Templates in project structure:
{TARGET}/
├── {directories.templates}/
│ ├── {language}/
│ │ ├── service-class/
│ │ ├── test-class/
│ │ └── ...
│ └── docs/
│ ├── implementation_plan.md
│ └── technical_spec.md
{CLASS_NAME}, {METHOD_NAME}) and document all placeholders{directories.XXX} path variables — NEVER hardcode directory paths like templates/ or knowledge/ in generated template content. See {directories.config}/settings.json for the full mapping.schemas/template.schema.json.{directories.knowledge}/stack-capabilities.json{directories.knowledge}/knowledge-cross-reference.json{directories.patterns}/templates/template-pattern.jsonschemas/template.schema.jsonThis skill should be used when strict adherence to the defined process is required.
npx skills add gitwalter/generating-templates下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer