🔒 Prerequisites (Mandatory)
This skill acts as the architect for the Hub's capabilities. Before execution:
0. Mode Check: Verify .hub-mode and apply token-distiller guidelines.
- Context Check: Rehydrate state by reading
.specs/project/STATE.md,.specs/project/MEMORY.md, and.specs/project/LEARNINGS.md. - Knowledge Check: Follow the Knowledge Verification Chain (see below).
Skill Factory: Capability Architect (v2.3.0)
"Structure is the bridge to autonomy. Precision in design, rigor in execution."
🧩 Delegation Matrix
The Skill Factory delegates specific lifecycle tasks to its sub-agents:
| Phase | Sub-Skill | Primary Artifact | Purpose |
|---|---|---|---|
| DESIGN | skill-factory-bootstrap |
Skill Blueprint | Conceptual and physical mapping of the skill's logic. |
| AUDIT | skill-factory-validator |
audit-report.md |
Verification of structural and logical integrity. |
🏗️ Skill Authoring Patterns (The Core)
Group 1: Discovery & Selection
- Activation Metadata: Precise descriptions that trigger the agent correctly.
- Exclusion Clause: Explicit "Do NOT use for..." lines to prevent hijacking.
Group 2: Context Economy
- Context Budget: Every sentence must justify its token cost.
- Progressive Disclosure: Move details to sub-files (
REFERENCE.md,FORMS.md).
Group 3: Instruction Calibration
- Control Tuning: Match instruction freedom to task fragility.
- Explain-the-Why: State rules + rationale for better generalization.
- Template Scaffold: Provide explicit placeholders for reports/logs.
- In-Skill Examples: Embed 2-3 Few-shot pairs for style calibration.
- Known Gotchas: Document failure modes to prevent hallucinations.
Group 4: Workflow Control
- Execution Checklist: Copyable checklists to track progress.
- Self-Correcting Loop: "Produce-validate-fix" loops for quality.
- Plan-Validate-Execute: Verified plan before performing side effects.
Group 5: Executable Logic
- Utility Bundle: Purpose-built scripts for deterministic logic.
- Autonomy Calibration: Declare
allowed-toolsto minimize friction.
🔄 4-Phase Workflow
1. DISCOVERY
- Goal: Understand the functional domain and intent.
- Action: Use
skill-factory-bootstrapto perform an Intent Audit. - Output: Defined triggers and core task scope.
2. SPECIFY
- Goal: Design the skill's soul and instructions.
- Action: Apply Control Tuning and Explain-the-Why. Define the sub-file structure.
- Output: Initial draft of
SKILL.mdand required sub-files.
3. IMPLEMENT
- Goal: Calibrate and finalize instructions.
- Action: Add Few-Shot Examples and Known Gotchas.
- Output: Verified skill directory.
4. VERIFY
- Goal: Audit against SDD and Slop-Free standards.
- Action: Use
skill-factory-validatorto produce an audit score. - Output: Final
audit-report.mdand registration.
🛠️ Operational Protocols
1. The "Structural Purity" Mandate
Every skill created MUST be self-documenting and logically isolated:
- Explicit Logic: No hidden dependencies or "magic" CLI commands.
- Zero-Fragment Memory: Skills MUST NOT store their own
STATE.md,MEMORY.md,LEARNINGS.md, ortasks.md. All operational memory MUST be aggregated in.specs/project/or.specs/features/. - Atomic Intent: Every task and spec must have a clear ID.
2. Knowledge Verification Chain
- Core SDD Skill: Ultimate truth for workflow patterns.
- Existing Skills: High-performance references (e.g.,
sdd,git-workflow). - Internal Governance:
.specs/codebase/GLOBAL_MANDATES.md.
3. Safety Valve
If a skill design exceeds 5 sub-skills or complex external dependencies, STOP and re-evaluate for orchestration.
4. Observable Governance (v2.3.0)
Every skill created MUST support the automated auditing protocol.
- Metadata: Append
<!-- @sdd-state -->to all.mdfiles. - Task Evidence: Tasks for skill development MUST reside in
.specs/features/and include an evidence-based table. - Discovery: Ensure the skill folder contains a valid
SKILL.mdforbin/check-health.pydiscovery.
🚫 Prohibited
- NEVER modify system directories (e.g.,
.agents/,.gemini/) unless explicitly authorized. - NEVER create local
STATE.md,MEMORY.md, orLEARNINGS.mdwithin a skill; use.specs/project/instead. - NEVER approve a skill that doesn't follow the 4-Phase SDD workflow.
- NEVER use placeholders like "todo" or "..." in instructions.
Law of the Factory: A skill without structure is just a prompt. Structure is the bridge to autonomy.
version: "2.3.0"
feature_id: "HUB-ALIGNMENT"
phase: "VERIFY"
status: "COMPLETED"
last_update: "2026-05-06T09:48:00Z"
evidence_checksum: "8e52f6a"