@massa-ai/codex-plugin 1.26.0 → 1.29.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 (156) hide show
  1. package/.codex-plugin/plugin.json +1 -1
  2. package/agent-profiles/balanced/massa-ai-judge.toml +5 -8
  3. package/agent-profiles/balanced/massa-ai-meta-judge.toml +2 -5
  4. package/agent-profiles/balanced/massa-ai-navigator.toml +1 -1
  5. package/agent-profiles/cheap/massa-ai-judge.toml +5 -8
  6. package/agent-profiles/cheap/massa-ai-meta-judge.toml +2 -5
  7. package/agent-profiles/cheap/massa-ai-navigator.toml +1 -1
  8. package/agent-profiles/heavy/massa-ai-judge.toml +5 -8
  9. package/agent-profiles/heavy/massa-ai-meta-judge.toml +2 -5
  10. package/agent-profiles/heavy/massa-ai-navigator.toml +1 -1
  11. package/agent-profiles/home/massa-ai-judge.toml +5 -8
  12. package/agent-profiles/home/massa-ai-meta-judge.toml +2 -5
  13. package/agent-profiles/home/massa-ai-navigator.toml +1 -1
  14. package/agent-profiles/work/massa-ai-judge.toml +5 -8
  15. package/agent-profiles/work/massa-ai-meta-judge.toml +2 -5
  16. package/agent-profiles/work/massa-ai-navigator.toml +1 -1
  17. package/agents/massa-ai-judge.toml +5 -8
  18. package/agents/massa-ai-meta-judge.toml +2 -5
  19. package/agents/massa-ai-navigator.toml +1 -1
  20. package/install.sh +32 -0
  21. package/package.json +1 -1
  22. package/skills/agents/judge/SKILL.md +6 -9
  23. package/skills/agents/meta-judge/SKILL.md +3 -6
  24. package/skills/agents/navigator/SKILL.md +2 -2
  25. package/skills/massa-ai/SKILL.md +6 -17
  26. package/skills/massa-ai/references/adr-authoring.md +3 -3
  27. package/skills/massa-ai/references/agent-orchestration.md +18 -3
  28. package/skills/massa-ai/references/architecture-coupling-lens.md +1 -1
  29. package/skills/massa-ai/references/architecture-deepening-lens.md +1 -1
  30. package/skills/massa-ai/references/architecture-domain-lens.md +1 -1
  31. package/skills/massa-ai/references/architecture-lenses.md +1 -1
  32. package/skills/massa-ai/references/audit-report-io.md +32 -2
  33. package/skills/massa-ai/references/audit-scope.md +22 -1
  34. package/skills/massa-ai/references/code-annotation.md +5 -5
  35. package/skills/massa-ai/references/codebase-investigation.md +1 -1
  36. package/skills/massa-ai/references/coding-guidelines.md +67 -0
  37. package/skills/massa-ai/references/context-firewall.md +2 -1
  38. package/skills/massa-ai/references/conversation-feedback.md +1 -1
  39. package/skills/massa-ai/references/debug-diagnosis-loop.md +1 -1
  40. package/skills/massa-ai/references/decision-engine.md +1 -1
  41. package/skills/massa-ai/references/evidence-gate.md +1 -1
  42. package/skills/massa-ai/references/figma-pre-analysis.md +3 -3
  43. package/skills/massa-ai/references/furps/analyst-role.md +1 -1
  44. package/skills/massa-ai/references/furps/checklist.md +1 -1
  45. package/skills/massa-ai/references/furps/intake.md +1 -1
  46. package/skills/massa-ai/references/furps/report-contract.md +1 -1
  47. package/skills/massa-ai/references/graceful-degradation.md +22 -0
  48. package/skills/massa-ai/references/hook-enforcement.md +3 -3
  49. package/skills/massa-ai/references/implementation-delivery.md +4 -4
  50. package/skills/massa-ai/references/installation.md +1 -1
  51. package/skills/massa-ai/references/lessons.md +2 -2
  52. package/skills/massa-ai/references/maestro/artifacts-reports.md +1 -1
  53. package/skills/massa-ai/references/maestro/cli-device.md +1 -1
  54. package/skills/massa-ai/references/maestro/cloud.md +1 -1
  55. package/skills/massa-ai/references/maestro/config-env-output.md +1 -1
  56. package/skills/massa-ai/references/maestro/fact-ledger.md +1 -1
  57. package/skills/massa-ai/references/maestro/js-scripting.md +1 -1
  58. package/skills/massa-ai/references/maestro/mcp.md +1 -1
  59. package/skills/massa-ai/references/maestro/patterns.md +1 -1
  60. package/skills/massa-ai/references/maestro/selectors.md +1 -1
  61. package/skills/massa-ai/references/maestro/workspace-execution.md +1 -1
  62. package/skills/massa-ai/references/maestro/yaml-commands.md +1 -1
  63. package/skills/massa-ai/references/maestro.md +1 -1
  64. package/skills/massa-ai/references/mcp-tools.md +2 -2
  65. package/skills/massa-ai/references/memory-policy.md +2 -2
  66. package/skills/massa-ai/references/mobile-context.md +9 -5
  67. package/skills/massa-ai/references/mobile-diagnosis.md +2 -2
  68. package/skills/massa-ai/references/mobile-figma-matcher/android-compose.md +1 -1
  69. package/skills/massa-ai/references/mobile-figma-matcher/android-views.md +1 -1
  70. package/skills/massa-ai/references/mobile-figma-matcher/core.md +1 -1
  71. package/skills/massa-ai/references/mobile-figma-matcher/ios-swiftui.md +1 -1
  72. package/skills/massa-ai/references/mobile-figma-matcher/ios-uikit.md +1 -1
  73. package/skills/massa-ai/references/mobile-figma-matcher/kmp-compose-multiplatform.md +1 -1
  74. package/skills/massa-ai/references/mobile-figma-matcher/repository-detection.md +1 -1
  75. package/skills/massa-ai/references/naming-standards.md +1 -1
  76. package/skills/massa-ai/references/pr-task-fix.md +2 -2
  77. package/skills/massa-ai/references/project-context.md +2 -2
  78. package/skills/massa-ai/references/repo-rules-discovery.md +4 -4
  79. package/skills/massa-ai/references/rfc/discovery-and-sizing.md +1 -1
  80. package/skills/massa-ai/references/rfc/document-contract.md +1 -1
  81. package/skills/massa-ai/references/rfc/quality-and-lifecycle.md +1 -1
  82. package/skills/massa-ai/references/root-cause-scripts.md +2 -2
  83. package/skills/massa-ai/references/skill-architect/examples.md +256 -0
  84. package/skills/massa-ai/references/skill-architect/patterns.md +317 -0
  85. package/skills/massa-ai/references/skill-architect/quality-checklist.md +70 -0
  86. package/skills/massa-ai/references/sonarqube-mcp.md +73 -0
  87. package/skills/massa-ai/references/spec-driven/artifact-store.md +1 -1
  88. package/skills/massa-ai/references/spec-driven/brownfield-mapping.md +16 -0
  89. package/skills/massa-ai/references/spec-driven/code-analysis.md +1 -1
  90. package/skills/massa-ai/references/spec-driven/coding-principles.md +1 -1
  91. package/skills/massa-ai/references/spec-driven/context-limits.md +1 -1
  92. package/skills/massa-ai/references/spec-driven/design.md +22 -1
  93. package/skills/massa-ai/references/spec-driven/discuss.md +1 -1
  94. package/skills/massa-ai/references/spec-driven/execute.md +3 -1
  95. package/skills/massa-ai/references/spec-driven/memory.md +1 -1
  96. package/skills/massa-ai/references/spec-driven/specify.md +3 -3
  97. package/skills/massa-ai/references/spec-driven/sub-agents.md +1 -1
  98. package/skills/massa-ai/references/spec-driven/tasks.md +1 -1
  99. package/skills/massa-ai/references/spec-driven/validate.md +1 -1
  100. package/skills/massa-ai/references/subagent-design.md +4 -4
  101. package/skills/massa-ai/references/synapse-policy.md +1 -1
  102. package/skills/massa-ai/references/tdd/calibrated-examples.md +1 -1
  103. package/skills/massa-ai/references/tdd/discovery-and-sizing.md +1 -1
  104. package/skills/massa-ai/references/tdd/document-contract.md +1 -1
  105. package/skills/massa-ai/references/tdd/quality-and-lifecycle.md +1 -1
  106. package/skills/massa-ai/references/the-fool/cognitive-bias-inventory.md +1 -1
  107. package/skills/massa-ai/references/the-fool/dialectic-synthesis.md +1 -1
  108. package/skills/massa-ai/references/the-fool/evidence-audit.md +1 -1
  109. package/skills/massa-ai/references/the-fool/pre-mortem-analysis.md +1 -1
  110. package/skills/massa-ai/references/the-fool/red-team-adversarial.md +1 -1
  111. package/skills/massa-ai/references/the-fool/socratic-questioning.md +1 -1
  112. package/skills/massa-ai/references/ticket/atlassian-fix.md +1 -1
  113. package/skills/massa-ai/references/ticket/intake-and-sources.md +1 -1
  114. package/skills/massa-ai/references/ticket/templates-and-quality.md +1 -1
  115. package/skills/massa-ai/references/verification-ladder.md +1 -1
  116. package/skills/massa-ai/scripts/validate_audit_report.ts +382 -0
  117. package/skills/massa-ai/scripts/validate_design.ts +264 -0
  118. package/skills/massa-ai/scripts/validate_skill.ts +364 -0
  119. package/skills/massa-ai/workflows/adr.md +16 -8
  120. package/skills/massa-ai/workflows/architecture/architecture-audit.md +23 -40
  121. package/skills/massa-ai/workflows/architecture/architecture-fix.md +14 -6
  122. package/skills/massa-ai/workflows/bugs/bugs-audit.md +19 -35
  123. package/skills/massa-ai/workflows/bugs/bugs-fix.md +13 -5
  124. package/skills/massa-ai/workflows/code-quality/code-quality-audit.md +25 -41
  125. package/skills/massa-ai/workflows/code-quality/code-quality-fix.md +13 -5
  126. package/skills/massa-ai/workflows/commit.md +13 -5
  127. package/skills/massa-ai/workflows/debug.md +11 -3
  128. package/skills/massa-ai/workflows/design.md +15 -7
  129. package/skills/massa-ai/workflows/exploration.md +12 -4
  130. package/skills/massa-ai/workflows/feature.md +14 -13
  131. package/skills/massa-ai/workflows/general.md +13 -8
  132. package/skills/massa-ai/workflows/implementation/implementation-audit.md +15 -15
  133. package/skills/massa-ai/workflows/implementation/implementation-fix.md +13 -5
  134. package/skills/massa-ai/workflows/judge-with-debate.md +12 -4
  135. package/skills/massa-ai/workflows/long-session.md +10 -2
  136. package/skills/massa-ai/workflows/maestro/maestro-audit.md +11 -3
  137. package/skills/massa-ai/workflows/maestro/maestro-fix.md +12 -4
  138. package/skills/massa-ai/workflows/maestro/maestro.md +12 -4
  139. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-audit.md +11 -3
  140. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-fix.md +12 -4
  141. package/skills/massa-ai/workflows/onboarding.md +10 -2
  142. package/skills/massa-ai/workflows/refactor.md +12 -4
  143. package/skills/massa-ai/workflows/refinement/furps-refinement.md +12 -4
  144. package/skills/massa-ai/workflows/requirements/requirements-audit.md +19 -36
  145. package/skills/massa-ai/workflows/requirements/requirements-fix.md +13 -5
  146. package/skills/massa-ai/workflows/rfc.md +10 -2
  147. package/skills/massa-ai/workflows/security/security-audit.md +19 -35
  148. package/skills/massa-ai/workflows/security/security-fix.md +13 -5
  149. package/skills/massa-ai/workflows/skill-architect.md +393 -0
  150. package/skills/massa-ai/workflows/spec-driven.md +20 -23
  151. package/skills/massa-ai/workflows/tdd.md +10 -2
  152. package/skills/massa-ai/workflows/tests/tests-audit.md +19 -35
  153. package/skills/massa-ai/workflows/tests/tests-fix.md +13 -5
  154. package/skills/massa-ai/workflows/the-fool.md +11 -3
  155. package/skills/massa-ai/workflows/ticket.md +10 -2
  156. package/skills/massa-ai/workflows/to-prd.md +81 -0
