template-creator

安装量: 50
排名: #14822

安装

npx skills add https://github.com/oimiragieo/agent-studio --skill template-creator
Mode: Cognitive/Prompt-Driven
-- No standalone utility script; use via agent context.
Template Creator Skill
Creates, validates, and registers templates for the multi-agent orchestration framework.
+==============================================================+
| MANDATORY: Research-Synthesis MUST be invoked BEFORE |
| this skill. Invoke: Skill({ skill: "research-synthesis" }) |
| FAILURE TO RESEARCH = UNINFORMED TEMPLATE = REJECTED |
+==============================================================+
| |
| DO NOT WRITE TEMPLATE FILES DIRECTLY! |
| |
| This includes: |
| - Copying archived templates |
| - Restoring from _archive/ backup |
| - "Quick" manual creation |
| |
| WHY: Direct writes bypass MANDATORY post-creation steps: |
| 1. Template catalog update (template NOT discoverable) |
| 2. README.md update (template INVISIBLE to consumers) |
| 3. Consuming skill update (template NEVER used) |
| 4. CLAUDE.md update (if user-invocable) |
| |
| RESULT: Template EXISTS in filesystem but is NEVER USED. |
| |
| ENFORCEMENT: unified-creator-guard.cjs blocks direct |
| template writes. Override: CREATOR_GUARD=off (DANGEROUS) |
| |
| ALWAYS invoke this skill properly: |
| Skill({ skill: "template-creator" }) |
| |
+==============================================================+
ROUTER UPDATE REQUIRED (CRITICAL - DO NOT SKIP)
After creating ANY template, you MUST update:
.claude/templates/README.md
- Add template entry
.claude/context/artifacts/catalogs/template-catalog.md
- Add catalog entry
CLAUDE.md Section 2 or 8.5 if template is framework-significant or user-invocable
Consuming creator skill if template standardizes an artifact type
.claude/context/memory/learnings.md
- Record creation
Verification:
grep
""
.claude/templates/README.md
||
echo
"ERROR: README NOT UPDATED!"
grep
""
.claude/context/artifacts/catalogs/template-catalog.md
||
echo
"ERROR: CATALOG NOT UPDATED!"
WHY
Templates not in the catalog are invisible to other creators and will never be used.
Overview
Templates ensure consistency across the multi-agent framework. This skill creates templates for:
Agent definitions
- Standardized agent structures
Skill definitions
- Reusable capability patterns
Workflow definitions
- Multi-agent orchestration patterns
Spawn prompts
- Agent spawn prompt templates consumed by
spawn-template-resolver.cjs
Reports
- Report document templates
Code style guides
- Language-specific coding standards
General documents
- ADRs, specs, checklists, and other framework documents
Core principle:
Templates are the DNA of the system. Consistent templates produce consistent, predictable agents and skills.
When to Use
Always:
Creating a new type of artifact that will be replicated
Standardizing an existing pattern across the codebase
Adding a new template category
Improving existing templates with better patterns
Exceptions:
One-off files that will never be replicated
Temporary/throwaway code
Template Types
Type
Location
Count
Purpose
Key Consumers
Spawn
.claude/templates/spawn/
4
Agent spawn prompt templates
router, spawn-prompt-assembler
Agent
.claude/templates/agents/
2
Agent definition boilerplate
agent-creator
Skill
.claude/templates/skills/
1
Skill definition boilerplate
skill-creator
Workflow
.claude/templates/workflows/
1
Workflow definition boilerplate
workflow-creator
Report
.claude/templates/reports/
5
Report document templates
qa, developer, researcher
Code Style
.claude/templates/code-styles/
3
Language style guides
developer, code-reviewer
Document
.claude/templates/
(root)
8+
General document templates (ADR, spec)
planner, architect, qa
Cross-Reference:
See
.claude/context/artifacts/catalogs/template-catalog.md
for the complete inventory (28 active templates). For spawn template resolution logic, see
.claude/lib/spawn/spawn-template-resolver.cjs
.
Template Security Compliance
Critical Security Requirements:
No Secrets (SEC-TC-007):
Templates MUST NOT include secrets, credentials, tokens, or API keys
Path Safety:
All template references MUST use relative paths (
.claude/templates/...
), never absolute paths
No Sensitive Metadata:
Templates MUST NOT expose internal system paths or user directories
No Windows Reserved Names:
Template names MUST NOT use
nul
,
con
,
prn
,
aux
,
com1
-
com9
,
lpt1
-
lpt9
Retention Mandates (SEC-TMPL-006):
Templates flagged by SEC-TMPL-006 MUST remain at designated locations
Spawn Template Placeholder Safety (SEC-TC-001):
Spawn templates with
{{PLACEHOLDER}}
tokens in
prompt:
fields MUST reference
sanitizeSubstitutionValue()
from
prompt-factory.cjs
for value sanitization. Unsanitized placeholders in spawn prompts create a prompt injection surface. Do NOT place
{{PLACEHOLDER}}
tokens where user-provided input is directly substituted without sanitization.
No Eval/Exec:
Templates MUST NOT contain
eval()
,
exec()
,
Function()
, or other code execution patterns
Enforcement:
unified-creator-guard.cjs
hook blocks direct template writes (default: block mode).
The Iron Law
NO TEMPLATE WITHOUT PLACEHOLDER DOCUMENTATION
Every
{{PLACEHOLDER}}
must have a corresponding comment explaining:
What value should replace it
Valid options/formats
Example value
No exceptions:
Every placeholder is documented
Every required field is marked
Every optional field has a default
Workflow Steps
Step 0: Research-Synthesis (MANDATORY - BLOCKING)
Per CLAUDE.md Section 3 requirement, invoke
research-synthesis
BEFORE template creation:
Skill
(
{
skill
:
'research-synthesis'
}
)
;
Research focuses for templates:
Search existing templates:
Glob: .claude/templates/*/.md
Review template catalog: Read
.claude/context/artifacts/catalogs/template-catalog.md
Check if similar template already exists in the ecosystem
Research domain-specific template structures
(minimum 2 queries required):
WebSearch
(
{
query
:
'best template report or files 2026'
}
)
;
WebSearch
(
{
query
:
'industry standard