ag-cortex 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/.agent/commands/test-browser.md +339 -0
  2. package/.agent/rules/00-constitution.md +46 -0
  3. package/.agent/rules/project-rules.md +49 -0
  4. package/.agent/skills/agent-browser/SKILL.md +223 -0
  5. package/.agent/skills/agent-native-architecture/SKILL.md +435 -0
  6. package/.agent/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
  7. package/.agent/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
  8. package/.agent/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
  9. package/.agent/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
  10. package/.agent/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
  11. package/.agent/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
  12. package/.agent/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
  13. package/.agent/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
  14. package/.agent/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
  15. package/.agent/skills/agent-native-architecture/references/product-implications.md +443 -0
  16. package/.agent/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
  17. package/.agent/skills/agent-native-architecture/references/self-modification.md +269 -0
  18. package/.agent/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
  19. package/.agent/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
  20. package/.agent/skills/agent-native-reviewer/SKILL.md +246 -0
  21. package/.agent/skills/andrew-kane-gem-writer/SKILL.md +184 -0
  22. package/.agent/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
  23. package/.agent/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
  24. package/.agent/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
  25. package/.agent/skills/andrew-kane-gem-writer/references/resources.md +119 -0
  26. package/.agent/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
  27. package/.agent/skills/ankane-readme-writer/SKILL.md +50 -0
  28. package/.agent/skills/architecture-strategist/SKILL.md +52 -0
  29. package/.agent/skills/best-practices-researcher/SKILL.md +100 -0
  30. package/.agent/skills/bug-reproduction-validator/SKILL.md +67 -0
  31. package/.agent/skills/code-simplicity-reviewer/SKILL.md +85 -0
  32. package/.agent/skills/coding-tutor/.claude-plugin/plugin.json +9 -0
  33. package/.agent/skills/coding-tutor/README.md +37 -0
  34. package/.agent/skills/coding-tutor/commands/quiz-me.md +1 -0
  35. package/.agent/skills/coding-tutor/commands/sync-tutorials.md +25 -0
  36. package/.agent/skills/coding-tutor/commands/teach-me.md +1 -0
  37. package/.agent/skills/coding-tutor/skills/coding-tutor/SKILL.md +214 -0
  38. package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/create_tutorial.py +202 -0
  39. package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/index_tutorials.py +203 -0
  40. package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/quiz_priority.py +190 -0
  41. package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/setup_tutorials.py +132 -0
  42. package/.agent/skills/compound-docs/SKILL.md +510 -0
  43. package/.agent/skills/compound-docs/assets/critical-pattern-template.md +34 -0
  44. package/.agent/skills/compound-docs/assets/resolution-template.md +93 -0
  45. package/.agent/skills/compound-docs/references/yaml-schema.md +65 -0
  46. package/.agent/skills/compound-docs/schema.yaml +176 -0
  47. package/.agent/skills/create-agent-skills/SKILL.md +299 -0
  48. package/.agent/skills/create-agent-skills/references/api-security.md +226 -0
  49. package/.agent/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
  50. package/.agent/skills/create-agent-skills/references/best-practices.md +404 -0
  51. package/.agent/skills/create-agent-skills/references/common-patterns.md +595 -0
  52. package/.agent/skills/create-agent-skills/references/core-principles.md +437 -0
  53. package/.agent/skills/create-agent-skills/references/executable-code.md +175 -0
  54. package/.agent/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
  55. package/.agent/skills/create-agent-skills/references/official-spec.md +185 -0
  56. package/.agent/skills/create-agent-skills/references/recommended-structure.md +168 -0
  57. package/.agent/skills/create-agent-skills/references/skill-structure.md +372 -0
  58. package/.agent/skills/create-agent-skills/references/using-scripts.md +113 -0
  59. package/.agent/skills/create-agent-skills/references/using-templates.md +112 -0
  60. package/.agent/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
  61. package/.agent/skills/create-agent-skills/templates/router-skill.md +73 -0
  62. package/.agent/skills/create-agent-skills/templates/simple-skill.md +33 -0
  63. package/.agent/skills/create-agent-skills/workflows/add-reference.md +96 -0
  64. package/.agent/skills/create-agent-skills/workflows/add-script.md +93 -0
  65. package/.agent/skills/create-agent-skills/workflows/add-template.md +74 -0
  66. package/.agent/skills/create-agent-skills/workflows/add-workflow.md +120 -0
  67. package/.agent/skills/create-agent-skills/workflows/audit-skill.md +138 -0
  68. package/.agent/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
  69. package/.agent/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
  70. package/.agent/skills/create-agent-skills/workflows/get-guidance.md +121 -0
  71. package/.agent/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
  72. package/.agent/skills/create-agent-skills/workflows/verify-skill.md +204 -0
  73. package/.agent/skills/data-integrity-guardian/SKILL.md +70 -0
  74. package/.agent/skills/data-migration-expert/SKILL.md +97 -0
  75. package/.agent/skills/deployment-verification-agent/SKILL.md +159 -0
  76. package/.agent/skills/design-implementation-reviewer/SKILL.md +85 -0
  77. package/.agent/skills/design-iterator/SKILL.md +197 -0
  78. package/.agent/skills/dhh-rails-reviewer/SKILL.md +45 -0
  79. package/.agent/skills/dhh-rails-style/SKILL.md +184 -0
  80. package/.agent/skills/dhh-rails-style/references/architecture.md +653 -0
  81. package/.agent/skills/dhh-rails-style/references/controllers.md +303 -0
  82. package/.agent/skills/dhh-rails-style/references/frontend.md +510 -0
  83. package/.agent/skills/dhh-rails-style/references/gems.md +266 -0
  84. package/.agent/skills/dhh-rails-style/references/models.md +359 -0
  85. package/.agent/skills/dhh-rails-style/references/testing.md +338 -0
  86. package/.agent/skills/dspy-ruby/SKILL.md +594 -0
  87. package/.agent/skills/dspy-ruby/assets/config-template.rb +359 -0
  88. package/.agent/skills/dspy-ruby/assets/module-template.rb +326 -0
  89. package/.agent/skills/dspy-ruby/assets/signature-template.rb +143 -0
  90. package/.agent/skills/dspy-ruby/references/core-concepts.md +265 -0
  91. package/.agent/skills/dspy-ruby/references/optimization.md +623 -0
  92. package/.agent/skills/dspy-ruby/references/providers.md +305 -0
  93. package/.agent/skills/every-style-editor/SKILL.md +134 -0
  94. package/.agent/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
  95. package/.agent/skills/figma-design-sync/SKILL.md +166 -0
  96. package/.agent/skills/file-todos/SKILL.md +251 -0
  97. package/.agent/skills/file-todos/assets/todo-template.md +155 -0
  98. package/.agent/skills/framework-docs-researcher/SKILL.md +83 -0
  99. package/.agent/skills/frontend-design/SKILL.md +42 -0
  100. package/.agent/skills/gemini-imagegen/SKILL.md +237 -0
  101. package/.agent/skills/gemini-imagegen/requirements.txt +2 -0
  102. package/.agent/skills/gemini-imagegen/scripts/compose_images.py +168 -0
  103. package/.agent/skills/gemini-imagegen/scripts/edit_image.py +157 -0
  104. package/.agent/skills/gemini-imagegen/scripts/gemini_images.py +265 -0
  105. package/.agent/skills/gemini-imagegen/scripts/generate_image.py +147 -0
  106. package/.agent/skills/gemini-imagegen/scripts/multi_turn_chat.py +215 -0
  107. package/.agent/skills/git-history-analyzer/SKILL.md +42 -0
  108. package/.agent/skills/git-worktree/SKILL.md +302 -0
  109. package/.agent/skills/git-worktree/scripts/worktree-manager.sh +345 -0
  110. package/.agent/skills/julik-frontend-races-reviewer/SKILL.md +222 -0
  111. package/.agent/skills/kieran-python-reviewer/SKILL.md +104 -0
  112. package/.agent/skills/kieran-rails-reviewer/SKILL.md +86 -0
  113. package/.agent/skills/kieran-typescript-reviewer/SKILL.md +95 -0
  114. package/.agent/skills/lint/SKILL.md +16 -0
  115. package/.agent/skills/pattern-recognition-specialist/SKILL.md +57 -0
  116. package/.agent/skills/performance-oracle/SKILL.md +110 -0
  117. package/.agent/skills/pr-comment-resolver/SKILL.md +69 -0
  118. package/.agent/skills/rclone/SKILL.md +150 -0
  119. package/.agent/skills/rclone/scripts/check_setup.sh +60 -0
  120. package/.agent/skills/repo-research-analyst/SKILL.md +113 -0
  121. package/.agent/skills/security-sentinel/SKILL.md +93 -0
  122. package/.agent/skills/skill-creator/SKILL.md +209 -0
  123. package/.agent/skills/skill-creator/scripts/init_skill.py +304 -0
  124. package/.agent/skills/skill-creator/scripts/package_skill.py +112 -0
  125. package/.agent/skills/skill-creator/scripts/quick_validate.py +72 -0
  126. package/.agent/skills/spec-flow-analyzer/SKILL.md +113 -0
  127. package/.agent/skills/test-agent/SKILL.md +4 -0
  128. package/.agent/workflows/agent-native-audit.md +277 -0
  129. package/.agent/workflows/ask-user-question.md +21 -0
  130. package/.agent/workflows/changelog.md +137 -0
  131. package/.agent/workflows/compound.md +202 -0
  132. package/.agent/workflows/create-agent-skill.md +8 -0
  133. package/.agent/workflows/deepen-plan-research.md +334 -0
  134. package/.agent/workflows/deepen-plan-synthesis.md +182 -0
  135. package/.agent/workflows/deepen-plan.md +79 -0
  136. package/.agent/workflows/feature-video.md +342 -0
  137. package/.agent/workflows/generate-command.md +162 -0
  138. package/.agent/workflows/heal-skill.md +142 -0
  139. package/.agent/workflows/lfg.md +20 -0
  140. package/.agent/workflows/plan-analysis.md +67 -0
  141. package/.agent/workflows/plan-next-steps.md +63 -0
  142. package/.agent/workflows/plan-review.md +33 -0
  143. package/.agent/workflows/plan-synthesis.md +106 -0
  144. package/.agent/workflows/plan.md +49 -0
  145. package/.agent/workflows/report-bug.md +150 -0
  146. package/.agent/workflows/reproduce-bug.md +99 -0
  147. package/.agent/workflows/resolve-parallel.md +34 -0
  148. package/.agent/workflows/resolve-pr-parallel.md +49 -0
  149. package/.agent/workflows/resolve-todo-parallel.md +35 -0
  150. package/.agent/workflows/review-analysis.md +145 -0
  151. package/.agent/workflows/review-synthesis.md +262 -0
  152. package/.agent/workflows/review.md +64 -0
  153. package/.agent/workflows/ship.md +90 -0
  154. package/.agent/workflows/test-command.md +3 -0
  155. package/.agent/workflows/triage.md +310 -0
  156. package/.agent/workflows/work.md +157 -0
  157. package/.agent/workflows/xcode-test.md +332 -0
  158. package/LICENSE +22 -0
  159. package/README.md +49 -0
  160. package/bin/ag-cortex.js +54 -0
  161. package/lib/core.js +165 -0
  162. package/package.json +31 -0
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: {{SKILL_NAME}}
3
+ description: {{What it does}} Use when {{trigger conditions}}.
4
+ ---
5
+
6
+ <objective>
7
+ {{Clear statement of what this skill accomplishes}}
8
+ </objective>
9
+
10
+ <quick_start>
11
+ {{Immediate actionable guidance - what Antigravity should do first}}
12
+ </quick_start>
13
+
14
+ <process>
15
+ ## Step 1: {{First action}}
16
+
17
+ {{Instructions for step 1}}
18
+
19
+ ## Step 2: {{Second action}}
20
+
21
+ {{Instructions for step 2}}
22
+
23
+ ## Step 3: {{Third action}}
24
+
25
+ {{Instructions for step 3}}
26
+ </process>
27
+
28
+ <success_criteria>
29
+ {{Skill name}} is complete when:
30
+ - [ ] {{First success criterion}}
31
+ - [ ] {{Second success criterion}}
32
+ - [ ] {{Third success criterion}}
33
+ </success_criteria>
@@ -0,0 +1,96 @@
1
+ # Workflow: Add a Reference to Existing Skill
2
+
3
+ <required_reading>
4
+ **Read these reference files NOW:**
5
+ 1. references/recommended-structure.md
6
+ 2. references/skill-structure.md
7
+ </required_reading>
8
+
9
+ <process>
10
+ ## Step 1: Select the Skill
11
+
12
+ ```bash
13
+ ls ~/.antigravity/skills/
14
+ ```
15
+
16
+ Present numbered list, ask: "Which skill needs a new reference?"
17
+
18
+ ## Step 2: Analyze Current Structure
19
+
20
+ ```bash
21
+ cat ~/.antigravity/skills/{skill-name}/SKILL.md
22
+ ls ~/.antigravity/skills/{skill-name}/references/ 2>/dev/null
23
+ ```
24
+
25
+ Determine:
26
+ - **Has references/ folder?** → Good, can add directly
27
+ - **Simple skill?** → May need to create references/ first
28
+ - **What references exist?** → Understand the knowledge landscape
29
+
30
+ Report current references to user.
31
+
32
+ ## Step 3: Gather Reference Requirements
33
+
34
+ Ask:
35
+ - What knowledge should this reference contain?
36
+ - Which workflows will use it?
37
+ - Is this reusable across workflows or specific to one?
38
+
39
+ **If specific to one workflow** → Consider putting it inline in that workflow instead.
40
+
41
+ ## Step 4: Create the Reference File
42
+
43
+ Create `references/{reference-name}.md`:
44
+
45
+ Use semantic XML tags to structure the content:
46
+ ```xml
47
+ <overview>
48
+ Brief description of what this reference covers
49
+ </overview>
50
+
51
+ <patterns>
52
+ ## Common Patterns
53
+ [Reusable patterns, examples, code snippets]
54
+ </patterns>
55
+
56
+ <guidelines>
57
+ ## Guidelines
58
+ [Best practices, rules, constraints]
59
+ </guidelines>
60
+
61
+ <examples>
62
+ ## Examples
63
+ [Concrete examples with explanation]
64
+ </examples>
65
+ ```
66
+
67
+ ## Step 5: Update SKILL.md
68
+
69
+ Add the new reference to `<reference_index>`:
70
+ ```markdown
71
+ **Category:** existing.md, new-reference.md
72
+ ```
73
+
74
+ ## Step 6: Update Workflows That Need It
75
+
76
+ For each workflow that should use this reference:
77
+
78
+ 1. Read the workflow file
79
+ 2. Add to its `<required_reading>` section
80
+ 3. Verify the workflow still makes sense with this addition
81
+
82
+ ## Step 7: Verify
83
+
84
+ - [ ] Reference file exists and is well-structured
85
+ - [ ] Reference is in SKILL.md reference_index
86
+ - [ ] Relevant workflows have it in required_reading
87
+ - [ ] No broken references
88
+ </process>
89
+
90
+ <success_criteria>
91
+ Reference addition is complete when:
92
+ - [ ] Reference file created with useful content
93
+ - [ ] Added to reference_index in SKILL.md
94
+ - [ ] Relevant workflows updated to read it
95
+ - [ ] Content is reusable (not workflow-specific)
96
+ </success_criteria>
@@ -0,0 +1,93 @@
1
+ # Workflow: Add a Script to a Skill
2
+
3
+ <required_reading>
4
+ **Read these reference files NOW:**
5
+ 1. references/using-scripts.md
6
+ </required_reading>
7
+
8
+ <process>
9
+ ## Step 1: Identify the Skill
10
+
11
+ Ask (if not already provided):
12
+ - Which skill needs a script?
13
+ - What operation should the script perform?
14
+
15
+ ## Step 2: Analyze Script Need
16
+
17
+ Confirm this is a good script candidate:
18
+ - [ ] Same code runs across multiple invocations
19
+ - [ ] Operation is error-prone when rewritten
20
+ - [ ] Consistency matters more than flexibility
21
+
22
+ If not a good fit, suggest alternatives (inline code in workflow, reference examples).
23
+
24
+ ## Step 3: Create Scripts Directory
25
+
26
+ ```bash
27
+ mkdir -p ~/.antigravity/skills/{skill-name}/scripts
28
+ ```
29
+
30
+ ## Step 4: Design Script
31
+
32
+ Gather requirements:
33
+ - What inputs does the script need?
34
+ - What should it output or accomplish?
35
+ - What errors might occur?
36
+ - Should it be idempotent?
37
+
38
+ Choose language:
39
+ - **bash** - Shell operations, file manipulation, CLI tools
40
+ - **python** - Data processing, API calls, complex logic
41
+ - **node/ts** - JavaScript ecosystem, async operations
42
+
43
+ ## Step 5: Write Script File
44
+
45
+ Create `scripts/{script-name}.{ext}` with:
46
+ - Purpose comment at top
47
+ - Usage instructions
48
+ - Input validation
49
+ - Error handling
50
+ - Clear output/feedback
51
+
52
+ For bash scripts:
53
+ ```bash
54
+ #!/bin/bash
55
+ set -euo pipefail
56
+ ```
57
+
58
+ ## Step 6: Make Executable (if bash)
59
+
60
+ ```bash
61
+ chmod +x ~/.antigravity/skills/{skill-name}/scripts/{script-name}.sh
62
+ ```
63
+
64
+ ## Step 7: Update Workflow to Use Script
65
+
66
+ Find the workflow that needs this operation. Add:
67
+ ```xml
68
+ <process>
69
+ ...
70
+ N. Run `scripts/{script-name}.sh [arguments]`
71
+ N+1. Verify operation succeeded
72
+ ...
73
+ </process>
74
+ ```
75
+
76
+ ## Step 8: Test
77
+
78
+ Invoke the skill workflow and verify:
79
+ - Script runs at the right step
80
+ - Inputs are passed correctly
81
+ - Errors are handled gracefully
82
+ - Output matches expectations
83
+ </process>
84
+
85
+ <success_criteria>
86
+ Script is complete when:
87
+ - [ ] scripts/ directory exists
88
+ - [ ] Script file has proper structure (comments, validation, error handling)
89
+ - [ ] Script is executable (if bash)
90
+ - [ ] At least one workflow references the script
91
+ - [ ] No hardcoded secrets or credentials
92
+ - [ ] Tested with real invocation
93
+ </success_criteria>
@@ -0,0 +1,74 @@
1
+ # Workflow: Add a Template to a Skill
2
+
3
+ <required_reading>
4
+ **Read these reference files NOW:**
5
+ 1. references/using-templates.md
6
+ </required_reading>
7
+
8
+ <process>
9
+ ## Step 1: Identify the Skill
10
+
11
+ Ask (if not already provided):
12
+ - Which skill needs a template?
13
+ - What output does this template structure?
14
+
15
+ ## Step 2: Analyze Template Need
16
+
17
+ Confirm this is a good template candidate:
18
+ - [ ] Output has consistent structure across uses
19
+ - [ ] Structure matters more than creative generation
20
+ - [ ] Filling placeholders is more reliable than blank-page generation
21
+
22
+ If not a good fit, suggest alternatives (workflow guidance, reference examples).
23
+
24
+ ## Step 3: Create Templates Directory
25
+
26
+ ```bash
27
+ mkdir -p ~/.antigravity/skills/{skill-name}/templates
28
+ ```
29
+
30
+ ## Step 4: Design Template Structure
31
+
32
+ Gather requirements:
33
+ - What sections does the output need?
34
+ - What information varies between uses? (→ placeholders)
35
+ - What stays constant? (→ static structure)
36
+
37
+ ## Step 5: Write Template File
38
+
39
+ Create `templates/{template-name}.md` with:
40
+ - Clear section markers
41
+ - `{{PLACEHOLDER}}` syntax for variable content
42
+ - Brief inline guidance where helpful
43
+ - Minimal example content
44
+
45
+ ## Step 6: Update Workflow to Use Template
46
+
47
+ Find the workflow that produces this output. Add:
48
+ ```xml
49
+ <process>
50
+ ...
51
+ N. Read `templates/{template-name}.md`
52
+ N+1. Copy template structure
53
+ N+2. Fill each placeholder based on gathered context
54
+ ...
55
+ </process>
56
+ ```
57
+
58
+ ## Step 7: Test
59
+
60
+ Invoke the skill workflow and verify:
61
+ - Template is read at the right step
62
+ - All placeholders get filled appropriately
63
+ - Output structure matches template
64
+ - No placeholders left unfilled
65
+ </process>
66
+
67
+ <success_criteria>
68
+ Template is complete when:
69
+ - [ ] templates/ directory exists
70
+ - [ ] Template file has clear structure with placeholders
71
+ - [ ] At least one workflow references the template
72
+ - [ ] Workflow instructions explain when/how to use template
73
+ - [ ] Tested with real invocation
74
+ </success_criteria>
@@ -0,0 +1,120 @@
1
+ # Workflow: Add a Workflow to Existing Skill
2
+
3
+ <required_reading>
4
+ **Read these reference files NOW:**
5
+ 1. references/recommended-structure.md
6
+ 2. references/workflows-and-validation.md
7
+ </required_reading>
8
+
9
+ <process>
10
+ ## Step 1: Select the Skill
11
+
12
+ **DO NOT use AskUserQuestion** - there may be many skills.
13
+
14
+ ```bash
15
+ ls ~/.antigravity/skills/
16
+ ```
17
+
18
+ Present numbered list, ask: "Which skill needs a new workflow?"
19
+
20
+ ## Step 2: Analyze Current Structure
21
+
22
+ Read the skill:
23
+ ```bash
24
+ cat ~/.antigravity/skills/{skill-name}/SKILL.md
25
+ ls ~/.antigravity/skills/{skill-name}/workflows/ 2>/dev/null
26
+ ```
27
+
28
+ Determine:
29
+ - **Simple skill?** → May need to upgrade to router pattern first
30
+ - **Already has workflows/?** → Good, can add directly
31
+ - **What workflows exist?** → Avoid duplication
32
+
33
+ Report current structure to user.
34
+
35
+ ## Step 3: Gather Workflow Requirements
36
+
37
+ Ask using AskUserQuestion or direct question:
38
+ - What should this workflow do?
39
+ - When would someone use it vs existing workflows?
40
+ - What references would it need?
41
+
42
+ ## Step 4: Upgrade to Router Pattern (if needed)
43
+
44
+ **If skill is currently simple (no workflows/):**
45
+
46
+ Ask: "This skill needs to be upgraded to the router pattern first. Should I restructure it?"
47
+
48
+ If yes:
49
+ 1. Create workflows/ directory
50
+ 2. Move existing process content to workflows/main.md
51
+ 3. Rewrite SKILL.md as router with intake + routing
52
+ 4. Verify structure works before proceeding
53
+
54
+ ## Step 5: Create the Workflow File
55
+
56
+ Create `workflows/{workflow-name}.md`:
57
+
58
+ ```markdown
59
+ # Workflow: {Workflow Name}
60
+
61
+ <required_reading>
62
+ **Read these reference files NOW:**
63
+ 1. references/{relevant-file}.md
64
+ </required_reading>
65
+
66
+ <process>
67
+ ## Step 1: {First Step}
68
+ [What to do]
69
+
70
+ ## Step 2: {Second Step}
71
+ [What to do]
72
+
73
+ ## Step 3: {Third Step}
74
+ [What to do]
75
+ </process>
76
+
77
+ <success_criteria>
78
+ This workflow is complete when:
79
+ - [ ] Criterion 1
80
+ - [ ] Criterion 2
81
+ - [ ] Criterion 3
82
+ </success_criteria>
83
+ ```
84
+
85
+ ## Step 6: Update SKILL.md
86
+
87
+ Add the new workflow to:
88
+
89
+ 1. **Intake question** - Add new option
90
+ 2. **Routing table** - Map option to workflow file
91
+ 3. **Workflows index** - Add to the list
92
+
93
+ ## Step 7: Create References (if needed)
94
+
95
+ If the workflow needs domain knowledge that doesn't exist:
96
+ 1. Create `references/{reference-name}.md`
97
+ 2. Add to reference_index in SKILL.md
98
+ 3. Reference it in the workflow's required_reading
99
+
100
+ ## Step 8: Test
101
+
102
+ Invoke the skill:
103
+ - Does the new option appear in intake?
104
+ - Does selecting it route to the correct workflow?
105
+ - Does the workflow load the right references?
106
+ - Does the workflow execute correctly?
107
+
108
+ Report results to user.
109
+ </process>
110
+
111
+ <success_criteria>
112
+ Workflow addition is complete when:
113
+ - [ ] Skill upgraded to router pattern (if needed)
114
+ - [ ] Workflow file created with required_reading, process, success_criteria
115
+ - [ ] SKILL.md intake updated with new option
116
+ - [ ] SKILL.md routing updated
117
+ - [ ] SKILL.md workflows_index updated
118
+ - [ ] Any needed references created
119
+ - [ ] Tested and working
120
+ </success_criteria>
@@ -0,0 +1,138 @@
1
+ # Workflow: Audit a Skill
2
+
3
+ <required_reading>
4
+ **Read these reference files NOW:**
5
+ 1. references/recommended-structure.md
6
+ 2. references/skill-structure.md
7
+ 3. references/use-xml-tags.md
8
+ </required_reading>
9
+
10
+ <process>
11
+ ## Step 1: List Available Skills
12
+
13
+ **DO NOT use AskUserQuestion** - there may be many skills.
14
+
15
+ Enumerate skills in chat as numbered list:
16
+ ```bash
17
+ ls ~/.antigravity/skills/
18
+ ```
19
+
20
+ Present as:
21
+ ```
22
+ Available skills:
23
+ 1. create-agent-skills
24
+ 2. build-macos-apps
25
+ 3. manage-stripe
26
+ ...
27
+ ```
28
+
29
+ Ask: "Which skill would you like to audit? (enter number or name)"
30
+
31
+ ## Step 2: Read the Skill
32
+
33
+ After user selects, read the full skill structure:
34
+ ```bash
35
+ # Read main file
36
+ cat ~/.antigravity/skills/{skill-name}/SKILL.md
37
+
38
+ # Check for workflows and references
39
+ ls ~/.antigravity/skills/{skill-name}/
40
+ ls ~/.antigravity/skills/{skill-name}/workflows/ 2>/dev/null
41
+ ls ~/.antigravity/skills/{skill-name}/references/ 2>/dev/null
42
+ ```
43
+
44
+ ## Step 3: Run Audit Checklist
45
+
46
+ Evaluate against each criterion:
47
+
48
+ ### YAML Frontmatter
49
+ - [ ] Has `name:` field (lowercase-with-hyphens)
50
+ - [ ] Name matches directory name
51
+ - [ ] Has `description:` field
52
+ - [ ] Description says what it does AND when to use it
53
+ - [ ] Description is third person ("Use when...")
54
+
55
+ ### Structure
56
+ - [ ] SKILL.md under 500 lines
57
+ - [ ] Pure XML structure (no markdown headings # in body)
58
+ - [ ] All XML tags properly closed
59
+ - [ ] Has required tags: objective OR essential_principles
60
+ - [ ] Has success_criteria
61
+
62
+ ### Router Pattern (if complex skill)
63
+ - [ ] Essential principles inline in SKILL.md (not in separate file)
64
+ - [ ] Has intake question
65
+ - [ ] Has routing table
66
+ - [ ] All referenced workflow files exist
67
+ - [ ] All referenced reference files exist
68
+
69
+ ### Workflows (if present)
70
+ - [ ] Each has required_reading section
71
+ - [ ] Each has process section
72
+ - [ ] Each has success_criteria section
73
+ - [ ] Required reading references exist
74
+
75
+ ### Content Quality
76
+ - [ ] Principles are actionable (not vague platitudes)
77
+ - [ ] Steps are specific (not "do the thing")
78
+ - [ ] Success criteria are verifiable
79
+ - [ ] No redundant content across files
80
+
81
+ ## Step 4: Generate Report
82
+
83
+ Present findings as:
84
+
85
+ ```
86
+ ## Audit Report: {skill-name}
87
+
88
+ ### ✅ Passing
89
+ - [list passing items]
90
+
91
+ ### ⚠️ Issues Found
92
+ 1. **[Issue name]**: [Description]
93
+ → Fix: [Specific action]
94
+
95
+ 2. **[Issue name]**: [Description]
96
+ → Fix: [Specific action]
97
+
98
+ ### 📊 Score: X/Y criteria passing
99
+ ```
100
+
101
+ ## Step 5: Offer Fixes
102
+
103
+ If issues found, ask:
104
+ "Would you like me to fix these issues?"
105
+
106
+ Options:
107
+ 1. **Fix all** - Apply all recommended fixes
108
+ 2. **Fix one by one** - Review each fix before applying
109
+ 3. **Just the report** - No changes needed
110
+
111
+ If fixing:
112
+ - Make each change
113
+ - Verify file validity after each change
114
+ - Report what was fixed
115
+ </process>
116
+
117
+ <audit_anti_patterns>
118
+ ## Common Anti-Patterns to Flag
119
+
120
+ **Skippable principles**: Essential principles in separate file instead of inline
121
+ **Monolithic skill**: Single file over 500 lines
122
+ **Mixed concerns**: Procedures and knowledge in same file
123
+ **Vague steps**: "Handle the error appropriately"
124
+ **Untestable criteria**: "User is satisfied"
125
+ **Markdown headings in body**: Using # instead of XML tags
126
+ **Missing routing**: Complex skill without intake/routing
127
+ **Broken references**: Files mentioned but don't exist
128
+ **Redundant content**: Same information in multiple places
129
+ </audit_anti_patterns>
130
+
131
+ <success_criteria>
132
+ Audit is complete when:
133
+ - [ ] Skill fully read and analyzed
134
+ - [ ] All checklist items evaluated
135
+ - [ ] Report presented to user
136
+ - [ ] Fixes applied (if requested)
137
+ - [ ] User has clear picture of skill health
138
+ </success_criteria>