@@ -1,6 +1,6 @@
1
1
  # Android Jetpack Compose Figma Contract
2
2
 
3
- Load this reference only for Target Surface Packet rows classified as Android Jetpack Compose.
3
+ Load only for Target Surface Packet rows classified as Android Jetpack Compose.
4
4
 
5
5
  - Resolve composables, modifiers, layout primitives, Material/theme tokens, typography, shapes, painters/assets, state holders, previews/providers, navigation entry, semantics, and test tags affecting the surface.
6
6
  - Distinguish Android-only Compose from Compose Multiplatform using module and source-set evidence.
@@ -1,6 +1,6 @@
1
1
  # Android Views Figma Contract
2
2
 
3
- Load this reference only for Target Surface Packet rows classified as Android Views XML.
3
+ Load only for Target Surface Packet rows classified as Android Views XML.
4
4
 
5
5
  - Resolve `res/layout`, qualifiers, includes/merges, styles/themes, dimensions, colors/selectors, text appearances, drawables, fonts, strings, binding/adapters, and Material components affecting the surface.
6
6
  - Follow aliases to final values. Record the symbolic resource chain and resolved value.
@@ -1,6 +1,6 @@
1
1
  # Mobile Figma Core
2
2
 
3
- Use this shared reference after `repository-detection.md` identifies one or more target surfaces. It defines Figma evidence, requirements boundaries, asset handling, mapping and comparison semantics, runtime evidence, and parity-claim limits. Load only the platform references named by the Target Surface Packet.
3
+ Use after `repository-detection.md` identifies one or more target surfaces. Defines Figma evidence, requirements boundaries, asset handling, mapping and comparison semantics, runtime evidence, and parity-claim limits. Load only the platform references named by the Target Surface Packet.
4
4
 
