system-create-skill
π―Skillfrom multicam/qara
system-create-skill skill from multicam/qara
Installation
npx skills add https://github.com/multicam/qara --skill system-create-skillSkill Details
|
Workflow Routing (SYSTEM PROMPT)
CRITICAL: Every skill creation request MUST follow architectural compliance validation.
When user requests creating a new skill:
Examples: "create skill", "create a skill", "new skill", "build skill", "make skill", "skill for X", "Create-A-Skill"
β READ: ${PAI_DIR}/skills/CORE/skill-structure.md
β READ: ${PAI_DIR}/skills/system-create-skill/workflows/create-skill.md
β EXECUTE: Complete skill creation workflow with architectural validation
When user requests validating existing skill:
Examples: "validate skill", "check skill compliance", "audit skill", "verify skill structure"
β READ: ${PAI_DIR}/skills/CORE/skill-structure.md
β READ: ${PAI_DIR}/skills/system-create-skill/workflows/validate-skill.md
β EXECUTE: Skill compliance audit workflow
When user requests updating existing skill:
Examples: "update skill", "refactor skill", "fix skill routing", "add workflow to skill"
β READ: ${PAI_DIR}/skills/CORE/skill-structure.md
β READ: ${PAI_DIR}/skills/system-create-skill/workflows/update-skill.md
β EXECUTE: Skill update workflow with compliance checking
When user requests canonicalizing a skill:
Examples: "canonicalize skill", "canonicalize this skill", "canonicalize [skill-name]", "rebuild skill to standards", "refactor skill to canonical structure"
β READ: ${PAI_DIR}/skills/CORE/skill-structure.md
β READ: ${PAI_DIR}/skills/system-create-skill/workflows/canonicalize-skill.md
β EXECUTE: Complete skill canonicalization workflow - analyze current skill structure and rebuild according to canonical architecture while preserving functionality
---
When to Activate This Skill
Direct Skill Creation Requests
- "create skill", "create a skill", "new skill for X"
- "build skill", "make skill", "add skill"
- "Create-A-Skill" (canonical name)
- "skill for [purpose]" or "need a skill that does X"
Skill Validation Requests
- "validate skill", "check skill compliance", "audit skill structure"
- "verify skill follows standards", "is this skill compliant"
- "review skill architecture", "skill quality check"
Skill Update Requests
- "update skill", "refactor skill", "fix skill routing"
- "add workflow to skill", "extend skill"
- "reorganize skill structure", "migrate skill"
Skill Canonicalization Requests
- "canonicalize skill", "canonicalize this skill", "canonicalize [skill-name]"
- "rebuild skill to standards", "refactor skill to canonical structure"
- "fix skill compliance", "bring skill to canonical form"
- "standardize skill structure", "make skill compliant"
Quality & Compliance Indicators
- User mentions "architectural standards" or "compliance"
- User references "skill-structure.md"
- User asks about "skill best practices" or "skill patterns"
- User needs to ensure skill follows "template" or "philosophy"
---
Core Principles
Architectural Compliance
MANDATORY: Every skill MUST comply with the canonical architecture defined in:
${PAI_DIR}/skills/CORE/skill-structure.md
This document defines:
- The 3 skill archetypes (Minimal, Standard, Complex)
- The 4-level routing hierarchy
- Mandatory structural requirements
- Workflow organization patterns
- Naming conventions
- Routing patterns
NON-NEGOTIABLE Requirements:
- Workflow Routing Section FIRST - Immediately after YAML frontmatter
- Every Workflow Must Be Routed - No orphaned workflow files
- Every Secondary File Must Be Linked - From main SKILL.md body
- Canonical Structure Template - Follow the exact structure
- Progressive Disclosure - SKILL.md β workflows β documentation β references
Template-Driven Philosophy
Consistency over creativity when it comes to structure:
- Use established archetypes (Minimal/Standard/Complex)
- Follow canonical naming conventions
- Implement proven routing patterns
- Maintain predictable organization
Creativity where it matters:
- Domain-specific workflows
- Custom capabilities
- Unique integrations
- Innovative approaches to problems
Quality Gates
Every created/updated skill must pass:
- Structural Validation
- Correct archetype directory structure
- Proper file naming conventions
- Required files present
- Routing Validation
- Workflow Routing section present and FIRST
- All workflows explicitly routed
- Activation triggers comprehensive (8-category pattern)
- Documentation Validation
- All files referenced in SKILL.md
- Clear purpose and when-to-use guidance
- Examples provided
- Integration Validation
- No duplication of CORE context
- Compatible with agent workflows
---
Skill Creation Process
Step 1: Define Skill Purpose
Ask user to clarify:
- What does this skill do? (Core capability)
- When should it activate? (Trigger patterns)
- What workflows does it need? (Count and categories)
- What integrations? (Agents, external services)
Step 2: Choose Archetype
Based on workflow count and complexity:
Minimal Skill (1-3 workflows)
```
skill-name/
βββ SKILL.md
βββ workflows/ OR assets/
βββ *.md
```
Standard Skill (3-15 workflows)
```
skill-name/
βββ SKILL.md
βββ workflows/
β βββ *.md (flat or nested)
βββ [optional: documentation/, tools/, references/]
```
Complex Skill (15+ workflows)
```
skill-name/
βββ SKILL.md
βββ CONSTITUTION.md (optional)
βββ METHODOLOGY.md (optional)
βββ documentation/
βββ workflows/ (nested)
βββ references/
βββ state/
βββ tools/
```
Step 3: Read Architecture Document
ALWAYS read the canonical architecture before creating:
```bash
${PAI_DIR}/skills/CORE/skill-structure.md
```
This ensures:
- Latest architectural requirements
- Current best practices
- Proven routing patterns
- Quality standards
Step 4: Create Skill Structure
Use the canonical template from skill-structure.md:
```markdown
---
name: skill-name
description: |
What this skill does and when to use it.
USE WHEN: user says "trigger phrase", "another trigger", or any related request.
---
Workflow Routing (SYSTEM PROMPT)
When user requests [action 1]:
Examples: "actual user phrases", "variations", "synonyms"
β READ: ${PAI_DIR}/skills/skill-name/workflows/workflow1.md
β EXECUTE: What to do with this workflow
[Route EVERY workflow file]
---
When to Activate This Skill
[Comprehensive activation triggers using 8-category pattern]
---
Extended Context / Main Body
[Detailed information, file links, examples]
```
Step 5: Validate Compliance
Run through quality gates:
- β Workflow Routing section present and FIRST?
- β All workflows explicitly routed?
- β All files referenced in main body?
- β Activation triggers comprehensive?
- β Examples provided?
- β Naming conventions followed?
Step 6: Test Activation
Verify skill activates with natural language triggers from description.
---
Reference Documentation
Detailed pattern and quality references:
references/skill-patterns-reference.md- 8-category routing pattern, routing patterns, anti-patternsreferences/quality-checklist.md- Complete quality checklist and validation gates
---
Extended Context
Primary Reference Document
${PAI_DIR}/skills/CORE/skill-structure.md
- Canonical guide for all skill structure and routing
- Defines the 3 archetypes (Minimal, Standard, Complex)
- The 4-level routing hierarchy
- All structural requirements and naming conventions
- Routing pattern examples
- Complete skill ecosystem reference
- ALWAYS read this before creating or updating skills
Workflow Files
${PAI_DIR}/skills/system-create-skill/workflows/create-skill.md
- Complete skill creation workflow
- Step-by-step process with validation gates
- Template generation
- Quality assurance checks
${PAI_DIR}/skills/system-create-skill/workflows/validate-skill.md
- Skill compliance audit workflow
- Structural validation
- Routing validation
- Documentation validation
- Integration validation
${PAI_DIR}/skills/system-create-skill/workflows/update-skill.md
- Skill update and refactoring workflow
- Adding workflows to existing skills
- Reorganizing skill structure
- Migration patterns
---
Examples
Example 1: Creating a Minimal Skill
User: "Create a skill for generating API documentation"
System-create-skill Response:
- Read skill-structure.md
- Determine archetype: Minimal (single workflow)
- Create structure:
```
api-docs/
βββ SKILL.md
βββ workflows/
βββ generate-docs.md
```
- Write SKILL.md with:
- YAML: name, description with USE WHEN triggers
- Workflow Routing section (FIRST)
- When to Activate section (8-category pattern)
- Main body with workflow description
- Validate against quality checklist
- Test activation: "generate API docs for my service"
Example 2: Creating a Standard Skill
User: "Create a skill for database operations - migrations, backups, queries, optimization"
System-create-skill Response:
- Read skill-structure.md
- Determine archetype: Standard (4 workflows)
- Create structure:
```
database/
βββ SKILL.md
βββ workflows/
βββ run-migration.md
βββ backup-database.md
βββ optimize-queries.md
βββ execute-query.md
```
- Write SKILL.md with semantic routing:
- Route "run migration" β run-migration.md
- Route "backup database" β backup-database.md
- Route "optimize" β optimize-queries.md
- Route "query" β execute-query.md
- Comprehensive activation triggers covering all 4 workflows
- Validate and register
- Test each workflow activation
Example 3: Validating Existing Skill
User: "Validate the research skill for compliance"
System-create-skill Response:
- Read skill-structure.md
- Read ${PAI_DIR}/skills/research/SKILL.md
- Run validation:
- β Workflow Routing section present and FIRST
- β All 12 workflows explicitly routed
- β Activation triggers comprehensive
- β All files referenced
- β Standard archetype structure correct
- Report: "research skill is COMPLIANT - no issues found"
---
Summary
system-create-skill ensures:
- Every created skill follows architectural standards
- Compliance is validated automatically
- Templates drive consistency
- Quality gates prevent non-compliant skills
- Philosophy is embedded in process
Three core operations:
- Create - New skills with architectural compliance
- Validate - Existing skills against standards
- Update - Modify skills while maintaining compliance
One source of truth:
${PAI_DIR}/skills/CORE/skill-structure.md
Zero tolerance for:
- Orphaned workflows (not routed)
- Invisible files (not linked)
- Vague triggers (not comprehensive)
- Structural violations (wrong archetype)
---
Related Documentation:
${PAI_DIR}/skills/CORE/skill-structure.md- Canonical architecture guide (PRIMARY)${PAI_DIR}/skills/CORE/CONSTITUTION.md- Overall PAI philosophy
Last Updated: 2025-11-17
More from this repository6
humaniser skill from multicam/qara
cc-pai-optimiser skill from multicam/qara
Visualizes multi-agent Claude interactions with real-time, hierarchtimelineical tracking metrics in a dual-pinterfaceaced dashboard..: generates a one for-Code session observability with real-ical ...
design-implementation skill from multicam/qara
hook-authoring skill from multicam/qara
system-create-cli skill from multicam/qara