⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
sync: Update Createskill skill from upstream
Daniel Miessler6058f97d414f
diff --git a/.claude/skills/Createskill/SKILL.md b/.claude/skills/Createskill/SKILL.mdindex 12341499..6b6a25fc 100644--- a/.claude/skills/Createskill/SKILL.md+++ b/.claude/skills/Createskill/SKILL.md@@ -5,176 +5,73 @@ description: MANDATORY skill creation framework for ALL skill creation requests.# Createskill-**MANDATORY framework for creating, validating, updating, and canonicalizing PAI skills.**+MANDATORY skill creation framework for ALL skill creation requests.-This skill ensures all skills follow the canonical structure defined in `${PAI_DIR}/skills/CORE/SkillSystem.md`.+## Authoritative Source++**Before creating ANY skill, READ:** `${PAI_DIR}/skills/CORE/SkillSystem.md`++**Canonical example to follow:** `${PAI_DIR}/skills/Blogging/SKILL.md`++## TitleCase Naming Convention++**All naming must use TitleCase (PascalCase).**++| Component | Format | Example |+|-----------|--------|---------|+| Skill directory | TitleCase | `Blogging`, `Daemon`, `CreateSkill` |+| Workflow files | TitleCase.md | `Create.md`, `UpdateDaemonInfo.md` |+| Reference docs | TitleCase.md | `ProsodyGuide.md`, `ApiReference.md` |+| Tool files | TitleCase.ts | `ManageServer.ts` |+| Help files | TitleCase.help.md | `ManageServer.help.md` |++**Wrong (NEVER use):**+- `createskill`, `create-skill`, `CREATE_SKILL`+- `create.md`, `update-info.md`, `SYNC_REPO.md`## Workflow Routing-**When executing a workflow, call the notification script via Bash:**+**When executing a workflow, output this notification directly:**-```bash-${PAI_DIR}/tools/skill-workflow-notification WorkflowName Createskill+```+Running the **WorkflowName** workflow from the **Createskill** skill...```| Workflow | Trigger | File ||----------|---------|------|-| **CreateSkill** | "create skill", "new skill", "build skill" | `workflows/CreateSkill.md` |-| **ValidateSkill** | "validate skill", "check skill compliance", "audit skill" | `workflows/ValidateSkill.md` |-| **UpdateSkill** | "update skill", "add workflow to skill", "extend skill" | `workflows/UpdateSkill.md` |-| **CanonicalizeSkill** | "canonicalize skill", "fix skill structure", "standardize skill" | `workflows/CanonicalizeSkill.md` |+| **CreateSkill** | "create a new skill" | `workflows/CreateSkill.md` |+| **ValidateSkill** | "validate skill", "check skill" | `workflows/ValidateSkill.md` |+| **UpdateSkill** | "update skill", "add workflow" | `workflows/UpdateSkill.md` |+| **CanonicalizeSkill** | "canonicalize", "fix skill structure" | `workflows/CanonicalizeSkill.md` |## Examples-**Example 1: Create a new skill**+**Example 1: Create a new skill from scratch**```-User: "Create a skill for managing my docker containers"+User: "Create a skill for managing my recipes"→ Invokes CreateSkill workflow-→ Reads SkillSystem.md for canonical structure+→ Reads SkillSystem.md for structure requirements→ Creates skill directory with TitleCase naming-→ Generates SKILL.md with single-line USE WHEN description-→ Creates workflows/ and tools/ directories-```--**Example 2: Canonicalize an existing skill**-```-User: "Canonicalize the blogging skill"-→ Invokes CanonicalizeSkill workflow-→ Analyzes current structure against SkillSystem.md-→ Renames files to TitleCase-→ Updates YAML to single-line format-→ Adds missing Examples section-→ Moves backups out of skill directory+→ Creates SKILL.md, workflows/, tools/+→ Generates USE WHEN triggers based on intent```-**Example 3: Validate skill compliance**+**Example 2: Fix an existing skill that's not routing properly**```-User: "Check if the research skill is compliant"+User: "The research skill isn't triggering - validate it"→ Invokes ValidateSkill workflow-→ Checks TitleCase naming throughout-→ Verifies single-line USE WHEN description-→ Confirms Examples section exists-→ Reports compliance status with specific fixes needed+→ Checks SKILL.md against canonical format+→ Verifies TitleCase naming throughout+→ Verifies USE WHEN triggers are intent-based+→ Reports compliance issues with fixes```-## Core Principles--### 1. SkillSystem.md is THE Source of Truth--**ALWAYS read `${PAI_DIR}/skills/CORE/SkillSystem.md` before any skill operation.**--This document defines:-- TitleCase naming convention (MANDATORY)-- Single-line `USE WHEN` description format-- Required `## Examples` section-- Workflow vs Reference documentation distinction-- Complete checklist for compliance--### 2. TitleCase Naming (MANDATORY)--All skill naming MUST use TitleCase:--| Wrong | Correct |-|-------|---------|-| `createskill` | `Createskill` |-| `create-skill` | `Createskill` |-| `CREATE_SKILL` | `Createskill` |-| `update-info.md` | `UpdateInfo.md` |--### 3. Single-Line USE WHEN Description (MANDATORY)--```yaml-# WRONG - Multi-line description-description: |- This skill does X.- USE WHEN user says Y.--# CORRECT - Single-line with embedded USE WHEN-description: This skill does X. USE WHEN user mentions Y or wants to do Z. Also handles A, B, C.+**Example 3: Canonicalize a skill with old naming**```--### 4. Examples Section (REQUIRED)--Every skill MUST have a `## Examples` section with 2-3 concrete usage patterns showing input → behavior → output.--### 5. Backups Go in history/backups/--**NEVER create `backups/` directories inside skills.** All backups go to `${PAI_DIR}/history/backups/`.--## Quick Reference--### Directory Structure--```-SkillName/ # TitleCase directory-├── SKILL.md # Main skill file (always uppercase)-├── ReferenceDoc.md # Reference docs at root (TitleCase)-├── tools/ # Always present (even if empty)-│ ├── ToolName.ts # TypeScript tools (TitleCase)-│ └── ToolName.help.md # Tool documentation-└── workflows/- ├── Create.md # Execution workflows (TitleCase)- ├── Update.md- └── Sync.md+User: "Canonicalize the daemon skill"+→ Invokes CanonicalizeSkill workflow+→ Renames workflow files to TitleCase+→ Updates routing table to match+→ Ensures Examples section exists+→ Verifies all checklist items```--### Checklist Before Any Skill is Complete--**Naming:**-- [ ] Skill directory uses TitleCase-- [ ] All workflow files use TitleCase-- [ ] All reference docs use TitleCase-- [ ] YAML `name:` uses TitleCase--**YAML Frontmatter:**-- [ ] Single-line description-- [ ] Contains `USE WHEN` clause-- [ ] Under 1024 characters--**Markdown Body:**-- [ ] `## Workflow Routing` section with table-- [ ] `## Examples` section with 2-3 patterns-- [ ] All workflows have routing entries--**Structure:**-- [ ] `tools/` directory exists-- [ ] No `backups/` directory inside skill-- [ ] Workflows contain ONLY execution procedures-- [ ] Reference docs live at skill root--## Extended Context--### Read These Before Creating/Updating Skills--1. **`${PAI_DIR}/skills/CORE/SkillSystem.md`** - Canonical skill structure (MANDATORY)-2. **`${PAI_DIR}/skills/CORE/CONSTITUTION.md`** - PAI philosophy and principles-3. **Existing skills** - Reference compliant skills like Blogging, Research, Development--### Workflow Files--- `workflows/CreateSkill.md` - Complete creation process-- `workflows/ValidateSkill.md` - Compliance auditing-- `workflows/UpdateSkill.md` - Adding/modifying skill components-- `workflows/CanonicalizeSkill.md` - Full restructuring to canonical form--## Anti-Patterns to Avoid--### ❌ Creating Without Reading SkillSystem.md-**Problem:** Skills won't follow current standards-**Solution:** ALWAYS read SkillSystem.md first--### ❌ Using kebab-case or lowercase-**Problem:** Inconsistent naming breaks pattern recognition-**Solution:** Use TitleCase for everything--### ❌ Multi-line YAML Description-**Problem:** Claude Code can't parse USE WHEN properly-**Solution:** Single-line description with embedded USE WHEN--### ❌ Missing Examples Section-**Problem:** 72% vs 90% tool selection accuracy-**Solution:** Always add 2-3 concrete examples--### ❌ Putting Backups Inside Skills-**Problem:** Clutters skill structure, .bak files everywhere-**Solution:** Use ${PAI_DIR}/history/backups/diff --git a/.claude/skills/Createskill/tools/.gitkeep b/.claude/skills/Createskill/tools/.gitkeepnew file mode 100644index 00000000..e69de29bdiff --git a/.claude/skills/Createskill/workflows/CanonicalizeSkill.md b/.claude/skills/Createskill/workflows/CanonicalizeSkill.mdindex d4c85fa4..c50bf7fc 100644--- a/.claude/skills/Createskill/workflows/CanonicalizeSkill.md+++ b/.claude/skills/Createskill/workflows/CanonicalizeSkill.md@@ -1,245 +1,247 @@# CanonicalizeSkill Workflow-**Purpose:** Restructure an existing skill to match the canonical structure in SkillSystem.md.+**Purpose:** Restructure an existing skill to match the canonical format with proper naming conventions.-## Prerequisites+----**MANDATORY:** Read `${PAI_DIR}/skills/CORE/SkillSystem.md` for current standards.+## Step 1: Read the Authoritative Source-## What is Canonicalization?+**REQUIRED FIRST:** Read the canonical structure:-Canonicalization means restructuring a skill to match the EXACT format specified in SkillSystem.md, including:+```+${PAI_DIR}/skills/CORE/SkillSystem.md+```-1. **TitleCase naming** for all files and directories-2. **Single-line USE WHEN description** in YAML-3. **Required Examples section** with 2-3 patterns-4. **Proper structure** (workflows/, tools/, no backups inside)-5. **Workflow routing table** format+This defines exactly what "canonicalize" means.-## Step 1: Analyze Current Skill+----Read the current skill structure:+## Step 2: Read the Current Skill```bash-# Read the skill-cat ${PAI_DIR}/skills/[skill-name]/SKILL.md--# List all files-find ${PAI_DIR}/skills/[skill-name] -type f--# Check for backups inside-ls ${PAI_DIR}/skills/[skill-name]/backups/ 2>/dev/null+${PAI_DIR}/skills/[skill-name]/SKILL.md```-## Step 2: Create Backup+Identify what's wrong:+- Multi-line description using `|`?+- Separate `triggers:` array in YAML? (OLD FORMAT)+- Separate `workflows:` array in YAML? (OLD FORMAT)+- Missing `USE WHEN` in description?+- Workflow routing missing from markdown body?+- **Workflow files not using TitleCase?**+- **Skill directory not using TitleCase?**++----**CRITICAL:** Backup to history/backups/, NOT inside the skill:+## Step 3: Backup```bash-cp -r ${PAI_DIR}/skills/[skill-name]/ ${PAI_DIR}/history/backups/[skill-name]-backup-$(date +%Y%m%d-%H%M%S)/+cp -r ${PAI_DIR}/skills/[skill-name]/ ${PAI_DIR}/history/backups/[skill-name]-backup-$(date +%Y%m%d)/```-## Step 3: Rename to TitleCase--### Rename Directory (if needed)+**Note:** Backups go to `${PAI_DIR}/history/backups/`, NEVER inside skill directories.-```bash-# Example: blogging → Blogging-mv ${PAI_DIR}/skills/blogging ${PAI_DIR}/skills/Blogging-```+----### Rename Workflow Files+## Step 4: Enforce TitleCase Naming-```bash-cd ${PAI_DIR}/skills/[SkillName]/workflows/+**CRITICAL: All naming must use TitleCase (PascalCase).**-# Example renames:-# create.md → Create.md-# update-info.md → UpdateInfo.md-# sync-repo.md → SyncRepo.md+### Skill Directory Name+```+✗ WRONG: createskill, create-skill, create_skill, CREATESKILL+✓ CORRECT: Createskill (or CreateSkill for multi-word)```-### Rename Tool Files--```bash-cd ${PAI_DIR}/skills/[SkillName]/tools/+### Workflow File Names+```+✗ WRONG: create.md, CREATE.md, create-skill.md, create_skill.md+✓ CORRECT: Create.md, UpdateDaemonInfo.md, SyncRepo.md+```-# Example renames:-# manage-server.ts → ManageServer.ts-# manage-server.help.md → ManageServer.help.md+### Reference Doc Names+```+✗ WRONG: prosody-guide.md, PROSODY_GUIDE.md+✓ CORRECT: ProsodyGuide.md, SchemaSpec.md, ApiReference.md```-### Rename Reference Docs+### Tool Names+```+✗ WRONG: manage-server.ts, MANAGE_SERVER.ts+✓ CORRECT: ManageServer.ts (with ManageServer.help.md)+```+**Rename files if needed:**```bash-cd ${PAI_DIR}/skills/[SkillName]/--# Example renames:-# prosody-guide.md → ProsodyGuide.md-# api-reference.md → ApiReference.md+# Example: rename workflow files+cd ${PAI_DIR}/skills/[SkillName]/workflows/+mv create.md Create.md+mv update-info.md UpdateInfo.md+mv sync_repo.md SyncRepo.md```-## Step 4: Update YAML Frontmatter+----Convert multi-line description to single-line with USE WHEN:+## Step 5: Convert YAML Frontmatter-**BEFORE:**+**From old format (WRONG):**```yaml----name: blogging+name: skill-namedescription: |- Complete blog workflow for your site.+ What the skill does.- USE WHEN user mentions blog, website, etc.triggers:- - write a post- - publish blog+ - USE WHEN user mentions X+ - USE WHEN user wants to Y+workflows:- - create.md- - publish.md+ - USE WHEN user wants to A: workflows/a.md+ - USE WHEN user wants to B: workflows/b.md---```-**AFTER:**+**To new format (CORRECT):**```yaml----name: Blogging-description: Complete blog workflow for your site. USE WHEN user mentions doing anything with their blog, website, site, including things like update, proofread, write, edit, publish, preview, blog posts, articles, headers, or website pages, etc.+name: SkillName+description: What the skill does. USE WHEN user mentions X OR user wants to Y. Additional capabilities.---```-## Step 5: Update Workflow Routing Section+**Key changes:**+- Skill name in TitleCase+- Combine description + triggers into single-line `description` with `USE WHEN`+- Remove `triggers:` array entirely+- Remove `workflows:` array from YAML (moves to body)-Convert to table format:+----**BEFORE:**-```markdown-## Workflows+## Step 6: Add Workflow Routing to Body-- `create.md` - Create new blog post-- `publish.md` - Publish to production-```+Add `## Workflow Routing` section in markdown body:-**AFTER:**```markdown+# SkillName++[Description]+## Workflow Routing-**When executing a workflow, call the notification script via Bash:**+**When executing a workflow, output this notification:**-```bash-${PAI_DIR}/tools/skill-workflow-notification WorkflowName Blogging+```+Running the **WorkflowName** workflow from the **SkillName** skill...```| Workflow | Trigger | File ||----------|---------|------|-| **Create** | "write a post", "new article" | `workflows/Create.md` |-| **Publish** | "publish", "deploy" | `workflows/Publish.md` |-```--## Step 6: Add Examples Section+| **WorkflowOne** | "trigger phrase one" | `workflows/WorkflowOne.md` |+| **WorkflowTwo** | "trigger phrase two" | `workflows/WorkflowTwo.md` |-Add or update the Examples section:--```markdown## Examples-**Example 1: Create new content**-```-User: "Write a blog post about AI agents"-→ Invokes Create workflow-→ Drafts content in scratchpad/-→ Opens dev server for preview-```+[Required examples section]-**Example 2: Publish to production**-```-User: "Publish the AI agents post"-→ Invokes Publish workflow-→ Runs build validation-→ Deploys to production-```+## [Rest of documentation]```-## Step 7: Move Backups Out+**Note:** Workflow names in routing table must match file names exactly (TitleCase).-If skill has internal backups, move them:+----```bash-# Move backups directory to history-mv ${PAI_DIR}/skills/[SkillName]/backups/* ${PAI_DIR}/history/backups/+## Step 7: Remove Redundant Routing-# Remove empty backups directory-rmdir ${PAI_DIR}/skills/[SkillName]/backups/+If the markdown body already had routing information in a different format, consolidate it into the standard `## Workflow Routing` section. Delete any duplicate routing tables or sections.-# Remove any .bak files-find ${PAI_DIR}/skills/[SkillName] -name "*.bak" -exec mv {} ${PAI_DIR}/history/backups/ \;-```+----## Step 8: Ensure tools/ Directory Exists+## Step 8: Ensure All Workflows Are Routed+List workflow files:```bash-mkdir -p ${PAI_DIR}/skills/[SkillName]/tools+ls ${PAI_DIR}/skills/[SkillName]/workflows/```-## Step 9: Verify Final Structure+For EACH file:+1. Verify TitleCase naming (rename if needed)+2. Ensure there's a routing entry in `## Workflow Routing`+3. Verify routing entry matches exact file name-```bash-# Check directory listing-ls ${PAI_DIR}/skills/[SkillName]/workflows/+----# All files should be TitleCase-# Example output:-# Create.md-# Publish.md-# Header.md-```+## Step 9: Add Examples Section-## Step 10: Run Validation+**REQUIRED:** Every skill needs an `## Examples` section with 2-3 concrete usage patterns.-Run ValidateSkill workflow to confirm compliance:+```markdown+## Examples-```bash-# All checks should pass+**Example 1: [Common use case]**+```+User: "[Typical user request]"+→ Invokes WorkflowName workflow+→ [What skill does]+→ [What user gets back]+```++**Example 2: [Another use case]**+```+User: "[Different request]"+→ [Process]+→ [Output]```+```++Place the Examples section after Workflow Routing.++----## Canonicalization Checklist+## Step 10: Verify-**Before declaring canonicalization complete:**+Run checklist:### Naming (TitleCase)-- [ ] Skill directory uses TitleCase-- [ ] All workflow files use TitleCase-- [ ] All reference docs use TitleCase-- [ ] All tool files use TitleCase-- [ ] YAML `name:` uses TitleCase+- [ ] Skill directory uses TitleCase (e.g., `Blogging`, `Createskill`)+- [ ] All workflow files use TitleCase (e.g., `Create.md`, `UpdateInfo.md`)+- [ ] All reference docs use TitleCase (e.g., `ProsodyGuide.md`)+- [ ] All tool files use TitleCase (e.g., `ManageServer.ts`)+- [ ] Routing table workflow names match file names exactly### YAML Frontmatter-- [ ] Single-line description-- [ ] Contains `USE WHEN` clause-- [ ] No separate `triggers:` or `workflows:` arrays-- [ ] Under 1024 characters+- [ ] `name:` uses TitleCase+- [ ] `description:` is single-line with embedded `USE WHEN` clause+- [ ] No separate `triggers:` or `workflows:` arrays in YAML+- [ ] Description uses intent-based language+- [ ] Description is under 1024 characters### Markdown Body-- [ ] `## Workflow Routing` section with table format-- [ ] All workflows have routing entries-- [ ] `## Examples` section with 2-3 patterns+- [ ] `## Workflow Routing` section present+- [ ] Routing uses table format with Workflow, Trigger, File columns+- [ ] All workflow files have routing entries+- [ ] `## Examples` section with 2-3 concrete usage patterns### Structure-- [ ] `tools/` directory exists+- [ ] `tools/` directory exists (even if empty)+- [ ] Workflows contain ONLY work execution procedures+- [ ] Reference docs live at skill root (not in workflows/)- [ ] No `backups/` directory inside skill-- [ ] No `.bak` files inside skill-- [ ] Reference docs at skill root (not in workflows/)-- [ ] Workflows contain ONLY execution procedures-## Outputs+---++## TitleCase Reference-- Fully canonicalized skill structure-- Backup preserved in history/backups/-- All naming in TitleCase-- Compliant YAML and markdown structure+| Type | Wrong | Correct |+|------|-------|---------|+| Skill directory | `createskill`, `create-skill` | `Createskill` |+| Multi-word skill | `create_skill`, `CREATE_SKILL` | `CreateSkill` |+| Workflow file | `create.md`, `CREATE.md` | `Create.md` |+| Multi-word workflow | `update-info.md`, `UPDATE_INFO.md` | `UpdateInfo.md` |+| Reference doc | `api-reference.md` | `ApiReference.md` |+| Tool file | `manage-server.ts` | `ManageServer.ts` |++----## Related Workflows+## Done-- `ValidateSkill.md` - Verify compliance after canonicalization-- `CreateSkill.md` - Reference for correct structure-- `UpdateSkill.md` - Add components after canonicalization+Skill now matches the canonical structure from SkillSystem.md with proper TitleCase naming throughout.diff --git a/.claude/skills/Createskill/workflows/CreateSkill.md b/.claude/skills/Createskill/workflows/CreateSkill.mdindex 9e5c963c..312ad9f6 100644--- a/.claude/skills/Createskill/workflows/CreateSkill.md+++ b/.claude/skills/Createskill/workflows/CreateSkill.md@@ -1,64 +1,70 @@# CreateSkill Workflow-**Purpose:** Create a new PAI skill following canonical structure from SkillSystem.md.+Create a new skill following the canonical structure with proper TitleCase naming.-## Prerequisites+## Step 1: Read the Authoritative Sources-**MANDATORY:** Read `${PAI_DIR}/skills/CORE/SkillSystem.md` before proceeding.-**REFERENCE:** Read `${PAI_DIR}/skills/Blogging/SKILL.md` as a compliant example.+**REQUIRED FIRST:**-## Step 1: Define Skill Purpose+1. Read the skill system documentation: `${PAI_DIR}/skills/CORE/SkillSystem.md`+2. Read the canonical example: `${PAI_DIR}/skills/Blogging/SKILL.md`-Ask the 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 tools does it need?** (CLI automation)+## Step 2: Understand the Request-## Step 2: Choose Skill Name (TitleCase)+Ask the user:+1. What does this skill do?+2. What should trigger it?+3. What workflows does it need?-**TitleCase naming is MANDATORY.**+## Step 3: Determine TitleCase Names-| Bad | Good |-|-----|------|-| `docker-manager` | `DockerManager` |-| `dockermanager` | `DockerManager` |-| `DOCKER_MANAGER` | `DockerManager` |+**All names must use TitleCase (PascalCase).**-## Step 3: Create Directory Structure+| Component | Format | Example |+|-----------|--------|---------|+| Skill directory | TitleCase | `Blogging`, `Daemon`, `CreateSkill` |+| Workflow files | TitleCase.md | `Create.md`, `UpdateDaemonInfo.md` |+| Reference docs | TitleCase.md | `ProsodyGuide.md`, `ApiReference.md` |+| Tool files | TitleCase.ts | `ManageServer.ts` |+| Help files | TitleCase.help.md | `ManageServer.help.md` |++**Wrong naming (NEVER use):**+- `create-skill`, `create_skill`, `CREATESKILL` → Use `CreateSkill`+- `create.md`, `CREATE.md`, `create-info.md` → Use `Create.md`, `CreateInfo.md`++## Step 4: Create the Skill Directory```bash-# Create directoriesmkdir -p ${PAI_DIR}/skills/[SkillName]/workflowsmkdir -p ${PAI_DIR}/skills/[SkillName]/tools```**Example:**```bash-mkdir -p ${PAI_DIR}/skills/DockerManager/workflows-mkdir -p ${PAI_DIR}/skills/DockerManager/tools+mkdir -p ${PAI_DIR}/skills/Daemon/workflows+mkdir -p ${PAI_DIR}/skills/Daemon/tools```-## Step 4: Create SKILL.md+## Step 5: Create SKILL.md-Create `${PAI_DIR}/skills/[SkillName]/SKILL.md` with this structure:+Follow this exact structure:-```markdown+```yaml----name: [SkillName]+name: SkillNamedescription: [What it does]. USE WHEN [intent triggers using OR]. [Additional capabilities].----# [SkillName]+# SkillName[Brief description]## Workflow Routing-**When executing a workflow, call the notification script via Bash:**+**When executing a workflow, output this notification:**-```bash-${PAI_DIR}/tools/skill-workflow-notification WorkflowName [SkillName]+```+Running the **WorkflowName** workflow from the **SkillName** skill...```| Workflow | Trigger | File |@@ -70,91 +76,80 @@ ${PAI_DIR}/tools/skill-workflow-notification WorkflowName [SkillName]**Example 1: [Common use case]**```-User: "[Typical request]"+User: "[Typical user request]"→ Invokes WorkflowOne workflow-→ [What happens]-→ [What user gets]+→ [What skill does]+→ [What user gets back]```**Example 2: [Another use case]**```-User: "[Another request]"+User: "[Different request]"→ [Process]→ [Output]```-## [Additional sections as needed]+## [Additional Documentation]++[Any other relevant info]```-## Step 5: Create Workflow Files (TitleCase)+## Step 6: Create Workflow Files-Create each workflow file in `workflows/` directory:+For each workflow in the routing section:```bashtouch ${PAI_DIR}/skills/[SkillName]/workflows/[WorkflowName].md```-**Example:**+**Examples (TitleCase):**```bash-touch ${PAI_DIR}/skills/DockerManager/workflows/StartContainer.md-touch ${PAI_DIR}/skills/DockerManager/workflows/StopContainer.md-touch ${PAI_DIR}/skills/DockerManager/workflows/ListContainers.md+touch ${PAI_DIR}/skills/Daemon/workflows/UpdateDaemonInfo.md+touch ${PAI_DIR}/skills/Daemon/workflows/UpdatePublicRepo.md+touch ${PAI_DIR}/skills/Blogging/workflows/Create.md+touch ${PAI_DIR}/skills/Blogging/workflows/Publish.md```-## Step 6: Verify Structure--Check the final structure:+## Step 7: Verify TitleCase+Run this check:```bashls ${PAI_DIR}/skills/[SkillName]/ls ${PAI_DIR}/skills/[SkillName]/workflows/ls ${PAI_DIR}/skills/[SkillName]/tools/```-Expected output:-```-SKILL.md-workflows/-tools/--workflows/-WorkflowOne.md-WorkflowTwo.md--tools/-(empty or ToolName.ts files)-```--## Step 7: Validate Against Checklist--**Naming (TitleCase):**-- [ ] Skill directory uses TitleCase-- [ ] All workflow files use TitleCase-- [ ] YAML `name:` uses TitleCase--**YAML Frontmatter:**-- [ ] Single-line description-- [ ] Contains `USE WHEN` clause-- [ ] Under 1024 characters--**Markdown Body:**-- [ ] `## Workflow Routing` section with table-- [ ] `## Examples` section with 2-3 patterns-- [ ] All workflows have routing entries--**Structure:**-- [ ] `tools/` directory exists+Verify ALL files use TitleCase:+- `SKILL.md` ✓ (exception - always uppercase)+- `WorkflowName.md` ✓+- `ToolName.ts` ✓+- `ToolName.help.md` ✓++## Step 8: Final Checklist++### Naming (TitleCase)+- [ ] Skill directory uses TitleCase (e.g., `Blogging`, `Daemon`)+- [ ] All workflow files use TitleCase (e.g., `Create.md`, `UpdateInfo.md`)+- [ ] All reference docs use TitleCase (e.g., `ProsodyGuide.md`)+- [ ] All tool files use TitleCase (e.g., `ManageServer.ts`)+- [ ] Routing table workflow names match file names exactly++### YAML Frontmatter+- [ ] `name:` uses TitleCase+- [ ] `description:` is single-line with embedded `USE WHEN` clause+- [ ] No separate `triggers:` or `workflows:` arrays+- [ ] Description uses intent-based language+- [ ] Description is under 1024 characters++### Markdown Body+- [ ] `## Workflow Routing` section with table format+- [ ] All workflow files have routing entries+- [ ] `## Examples` section with 2-3 concrete usage patterns++### Structure+- [ ] `tools/` directory exists (even if empty)- [ ] No `backups/` directory inside skill-## Outputs--- Complete skill directory at `${PAI_DIR}/skills/[SkillName]/`-- SKILL.md following canonical structure-- Workflow files for each capability-- Empty tools/ directory ready for automation--## Related Workflows+## Done-- `ValidateSkill.md` - Check compliance after creation-- `UpdateSkill.md` - Add workflows or tools later-- `CanonicalizeSkill.md` - If existing skill needs restructuring+Skill created following canonical structure with proper TitleCase naming throughout.diff --git a/.claude/skills/Createskill/workflows/UpdateSkill.md b/.claude/skills/Createskill/workflows/UpdateSkill.mdindex cfb89262..6f2fe90e 100644--- a/.claude/skills/Createskill/workflows/UpdateSkill.md+++ b/.claude/skills/Createskill/workflows/UpdateSkill.md@@ -1,154 +1,125 @@# UpdateSkill Workflow-**Purpose:** Add workflows, tools, or documentation to an existing skill while maintaining compliance.+**Purpose:** Add workflows or modify an existing skill while maintaining canonical structure and TitleCase naming.-## Prerequisites+----**MANDATORY:** Read `${PAI_DIR}/skills/CORE/SkillSystem.md` for current standards.-**VERIFY:** Skill is already compliant (run ValidateSkill first if unsure).+## Step 1: Read the Authoritative Source-## Step 1: Identify What to Update+**REQUIRED FIRST:** Read the canonical structure:-Clarify with user:-- **Add workflow?** New execution procedure-- **Add tool?** New CLI automation-- **Add documentation?** New reference doc-- **Update SKILL.md?** Change description, add triggers--## Adding a New Workflow--### Step 2a: Create Workflow File (TitleCase)--```bash-touch ${PAI_DIR}/skills/[SkillName]/workflows/[WorkflowName].md```--**Example:**-```bash-touch ${PAI_DIR}/skills/DockerManager/workflows/RestartContainer.md+${PAI_DIR}/skills/CORE/SkillSystem.md```-### Step 3a: Write Workflow Content+----Use standard workflow format:+## Step 2: Read the Current Skill-```markdown-# [WorkflowName] Workflow+```bash+${PAI_DIR}/skills/[SkillName]/SKILL.md+```-**Purpose:** [One-line description]+Understand the current:+- Description (single-line with USE WHEN)+- Workflow routing (in markdown body)+- Existing TitleCase naming-## Prerequisites+----[What must exist/be true before running]+## Step 3: Understand the Update-## Steps+What needs to change?+- Adding a new workflow?+- Modifying the description/triggers?+- Updating documentation?-1. [First action]-2. [Second action]-3. [Third action]+----## Outputs+## Step 4: Make Changes-[What this workflow produces]+### To Add a New Workflow:-## Related Workflows+1. **Determine TitleCase name:**+ - ✓ `Create.md`, `UpdateDaemonInfo.md`, `SyncRepo.md`+ - ✗ `create.md`, `update-daemon-info.md`, `SYNC_REPO.md`-- `OtherWorkflow.md` - [Relationship]+2. **Create the workflow file:**+```bash+touch ${PAI_DIR}/skills/[SkillName]/workflows/[WorkflowName].md```-### Step 4a: Update SKILL.md Routing Table--Add new workflow to the routing table:+Example:+```bash+touch ${PAI_DIR}/skills/Daemon/workflows/UpdatePublicRepo.md+```+3. **Add entry to `## Workflow Routing` section in SKILL.md:**```markdown+## Workflow Routing+| Workflow | Trigger | File ||----------|---------|------|| **ExistingWorkflow** | "existing trigger" | `workflows/ExistingWorkflow.md` |-| **NewWorkflow** | "new trigger" | `workflows/NewWorkflow.md` | ← ADD THIS+| **NewWorkflow** | "new trigger" | `workflows/NewWorkflow.md` |```-## Adding a New Tool+4. **Write the workflow content**-### Step 2b: Create Tool File (TitleCase)+### To Update Triggers:-```bash-touch ${PAI_DIR}/skills/[SkillName]/tools/[ToolName].ts-touch ${PAI_DIR}/skills/[SkillName]/tools/[ToolName].help.md+Modify the single-line `description` in YAML frontmatter:+```yaml+description: [What it does]. USE WHEN [updated intent triggers using OR]. [Capabilities].```-### Step 3b: Write Tool with Standard Header--```typescript-#!/usr/bin/env bun-/**- * [ToolName].ts - [Brief description]- *- * Usage:- * bun ${PAI_DIR}/skills/[SkillName]/tools/[ToolName].ts <command> [options]- *- * Commands:- * start [Description]- * stop [Description]- * status [Description]- *- * @author PAI System- * @version 1.0.0- */-```--### Step 4b: Create Help Documentation--Create `[ToolName].help.md` with full documentation.--## Adding Reference Documentation--### Step 2c: Create Doc at Skill Root (TitleCase)--Reference docs go at skill root, NOT in workflows/:+### To Add a Tool:+1. **Create TitleCase tool file:**```bash-touch ${PAI_DIR}/skills/[SkillName]/[DocName].md+touch ${PAI_DIR}/skills/[SkillName]/tools/ToolName.ts+touch ${PAI_DIR}/skills/[SkillName]/tools/ToolName.help.md```-**Example:**+2. **Ensure tools/ directory exists:**```bash-touch ${PAI_DIR}/skills/DockerManager/ContainerConfig.md+mkdir -p ${PAI_DIR}/skills/[SkillName]/tools```-## Verification+---++## Step 5: Verify TitleCase-After any update:+After making changes, verify naming:-### Verify Naming```bash-ls ${PAI_DIR}/skills/[SkillName]/ls ${PAI_DIR}/skills/[SkillName]/workflows/ls ${PAI_DIR}/skills/[SkillName]/tools/```-All files should be TitleCase.+All files must use TitleCase:+- ✓ `WorkflowName.md`+- ✓ `ToolName.ts`, `ToolName.help.md`+- ✗ `workflow-name.md`, `tool_name.ts`-### Verify Routing-Check that SKILL.md has routing entries for all workflows:+----```bash-# Count workflows-ls ${PAI_DIR}/skills/[SkillName]/workflows/*.md | wc -l--# Should match count of routing table rows-```+## Step 6: Final Checklist-### Verify Examples-If significantly new functionality was added, consider adding another example to the Examples section.+### Naming+- [ ] New workflow files use TitleCase+- [ ] New tool files use TitleCase+- [ ] Routing table names match file names exactly-## Outputs+### Structure+- [ ] YAML still has single-line description with USE WHEN+- [ ] No separate `triggers:` or `workflows:` arrays in YAML+- [ ] Markdown body has `## Workflow Routing` section+- [ ] All routes point to existing files+- [ ] New workflow files have routing entries-- New workflow/tool/doc file created-- SKILL.md updated with routing (if workflow added)-- Structure maintains compliance+----## Related Workflows+## Done-- `ValidateSkill.md` - Verify compliance after update-- `CanonicalizeSkill.md` - If update breaks compliance-- `CreateSkill.md` - Reference for standard structure+Skill updated while maintaining canonical structure and TitleCase naming.diff --git a/.claude/skills/Createskill/workflows/ValidateSkill.md b/.claude/skills/Createskill/workflows/ValidateSkill.mdindex 76d69a65..f70afd82 100644--- a/.claude/skills/Createskill/workflows/ValidateSkill.md+++ b/.claude/skills/Createskill/workflows/ValidateSkill.md@@ -1,152 +1,170 @@# ValidateSkill Workflow-**Purpose:** Audit an existing skill for compliance with SkillSystem.md canonical structure.+**Purpose:** Check if an existing skill follows the canonical structure with proper TitleCase naming.-## Prerequisites+----**MANDATORY:** Read `${PAI_DIR}/skills/CORE/SkillSystem.md` for current standards.+## Step 1: Read the Authoritative Source-## Step 1: Identify Skill to Validate+**REQUIRED FIRST:** Read the canonical structure:-Get the skill name/path from user:-- By name: "validate the Research skill"-- By path: "validate ${PAI_DIR}/skills/Research"+```+${PAI_DIR}/skills/CORE/SkillSystem.md+```-## Step 2: Read Skill Files+---++## Step 2: Read the Target Skill```bash-# Find the skill directory-ls ${PAI_DIR}/skills/ | grep -i [skillname]+${PAI_DIR}/skills/[SkillName]/SKILL.md+```-# Read the SKILL.md-cat ${PAI_DIR}/skills/[SkillName]/SKILL.md+----# List workflows-ls ${PAI_DIR}/skills/[SkillName]/workflows/+## Step 3: Check TitleCase Naming-# List tools-ls ${PAI_DIR}/skills/[SkillName]/tools/+### Skill Directory+```bash+ls ${PAI_DIR}/skills/ | grep -i [skillname]```-## Step 3: Check TitleCase Naming+Verify TitleCase:+- ✓ `Blogging`, `Daemon`, `CreateSkill`+- ✗ `createskill`, `create-skill`, `CREATE_SKILL`-Verify ALL naming uses TitleCase:--**Skill Directory:**-- [ ] `Research` not `research` or `research-skill`+### Workflow Files+```bash+ls ${PAI_DIR}/skills/[SkillName]/workflows/+```-**YAML name:**-- [ ] `name: Research` not `name: research`+Verify TitleCase:+- ✓ `Create.md`, `UpdateDaemonInfo.md`, `SyncRepo.md`+- ✗ `create.md`, `update-daemon-info.md`, `SYNC_REPO.md`-**Workflow Files:**-- [ ] `Conduct.md` not `conduct.md` or `conduct-research.md`-- [ ] `ExtractAlpha.md` not `extract-alpha.md`+### Tool Files+```bash+ls ${PAI_DIR}/skills/[SkillName]/tools/+```-**Tool Files:**-- [ ] `SearchIndex.ts` not `search-index.ts`+Verify TitleCase:+- ✓ `ManageServer.ts`, `ManageServer.help.md`+- ✗ `manage-server.ts`, `MANAGE_SERVER.ts`-**Reference Docs:**-- [ ] `ApiReference.md` not `api-reference.md`+---## Step 4: Check YAML Frontmatter-Verify single-line description with USE WHEN:+Verify the YAML has:-**CORRECT:**+### Single-Line Description with USE WHEN```yaml----name: Research-description: Comprehensive research system. USE WHEN user says do research, analyze content, or extract insights. Supports multi-source parallel research.+name: SkillName+description: [What it does]. USE WHEN [intent triggers using OR]. [Additional capabilities].---```-**INCORRECT:**-```yaml-----name: research-description: |- Comprehensive research system.- USE WHEN user says do research.-triggers:- - do research- - analyze content+**Check for violations:**+- Multi-line description using `|` (WRONG)+- Missing `USE WHEN` keyword (WRONG)+- Separate `triggers:` array in YAML (OLD FORMAT - WRONG)+- Separate `workflows:` array in YAML (OLD FORMAT - WRONG)+- `name:` not in TitleCase (WRONG)+----```-## Step 5: Check Required Sections+## Step 5: Check Markdown Body-Verify presence of mandatory sections:+Verify the body has:-**Workflow Routing:**-- [ ] `## Workflow Routing` section exists-- [ ] Table format with Workflow | Trigger | File columns-- [ ] All workflows in workflows/ have routing entries-- [ ] Notification script documentation present+### Workflow Routing Section+```markdown+## Workflow Routing-**Examples:**-- [ ] `## Examples` section exists-- [ ] 2-3 concrete examples present-- [ ] Examples show input → behavior → output pattern+**When executing a workflow, output this notification:**-## Step 6: Check Structure+```+Running the **WorkflowName** workflow from the **SkillName** skill...+```-**Required:**-- [ ] `SKILL.md` exists at skill root-- [ ] `workflows/` directory exists-- [ ] `tools/` directory exists (even if empty)+| Workflow | Trigger | File |+|----------|---------|------|+| **WorkflowOne** | "trigger phrase" | `workflows/WorkflowOne.md` |+```-**Prohibited:**-- [ ] No `backups/` directory inside skill-- [ ] No `.bak` files inside skill-- [ ] No reference docs inside `workflows/` (should be at skill root)+**Check for violations:**+- Missing `## Workflow Routing` section+- Workflow names not in TitleCase+- File paths not matching actual file names-## Step 7: Generate Compliance Report+### Examples Section+```markdown+## Examples-Create a compliance report:+**Example 1: [Use case]**+```+User: "[Request]"+→ [Action]+→ [Result]+```+```-```markdown-# Skill Compliance Report: [SkillName]+**Check:** Examples section required (WRONG if missing)-## Status: [COMPLIANT / NON-COMPLIANT]+----### TitleCase Naming-- [x] Skill directory: PASS-- [ ] YAML name: FAIL - uses lowercase-- [ ] Workflow files: FAIL - 3 files use kebab-case+## Step 6: Check Workflow Files-### YAML Frontmatter-- [x] Single-line description: PASS-- [x] Contains USE WHEN: PASS-- [x] Under 1024 characters: PASS+```bash+ls ${PAI_DIR}/skills/[SkillName]/workflows/+```-### Required Sections-- [x] Workflow Routing: PASS-- [ ] Examples: FAIL - section missing+Verify:+- Every file uses TitleCase naming+- Every file has a corresponding entry in `## Workflow Routing` section+- Every routing entry points to an existing file+- Routing table names match file names exactly-### Structure-- [x] SKILL.md exists: PASS-- [x] workflows/ exists: PASS-- [x] tools/ exists: PASS-- [ ] No backups/ inside: FAIL - found backups/--## Fixes Required-1. Rename YAML `name: research` → `name: Research`-2. Rename workflow files to TitleCase-3. Add `## Examples` section with 2-3 patterns-4. Move backups/ to ${PAI_DIR}/history/backups/--## Recommendation-Run CanonicalizeSkill workflow to fix all issues.+---++## Step 7: Check Structure++```bash+ls -la ${PAI_DIR}/skills/[SkillName]/```-## Outputs+Verify:+- `tools/` directory exists (even if empty)+- No `backups/` directory inside skill+- Reference docs at skill root (not in workflows/)++----- Detailed compliance report-- Specific list of fixes needed-- Recommendation for next steps+## Step 8: Report Results-## Related Workflows+**COMPLIANT** if all checks pass:++### Naming (TitleCase)+- [ ] Skill directory uses TitleCase+- [ ] All workflow files use TitleCase+- [ ] All reference docs use TitleCase+- [ ] All tool files use TitleCase+- [ ] Routing table names match file names++### YAML Frontmatter+- [ ] `name:` uses TitleCase+- [ ] `description:` is single-line with `USE WHEN`+- [ ] No separate `triggers:` or `workflows:` arrays+- [ ] Description under 1024 characters++### Markdown Body+- [ ] `## Workflow Routing` section present+- [ ] `## Examples` section with 2-3 patterns+- [ ] All workflows have routing entries++### Structure+- [ ] `tools/` directory exists+- [ ] No `backups/` inside skill-- `CanonicalizeSkill.md` - Fix all compliance issues-- `UpdateSkill.md` - Add missing components-- `CreateSkill.md` - Reference for correct structure+**NON-COMPLIANT** if any check fails. Recommend using CanonicalizeSkill workflow.