5
5
  ## Boundaries
6
6
 
@@ -1,6 +1,6 @@
1
1
  # iOS SwiftUI Figma Contract
2
2
 
3
- Load this reference only for Target Surface Packet rows classified as iOS SwiftUI.
3
+ Load only for Target Surface Packet rows classified as iOS SwiftUI.
4
4
 
5
5
  - Resolve `View` composition, modifiers, layout containers, environment values, state selection, navigation entry, styles, asset catalogs, symbols, fonts, previews, accessibility modifiers, and UIKit hosting/interoperability affecting the surface.
6
6
  - Compare Figma coordinates with SwiftUI points, then account for display scale only for rendered-pixel evidence.
@@ -1,6 +1,6 @@
1
1
  # iOS UIKit Figma Contract
2
2
 
3
- Load this reference only for Target Surface Packet rows classified as iOS UIKit.
3
+ Load only for Target Surface Packet rows classified as iOS UIKit.
4
4
 
5
5
  - Resolve storyboards, XIBs, programmatic views, view controllers, reusable views/cells, Auto Layout constraints, appearance APIs, trait-dependent resources, asset catalogs, fonts, strings, and state configuration.
6
6
  - Compare Figma coordinates with UIKit points, then account for device display scale only when validating rendered pixels.
@@ -1,6 +1,6 @@
1
1
  # KMP Compose Multiplatform Figma Contract
2
2
 
3
- Load this reference only for shared Compose Multiplatform Target Surface Packet rows.
3
+ Load only for shared Compose Multiplatform Target Surface Packet rows.
4
4
 
5
5
  - Resolve common composables, shared state, theme/design tokens, Compose resources, adaptive layout, accessibility semantics, platform adapters, and `expect`/`actual` declarations affecting presentation.
6
6
  - Keep business/domain behavior in established shared boundaries. Do not move platform-only UI behavior into common code merely to reduce duplication.
@@ -1,6 +1,6 @@
1
1
  # Mobile Figma Repository Detection
2
2
 
3
- Use this reference before loading any stack-specific matcher reference. Classify the concrete target module and files, not the repository root or repository name.
3
+ Use before loading any stack-specific matcher reference. Classify the concrete target module and files, not the repository root or repository name.
4
4
 
5
5
  Monorepositories may contain several valid mobile stacks; classify only modules connected to the requested target.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Naming Standards
2
2
 
3
- Use this reference when a workflow writes code, drafts implementation contracts, audits code quality, or executes findings that introduce, rename, or preserve identifiers.
3
+ Use when a workflow writes code, drafts implementation contracts, audits code quality, or executes findings that introduce, rename, or preserve identifiers.
4
4
 
5
5
  ## Goal
6
6
 
@@ -1,12 +1,12 @@
1
1
  # PR Task Fix
2
2
 
3
- Load this reference from `workflows/feature.md` and `workflows/refactor.md` before non-trivial implementation or refactor execution that can be decomposed into reviewable task groups.
3
+ Load from `workflows/feature.md` and `workflows/refactor.md` before non-trivial implementation or refactor execution that can be decomposed into reviewable task groups.
4
4
 
5
5
  ## ADR/TDD Input Gate
6
6
 
7
7
  Before decomposition, inspect the first user prompt, current prompt context, explicitly attached or readable local files, and any already supplied Atlassian MCP source pointers.
8
8
 
9
- If there is no ADR or TDD plain text, no attached/readable ADR or TDD file, and no already supplied Atlassian ADR/TDD source, ask whether the user wants to provide an ADR or TDD through Atlassian MCP. Do not ask again when the user has already supplied, declined, or made Atlassian unavailable for this run.
9
+ If there is no ADR or TDD plain text, no attached/readable ADR or TDD file, and no already-supplied Atlassian ADR/TDD source, ask whether the user wants to provide an ADR or TDD through Atlassian MCP. Do not ask again once the user has already supplied, declined, or made Atlassian unavailable for this run.
10
10
 
11
11
  Use ADR/TDD input as implementation context, not as permission to bypass the active workflow's scope, source verification, or verification recipe. If the ADR/TDD conflicts with current source or project instructions, surface the conflict and resolve it before implementation.
12
12
 
@@ -1,6 +1,6 @@
1
1
  # Project Context Intake
2
2
 
3
- Use this reference at the start of every workflow, before the first substantive
3
+ Use at the start of every workflow, before the first substantive
4
4
  read, edit, plan, or answer. It defines the minimum project-context sweep that
5
5
  makes agent behavior match this repository's actual conventions instead of
6
6
  generic defaults.
@@ -41,7 +41,7 @@ When two sources conflict, the higher tier wins:
41
41
  6. Current repository source code.
42
42
  7. Recalled memory — context only, never canonical.
43
43
 
44
- A conflict between a doc and current source is a finding: report it rather than
44
+ A conflict between a doc and current source is a finding — report it rather than
45
45
  silently picking a side.
46
46
 
47
47
  ## Dedupe Guard
@@ -1,7 +1,7 @@
1
1
  # Repo Rules Discovery
2
2
 
3
- Use this reference from `workflows/spec-driven.md` before the first repository
4
- mutation. It defines how to discover, load, and enforce the target repository's
3
+ Use from `workflows/spec-driven.md` before the first repository
4
+ mutation. Defines how to discover, load, and enforce the target repository's
5
5
  own AI-harness rules and implementation conventions, so spec-driven
6
6
  implementation conforms to the repo it runs in rather than only to the
7
7
  skill's defaults.
@@ -12,8 +12,8 @@ the target repo**: it loads what is present and never invents what is absent.
12
12
  ## Principle
13
13
 
14
14
  A repository's rules live in its own harness files and conventions. spec-driven
15
- must read them before implementing and enforce conformance, because a change
16
- that follows the skill's defaults but violates the repo's module layout, test
15
+ must read them before implementing and enforce conformance — a change that
16
+ follows the skill's defaults but violates the repo's module layout, test
17
17
  placement, or lint rules is not deliverable. Silence here reads as "the repo
18
18
  has no rules", which is almost never true — it means they were not looked up.
19
19
 
@@ -1,6 +1,6 @@
1
1
  # RFC Discovery And Classification
2
2
 
3
- Load this reference before source investigation, RFC classification, impact selection, or clarification questions.
3
+ Load before source investigation, RFC classification, impact selection, or clarification questions.
4
4
 
5
5
  ## Workflow Fit
6
6
 
@@ -1,6 +1,6 @@
1
1
  # RFC Document Contract
2
2
 
3
- Load this reference when drafting or revising an RFC. Preserve the full decision structure while tailoring detail to the RFC type and impact.
3
+ Load when drafting or revising an RFC. Preserve the full decision structure while tailoring detail to the RFC type and impact.
4
4
 
5
5
  ## Section Contract
6
6
 
@@ -1,6 +1,6 @@
1
1
  # RFC Quality And Lifecycle
2
2
 
3
- Load this reference before challenging, finalizing, saving, updating, or closing an RFC.
3
+ Load before challenging, finalizing, saving, updating, or closing an RFC.
4
4
 
5
5
  ## Quality Gate
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Root-Cause Proof Scripts
2
2
 
3
- Use this reference the moment an implementation or fix stops converging. It is a
3
+ Use the moment an implementation or fix stops converging. It is a
4
4
  circuit breaker, not a diagnosis method: it fires mid-implementation in any
5
5
  workflow — `feature`, `debug`, `refactor`, `spec-driven`, any `*-fix` — including
6
6
  the ones that never opened a reproduction loop.
@@ -11,7 +11,7 @@ This file is where any implementation *stops guessing*.
11
11
  ## Principle
12
12
 
13
13
  An agent that has failed twice on the same symptom does not have a code-reading
14
- problem. It has a data problem. Reading the same source a third time produces a
14
+ problem — it has a data problem. Reading the same source a third time produces a
15
15
  third theory with the same evidence base as the first two. The only way out is
16
16
  to make the program tell you what it is actually doing.
17
17
 
@@ -0,0 +1,256 @@
1
+ # Description & Instruction Examples
2
+
3
+ Reference for writing effective skill descriptions and instructions.
4
+ Read this during the Architecture phase (for descriptions) and Craft phase
5
+ (for instructions).
6
+
7
+ ---
8
+
9
+ ## Good Descriptions
10
+
11
+ Each example follows the pattern: [What] + [When/Triggers] + [Not-when].
12
+
13
+ ### Document & Asset Creation
14
+
15
+ ```yaml
16
+ description: Analyzes Figma design files and generates developer handoff documentation.
17
+ Use when user uploads .fig files, asks for "design specs", "component
18
+ documentation", or "design-to-code handoff". Do NOT use for general
19
+ design discussions or UI feedback.
20
+ ```
21
+
22
+ ```yaml
23
+ description: Creates distinctive, production-grade frontend interfaces with high design
24
+ quality. Use this skill when the user asks to build web components, pages,
25
+ artifacts, posters, or applications (examples include websites, landing
26
+ pages, dashboards, React components, HTML/CSS layouts, or when
27
+ styling/beautifying any web UI). Generates creative, polished code and UI
28
+ design that avoids generic AI aesthetics.
29
+ ```
30
+
31
+ ### Workflow Automation
32
+
33
+ ```yaml
34
+ description: Manages Linear project workflows including sprint planning, task creation,
35
+ and status tracking. Use when user mentions "sprint", "Linear tasks",
36
+ "project planning", or asks to "create tickets". Do NOT use for general
37
+ project management advice without Linear context.
38
+ ```
39
+
40
+ ```yaml
41
+ description: End-to-end customer onboarding workflow for PayFlow. Handles account
42
+ creation, payment setup, and subscription management. Use when user says
43
+ "onboard new customer", "set up subscription", or "create PayFlow account".
44
+ ```
45
+
46
+ ### MCP Enhancement
47
+
48
+ ```yaml
49
+ description: Automatically analyzes and fixes detected bugs in GitHub Pull Requests
50
+ using Sentry's error monitoring data via their MCP server. Use when user
51
+ mentions "Sentry errors", "fix bugs from monitoring", "PR review with
52
+ error data", or asks to analyze production errors in code.
53
+ ```
54
+
55
+ ---
56
+
57
+ ## Bad Descriptions (and Why)
58
+
59
+ ```yaml
60
+ # ❌ Too vague — no trigger phrases, no specifics
61
+ description: Helps with projects.
62
+ # Why it fails: the agent can't determine WHEN to load this.
63
+ ```
64
+
65
+ ```yaml
66
+ # ❌ Missing triggers — describes capability but not activation
67
+ description: Creates sophisticated multi-page documentation systems.
68
+ # Why it fails: What would a user SAY to trigger this? "Create docs"?
69
+ # "Write documentation"? Include the actual phrases.
70
+ ```
71
+
72
+ ```yaml
73
+ # ❌ Too technical, no user perspective
74
+ description: Implements the Project entity model with hierarchical relationships.
75
+ # Why it fails: Users don't think in entity models. They think in tasks.
76
+ ```
77
+
78
+ ```yaml
79
+ # ❌ Too broad — will overtrigger
80
+ description: Processes documents.
81
+ # Why it fails: Loads for ANY document task. Add file types and specifics.
82
+ ```
83
+
84
+ ```yaml
85
+ # ❌ Overlap without boundaries
86
+ description: Analyzes data and creates visualizations.
87
+ # Why it fails: Conflicts with built-in capabilities and other skills.
88
+ # Add specifics about WHAT data and WHAT kind of visualizations.
89
+ ```
90
+
91
+ ---
92
+
93
+ ## Fixing Overtriggering with Negative Triggers
94
+
95
+ ```yaml
96
+ # Before: triggers on all data tasks
97
+ description: Advanced data analysis for CSV files.
98
+
99
+ # After: scoped with negative triggers
100
+ description: Advanced data analysis for CSV files. Use for statistical modeling,
101
+ regression, clustering. Do NOT use for simple data exploration
102
+ (use data-viz skill instead) or for reading CSV files without analysis.
103
+ ```
104
+
105
+ ---
106
+
107
+ ## Good Instructions
108
+
109
+ ### Specific and Actionable
110
+
111
+ ```markdown
112
+ # ✅ Good — tells the agent exactly what to do
113
+
114
+ Run `python scripts/[validate].py --input {filename}` to check data format.
115
+ If validation fails, common issues include:
116
+
117
+ - Missing required fields → add them to the CSV
118
+ - Invalid date formats → use YYYY-MM-DD
119
+ - Encoding errors → convert to UTF-8 first
120
+ ```
121
+
122
+ ```markdown
123
+ # ❌ Bad — vague and unactionable
124
+
125
+ Validate the data before proceeding.
126
+ ```
127
+
128
+ ### Error Handling
129
+
130
+ ```markdown
131
+ # ✅ Good — specific error, cause, solution
132
+
133
+ ## Common Issues
134
+
135
+ ### MCP Connection Failed
136
+
137
+ If you see "Connection refused":
138
+
139
+ 1. Verify MCP server is running: Check Settings > Extensions
140
+ 2. Confirm API key is valid
141
+ 3. Try reconnecting: Settings > Extensions > [Service] > Reconnect
142
+ ```
143
+
144
+ ```markdown
145
+ # ❌ Bad — no specifics
146
+
147
+ If something goes wrong, try again.
148
+ ```
149
+
150
+ ### Resource References
151
+
152
+ ```markdown
153
+ # ✅ Good — says WHEN and WHY to read the file
154
+
155
+ Before writing queries, consult `references/[api-patterns].md` for:
156
+
157
+ - Rate limiting guidance (if making >10 calls)
158
+ - Pagination patterns (if results may exceed 100 items)
159
+ - Error codes and handling (if calls may fail)
160
+ ```
161
+
162
+ ```markdown
163
+ # ❌ Bad — no guidance on when to read
164
+
165
+ See references/ for more information.
166
+ ```
167
+
168
+ ### Critical Instructions
169
+
170
+ ```markdown
171
+ # ✅ Good — prominent, specific, verifiable
172
+
173
+ CRITICAL: Before calling create_project, verify:
174
+
175
+ - Project name is non-empty
176
+ - At least one team member assigned
177
+ - Start date is not in the past
178
+ If any check fails, tell the user what's missing before proceeding.
179
+ ```
180
+
181
+ ```markdown
182
+ # ❌ Bad — buried, vague, not verifiable
183
+
184
+ Make sure to validate things properly.
185
+ ```
186
+
187
+ ### Examples in Skills
188
+
189
+ ```markdown
190
+ # ✅ Good — realistic user input with concrete output
191
+
192
+ ## Examples
193
+
194
+ ### Example 1: New sprint setup
195
+
196
+ User says: "Help me plan the Q4 sprint for the mobile team"
197
+ Actions:
198
+
199
+ 1. Fetch current backlog from Linear (MCP)
200
+ 2. Check team capacity (3 engineers, 2-week sprint)
201
+ 3. Prioritize by impact score
202
+ 4. Create 12 tasks with estimates
203
+ Result: Sprint board populated with 12 prioritized tasks, each with
204
+ story points and assignees. Summary posted to #mobile-team Slack.
205
+ ```
206
+
207
+ ```markdown
208
+ # ❌ Bad — generic, no concrete details
209
+
210
+ ### Example 1: Setup
211
+
212
+ User says: "Set up a project"
213
+ Result: Project gets created.
214
+ ```
215
+
216
+ ---
217
+
218
+ ## Anti-Patterns Checklist
219
+
220
+ Before finalizing any skill, verify NONE of these are present:
221
+
222
+ ### Structural Anti-Patterns
223
+
224
+ - [ ] File named SKILL.MD, skill.md, or any variant (must be exactly SKILL.md)
225
+ - [ ] Folder has spaces or capitals (must be kebab-case)
226
+ - [ ] README.md exists inside the skill folder
227
+ - [ ] XML angle brackets (< >) in YAML frontmatter
228
+ - [ ] "claude" or "anthropic" in the skill name
229
+ - [ ] Missing --- delimiters around frontmatter
230
+ - [ ] SKILL.md exceeds 500 lines without progressive disclosure
231
+
232
+ ### Description Anti-Patterns
233
+
234
+ - [ ] No trigger phrases included
235
+ - [ ] Too vague (could match anything)
236
+ - [ ] Too technical (user perspective missing)
237
+ - [ ] No negative triggers when overlap risk exists
238
+ - [ ] Exceeds 1024 characters
239
+
240
+ ### Instruction Anti-Patterns
241
+
242
+ - [ ] Vague directions without specific actions
243
+ - [ ] Critical instructions buried in middle of document
244
+ - [ ] No examples of realistic usage
245
+ - [ ] No error handling guidance
246
+ - [ ] References to external files without load conditions
247
+ - [ ] Wall-of-text instructions without structure
248
+ - [ ] Assumes skill is the only one loaded
249
+ - [ ] Uses prose where a script would be deterministic
250
+
251
+ ### Quality Anti-Patterns
252
+
253
+ - [ ] No validation step in workflow
254
+ - [ ] No stopping conditions for iterative processes
255
+ - [ ] Missing rollback/failure handling
256
+ - [ ] Over-reliance on "be careful" instead of specific checks