tech-lead-stack 1.0.1

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 (123) hide show
  1. package/.agents/hr-workflows/hr-ad-distributor.md +18 -0
  2. package/.agents/hr-workflows/hr-candidate-sourcer.md +18 -0
  3. package/.agents/hr-workflows/hr-endorsement-synthesizer.md +18 -0
  4. package/.agents/hr-workflows/hr-intake-specifier.md +18 -0
  5. package/.agents/hr-workflows/hr-interview-auditor.md +18 -0
  6. package/.agents/hr-workflows/hr-jd-drafter.md +18 -0
  7. package/.agents/hr-workflows/hr-pipeline-translator.md +18 -0
  8. package/.agents/pm-workflows/pm-action-item-mapper.md +18 -0
  9. package/.agents/pm-workflows/pm-backlog-auditor.md +18 -0
  10. package/.agents/pm-workflows/pm-context-summarizer.md +18 -0
  11. package/.agents/pm-workflows/pm-design-system-auditor.md +18 -0
  12. package/.agents/pm-workflows/pm-effort-estimator.md +18 -0
  13. package/.agents/pm-workflows/pm-newsletter-generator.md +18 -0
  14. package/.agents/pm-workflows/pm-progress-translator.md +18 -0
  15. package/.agents/pm-workflows/pm-release-note-drafter.md +18 -0
  16. package/.agents/pm-workflows/pm-risk-detector.md +18 -0
  17. package/.agents/pm-workflows/pm-story-augmenter.md +18 -0
  18. package/.agents/pm-workflows/pm-task-specifier.md +18 -0
  19. package/.agents/workflows/accessibility-audit.md +30 -0
  20. package/.agents/workflows/ask.md +44 -0
  21. package/.agents/workflows/audit-tech-debt.md +31 -0
  22. package/.agents/workflows/changelog.md +31 -0
  23. package/.agents/workflows/clean-code-audit.md +31 -0
  24. package/.agents/workflows/code-review.md +38 -0
  25. package/.agents/workflows/competitive-analysis.md +46 -0
  26. package/.agents/workflows/design-requirements-to-architecture.md +31 -0
  27. package/.agents/workflows/design-system-review.md +113 -0
  28. package/.agents/workflows/dev-team-sub-max.md +57 -0
  29. package/.agents/workflows/dev-team-sub-pro.md +57 -0
  30. package/.agents/workflows/dev-team.md +52 -0
  31. package/.agents/workflows/feature-orchestrator.md +43 -0
  32. package/.agents/workflows/init.md +31 -0
  33. package/.agents/workflows/mission-architect.md +31 -0
  34. package/.agents/workflows/onboard-dev.md +31 -0
  35. package/.agents/workflows/plan-quick.md +33 -0
  36. package/.agents/workflows/plan.md +31 -0
  37. package/.agents/workflows/pr-automator.md +44 -0
  38. package/.agents/workflows/pr-design-review-init.md +57 -0
  39. package/.agents/workflows/qa-handover.md +40 -0
  40. package/.agents/workflows/reflexion-loop-sub-max.md +46 -0
  41. package/.agents/workflows/reflexion-loop-sub-pro.md +45 -0
  42. package/.agents/workflows/reflexion-loop.md +66 -0
  43. package/.agents/workflows/regression-bug-fix.md +31 -0
  44. package/.agents/workflows/security-audit.md +31 -0
  45. package/.agents/workflows/standup-daily-summary.md +31 -0
  46. package/.agents/workflows/strategy-target-evaluation.md +31 -0
  47. package/.agents/workflows/style-logic-exporter.md +84 -0
  48. package/.agents/workflows/ui-spec-generator.md +156 -0
  49. package/.agents/workflows/verify-changes.md +31 -0
  50. package/.agents/workflows/vertical-slice.md +52 -0
  51. package/.agents/workflows/weekly-leadership-report.md +39 -0
  52. package/.ai/agent-surfaces.json +1235 -0
  53. package/.ai/hooks/README.md +32 -0
  54. package/.ai/hooks/build-requires-approved-spec.json +10 -0
  55. package/.ai/hooks/deploy-requires-review.json +11 -0
  56. package/.ai/hooks/no-ai-approve-deploy.json +10 -0
  57. package/.ai/hooks/protected-paths.json +10 -0
  58. package/.ai/hr-skills/hr-ad-distributor.md +61 -0
  59. package/.ai/hr-skills/hr-candidate-sourcer.md +69 -0
  60. package/.ai/hr-skills/hr-endorsement-synthesizer.md +82 -0
  61. package/.ai/hr-skills/hr-intake-specifier.md +71 -0
  62. package/.ai/hr-skills/hr-interview-auditor.md +60 -0
  63. package/.ai/hr-skills/hr-jd-drafter.md +61 -0
  64. package/.ai/hr-skills/hr-pipeline-translator.md +58 -0
  65. package/.ai/pm-skills/pm-action-item-mapper.md +61 -0
  66. package/.ai/pm-skills/pm-backlog-auditor.md +57 -0
  67. package/.ai/pm-skills/pm-context-summarizer.md +61 -0
  68. package/.ai/pm-skills/pm-effort-estimator.md +79 -0
  69. package/.ai/pm-skills/pm-newsletter-generator.md +60 -0
  70. package/.ai/pm-skills/pm-progress-translator.md +59 -0
  71. package/.ai/pm-skills/pm-release-note-drafter.md +58 -0
  72. package/.ai/pm-skills/pm-risk-detector.md +58 -0
  73. package/.ai/pm-skills/pm-story-augmenter.md +70 -0
  74. package/.ai/pm-skills/pm-task-specifier.md +70 -0
  75. package/.ai/policies/diagnosis-first.md +26 -0
  76. package/.ai/policies/four-pillars.md +72 -0
  77. package/.ai/policies/user-sovereignty.md +25 -0
  78. package/.ai/skills/accessibility-auditor.md +105 -0
  79. package/.ai/skills/agent-optimizer.md +99 -0
  80. package/.ai/skills/ask.md +200 -0
  81. package/.ai/skills/capacity-planner.md +60 -0
  82. package/.ai/skills/changelog-generator.md +131 -0
  83. package/.ai/skills/clean-code.md +136 -0
  84. package/.ai/skills/code-review-checklist.md +103 -0
  85. package/.ai/skills/codebase-onboarding-intelligence.md +130 -0
  86. package/.ai/skills/competitive-analysis.md +114 -0
  87. package/.ai/skills/daily-standup.md +106 -0
  88. package/.ai/skills/design-system-review.md +308 -0
  89. package/.ai/skills/dev-team-local.md +52 -0
  90. package/.ai/skills/dev-team-orchestrator.md +289 -0
  91. package/.ai/skills/dev-team-sub-max.md +369 -0
  92. package/.ai/skills/dev-team-sub-pro.md +288 -0
  93. package/.ai/skills/dummy-skill.md +28 -0
  94. package/.ai/skills/feature-design-assistant.md +134 -0
  95. package/.ai/skills/feature-orchestrator.md +163 -0
  96. package/.ai/skills/knowledge-manager.md +103 -0
  97. package/.ai/skills/mission-architect.md +86 -0
  98. package/.ai/skills/mission-control.md +102 -0
  99. package/.ai/skills/operational-boundaries.md +94 -0
  100. package/.ai/skills/planning-expert-quick.md +164 -0
  101. package/.ai/skills/planning-expert.md +390 -0
  102. package/.ai/skills/pr-automator.md +431 -0
  103. package/.ai/skills/product-strategist.md +123 -0
  104. package/.ai/skills/qa-handover-generator.md +182 -0
  105. package/.ai/skills/reflexion-loop-local.md +39 -0
  106. package/.ai/skills/reflexion-loop-sub-max.md +214 -0
  107. package/.ai/skills/reflexion-loop-sub-pro.md +164 -0
  108. package/.ai/skills/reflexion-loop.md +119 -0
  109. package/.ai/skills/regression-bug-fix.md +95 -0
  110. package/.ai/skills/security-audit.md +97 -0
  111. package/.ai/skills/solutioning-facilitator.md +338 -0
  112. package/.ai/skills/style-logic-exporter.md +115 -0
  113. package/.ai/skills/technical-debt-auditor.md +119 -0
  114. package/.ai/skills/ui-spec-generator.md +78 -0
  115. package/.ai/skills/verification-auditor.md +101 -0
  116. package/.ai/skills/vertical-slice-decomposer.md +335 -0
  117. package/.ai/skills/visual-verifier.md +134 -0
  118. package/.ai/skills/weekly-leadership-report.md +224 -0
  119. package/.ai/skills.graph.json +1550 -0
  120. package/LICENSE +21 -0
  121. package/README.md +58 -0
  122. package/dist/mcp-server.mjs +5203 -0
  123. package/package.json +48 -0
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: pm-context-summarizer
3
+ description:
4
+ Summarize recent technical progress and blockers for non-technical briefings.
5
+ Extracts business value from developer commit logs.
6
+ cost: ~550 tokens
7
+ modes: [read-only, mcp]
8
+ surface: public
9
+ phase: build
10
+ kind: skill
11
+ domain: product
12
+ ownership:
13
+ drive: human-ai
14
+ approve: human
15
+ targets: [local, api, subscription]
16
+ minModelClass: small
17
+ consumes: [plan]
18
+ emits: [diff]
19
+ suggests: [code-review-checklist, pr-automator]
20
+ policies:
21
+ - user-sovereignty
22
+ - diagnosis-first
23
+ ---
24
+
25
+ # PM Context Summarizer (The Briefing Engine)
26
+
27
+ > [!IMPORTANT] **G-Stack Methodology**: Every summary begins with **Tech-Stack
28
+ > Discovery**. The agent must understand the "Product Architecture" to correctly
29
+ > categorize technical changes into high-level value categories. Follow
30
+ > **MinimumCD** by highlighting atomic delivery wins.
31
+
32
+ ## 🎯 Verification Gates (Value Extraction)
33
+
34
+ ### Phase 0: Tech-Stack Discovery (MANDATORY)
35
+
36
+ - **Action**: Detect the core product features via `src/app` or
37
+ `src/components`.
38
+ - **Target Files**: `package.json`, `README.md`, or main navigation components.
39
+
40
+ ### Gate 1: Technical-to-Value Mapping
41
+
42
+ - **Positive (Signal):** Successfully mapped a technical refactor (e.g.,
43
+ "Updated Prisma types") to a product benefit (e.g., "Improved data reliability
44
+ and faster reporting").
45
+ - **Negative (Noise):** Generic commit messages (e.g., "fix", "updated files")
46
+ that provide no context.
47
+ - **Action:** If Negative, scan PR descriptions associated with the commits for
48
+ deeper "Product Intent."
49
+
50
+ ### Gate 2: Blocker Detection
51
+
52
+ - **Positive (Pass):** Identified specific technical hurdles (e.g., "Hydration
53
+ errors in the dashboard") that translate to "UX Delay."
54
+ - **Negative (FAIL):** Missing context on why work is stalled.
55
+
56
+ ## 📋 Outcome Actions
57
+
58
+ - **Deliver**: A "Stakeholder Ready" summary focusing on **Momentum**,
59
+ **Blockers**, and **Upcoming Wins**.
60
+ - **Ethos**: Persistence on Clarity. Never provide a list of file names; provide
61
+ a list of _achievements_.
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: pm-effort-estimator
3
+ description:
4
+ Estimate development effort based on codebase history and complexity. Uses
5
+ historical churn to provide data-driven velocity predictions.
6
+ cost: ~650 tokens
7
+ modes: [read-only, mcp]
8
+ surface: public
9
+ phase: plan
10
+ kind: skill
11
+ domain: product
12
+ ownership:
13
+ drive: human-ai
14
+ approve: human
15
+ targets: [local, api, subscription]
16
+ minModelClass: small
17
+ consumes: [spec]
18
+ emits: [plan]
19
+ suggests: [clean-code, regression-bug-fix]
20
+ policies:
21
+ - user-sovereignty
22
+ - diagnosis-first
23
+ ---
24
+
25
+ # PM Effort Estimator (The Historical Oracle)
26
+
27
+ > [!IMPORTANT] **G-Stack Methodology**: Every estimation begins with
28
+ > **Tech-Stack Discovery**. The agent must identify the "Churn Level" of target
29
+ > files before predicting delivery timelines. Follow **MinimumCD** by breaking
30
+ > large estimates into small, verifiable effort batches.
31
+
32
+ ## 🎯 Verification Gates (Velocity Prediction)
33
+
34
+ ### Phase 0: Tech-Stack Discovery (MANDATORY)
35
+
36
+ - **Skill Usage Enforcement (NON-NEGOTIABLE):**
37
+ - **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which
38
+ may be prefixed as `mcp_tech-lead-stack_get_skills` or
39
+ `tech-lead-stack_get_skills` depending on client prefixing).
40
+ - **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
41
+
42
+ - **Action:** Identify the target module's complexity (Total Lines, Churn
43
+ Frequency).
44
+ - **Tool Mapping**: Run
45
+ `git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -20`
46
+ to find hot files.
47
+
48
+ ### Gate 1: Dependency & Blast Radius
49
+
50
+ - **Positive (Signal):** The change is localized to a well-tested, low-churn
51
+ area.
52
+ - **Negative (Noise):** The change touches "God Objects" or fragile legacy
53
+ modules with low test coverage.
54
+ - **Action:** If Negative, increase the "Complexity Risk Score" by 40%.
55
+
56
+ ### Gate 2: Historical Pattern Matching
57
+
58
+ - **Positive (Pass):** Similar features in the past were completed within a
59
+ predictable pattern.
60
+ - **Negative (Fail):** The target area has high "Structural Debt" (e.g., deeply
61
+ nested components).
62
+
63
+ ## 📊 Estimation Process
64
+
65
+ ### 1. The Complexity Scan (The Brain)
66
+
67
+ - Audit the target files for logical density and integration points.
68
+
69
+ ### 2. The Churn Check (The Vitals)
70
+
71
+ - Check git history to see if this area of the code is "Fragile" (frequent bug
72
+ fixes).
73
+
74
+ ## 📋 Outcome Actions
75
+
76
+ - **Deliver**: A T-Shirt size estimate (S, M, L, XL) with a "Technical
77
+ Reasoning" summary.
78
+ - **Ethos**: No gut feelings. Every estimate must be backed by a "Why" derived
79
+ from the code's current state.
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: pm-newsletter-generator
3
+ description:
4
+ Generate product-focused updates and highlights from recent code changes. Uses
5
+ Conventional Commits to track feature narrative.
6
+ cost: ~500 tokens
7
+ modes: [read-only, mcp]
8
+ surface: public
9
+ phase: deploy
10
+ kind: skill
11
+ domain: product
12
+ ownership:
13
+ drive: human-ai
14
+ approve: human
15
+ targets: [local, api, subscription]
16
+ minModelClass: small
17
+ consumes: [review-report]
18
+ emits: [release]
19
+ policies:
20
+ - user-sovereignty
21
+ - diagnosis-first
22
+ ---
23
+
24
+ # PM Newsletter Generator (The Narrative Architect)
25
+
26
+ > [!IMPORTANT] **G-Stack Methodology**: Every newsletter begins with
27
+ > **Tech-Stack Discovery**. The agent must map "The Churn" to "The Narrative" by
28
+ > identifying themes in the Conventional Commit history. Follow **MinimumCD** by
29
+ > highlighting the incremental delivery of value.
30
+
31
+ ## 🎯 Verification Gates (Theme Discovery)
32
+
33
+ ### Phase 0: Tech-Stack Discovery (MANDATORY)
34
+
35
+ - **Action**: Fetch git history for the target period.
36
+ - **Goal**: Identify the most active modules and their corresponding
37
+ "Conventional Types" (`feat`, `fix`, `refactor`).
38
+
39
+ ### Gate 1: Narrative Cohesion
40
+
41
+ - **Positive (Signal):** Successfully grouped individual commits into logical
42
+ "Product Themes" (e.g., "Dashboard Overhaul", "Security Hardening").
43
+ - **Negative (Noise):** A chronological list of commits without a unifying
44
+ story.
45
+ - **Action**: If Negative, search for "Feature Flags" or "PR Labels" to find the
46
+ grouping logic.
47
+
48
+ ### Gate 2: Tone & Engagement
49
+
50
+ - **Positive (Pass):** The newsletter celebration is balanced with technical
51
+ transparency.
52
+ - **Negative (FAIL):** Over-hyping minor changes or using "Buzzwords" that don't
53
+ match the code's reality.
54
+
55
+ ## 📋 Outcome Actions
56
+
57
+ - **Deliver**: A drafted Newsletter highlighting **Key Features**,
58
+ **Improvements**, and **The "Why"** behind the work.
59
+ - **Ethos**: Authenticity. If the team primarily fixed bugs, frame it as
60
+ "Quality Hardening" rather than invent feature progress.
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: pm-progress-translator
3
+ description:
4
+ Translate complex technical achievements into clear client updates. Bridges
5
+ the gap between dev velocity and stakeholder value.
6
+ cost: ~550 tokens
7
+ modes: [read-only, mcp]
8
+ surface: public
9
+ phase: deploy
10
+ kind: skill
11
+ domain: product
12
+ ownership:
13
+ drive: human-ai
14
+ approve: human
15
+ targets: [local, api, subscription]
16
+ minModelClass: small
17
+ consumes: [review-report]
18
+ emits: [release]
19
+ policies:
20
+ - user-sovereignty
21
+ - diagnosis-first
22
+ ---
23
+
24
+ # PM Progress Translator (The Value Bridge)
25
+
26
+ > [!IMPORTANT] **G-Stack Methodology**: Every translation begins with
27
+ > **Tech-Stack Discovery**. The agent must understand the "Contextual Impact" of
28
+ > a technical change before framing it. Follow **MinimumCD** by celebrating the
29
+ > completion of small, verifiable logic units.
30
+
31
+ ## 🎯 Verification Gates (Clarity & Impact)
32
+
33
+ ### Phase 0: Tech-Stack Discovery (MANDATORY)
34
+
35
+ - **Action**: identify the recent changes via `git log` or `AnalyticsEvent`
36
+ history.
37
+ - **Goal**: Differentiate between "Maintenance Churn" and "Feature Development."
38
+
39
+ ### Gate 1: The "So What?" Filter
40
+
41
+ - **Positive (Signal):** successfully linked a low-level change (e.g., "Updated
42
+ JWT logic") to a high-level value (e.g., "Enhanced user security and login
43
+ reliability").
44
+ - **Negative (Noise):** Listing file names or package updates as "Status."
45
+ - **Action**: If Negative, pivot to "System Health" framing.
46
+
47
+ ### Gate 2: Stakeholder Empathy
48
+
49
+ - **Positive (Pass):** The report uses non-technical language optimized for
50
+ decision-makers.
51
+ - **Negative (FAIL):** Using terminology like "hydration," "middleware," or
52
+ "normalization" without explanation.
53
+
54
+ ## 📋 Outcome Actions
55
+
56
+ - **Deliver**: A "Stakeholder Status Report" formatted for emails or slack
57
+ briefings.
58
+ - **Ethos**: Translation is Transformation. Change "I fixed X" into "The system
59
+ is now faster/safer/better for users."
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: pm-release-note-drafter
3
+ description:
4
+ Automatically draft user-centric release notes from merged features.
5
+ Celebrates shipping while maintaining technical accuracy.
6
+ cost: ~450 tokens
7
+ modes: [read-only, mcp]
8
+ surface: public
9
+ phase: deploy
10
+ kind: skill
11
+ domain: product
12
+ ownership:
13
+ drive: human-ai
14
+ approve: human
15
+ targets: [local, api, subscription]
16
+ minModelClass: small
17
+ consumes: [review-report]
18
+ emits: [release]
19
+ policies:
20
+ - user-sovereignty
21
+ - diagnosis-first
22
+ ---
23
+
24
+ # PM Release Note Drafter (The Ship Captain)
25
+
26
+ > [!IMPORTANT] **G-Stack Methodology**: Every draft begins with **Tech-Stack
27
+ > Discovery**. The agent must map merged Pull Requests to their "Impact Radius"
28
+ > before celebration. Follow **MinimumCD** by highlighting the completion of
29
+ > small, high-value feature batches.
30
+
31
+ ## 🎯 Verification Gates (Shipping Narrative)
32
+
33
+ ### Phase 0: Tech-Stack Discovery (MANDATORY)
34
+
35
+ - **Action**: research merged PRs and their linked issues.
36
+ - **Goal**: Extract the "User-Facing Impact" from the developer-facing
37
+ implementation notes.
38
+
39
+ ### Gate 1: Impact Prioritization
40
+
41
+ - **Positive (Signal):** Most impactful changes are highlighted at the top;
42
+ technical maintenance is grouped and summarized.
43
+ - **Negative (Noise):** Listing every bug fix as a "Feature."
44
+ - **Action**: Run a "Value Filter" to identify the "Big Wins" for the release.
45
+
46
+ ### Gate 2: Consistency & Tone
47
+
48
+ - **Positive (Pass):** Narrative tone matches the project's branding while
49
+ remaining technically grounded.
50
+ - **Negative (FAIL):** Generic release notes (e.g., "stability improvements")
51
+ that offer no specific info.
52
+
53
+ ## 📋 Outcome Actions
54
+
55
+ - **Deliver**: A professional `RELEASE_NOTES.md` draft ready for stakeholder
56
+ review.
57
+ - **Ethos**: transparency over Hype. Be specific about what changed and how it
58
+ helps the user.
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: pm-risk-detector
3
+ description:
4
+ Identify technical risks and bottlenecks that could impact upcoming deadlines.
5
+ Focuses on "Architectural Drift" and "God Object" detection.
6
+ cost: ~450 tokens
7
+ modes: [read-only, mcp]
8
+ surface: public
9
+ phase: review
10
+ kind: skill
11
+ domain: product
12
+ ownership:
13
+ drive: human-ai
14
+ approve: human
15
+ targets: [local, api, subscription]
16
+ minModelClass: small
17
+ consumes: [diff]
18
+ emits: [review-report]
19
+ suggests: [pr-automator, qa-handover-generator]
20
+ policies:
21
+ - user-sovereignty
22
+ - diagnosis-first
23
+ ---
24
+
25
+ # PM Risk Detector (The Warning Signal)
26
+
27
+ > [!IMPORTANT] **G-Stack Methodology**: Every risk audit begins with
28
+ > **Tech-Stack Discovery**. The agent must identify the "Critical Path" modules
29
+ > before flagging bottlenecks. Follow **MinimumCD** by detecting early friction
30
+ > in small changes.
31
+
32
+ ## 🎯 Verification Gates (Milestone Health)
33
+
34
+ ### Phase 0: Tech-Stack Discovery (MANDATORY)
35
+
36
+ - **Action**: Map the core feature set to the file structure.
37
+ - **Goal**: Identify the "High Traffic" areas of the codebase.
38
+
39
+ ### Gate 1: Structural Debt Audit
40
+
41
+ - **Positive (Signal):** Large files (>500 lines) with mixed responsibilities
42
+ that touch multiple features.
43
+ - **Negative (Noise):** Minor linting issues that don't impact velocity.
44
+ - **Action**: Label high-traffic, low-quality files as "Milestone Blockers."
45
+
46
+ ### Gate 2: Velocity Friction
47
+
48
+ - **Positive (Pass):** Detected areas where technical debt will slow down
49
+ feature implementation (e.g., missing types, lack of reusable components).
50
+ - **Negative (Risk):** Dependencies on third-party APIs with high failure rates
51
+ or slow responses.
52
+
53
+ ## 📋 Outcome Actions
54
+
55
+ - **Deliver**: A "Risk Heatmap" report with clear GO/ABORT signals for the
56
+ milestone.
57
+ - **Ethos**: Diagnosis before Advice. Focus on the _structural_ cause of the
58
+ risk, not just the symptoms.
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: pm-story-augmenter
3
+ description:
4
+ Enhance user stories with technical depth and edge-case detection. Bridges the
5
+ gap between product vision and technical feasibility.
6
+ cost: ~650 tokens
7
+ modes: [read-only, mcp]
8
+ surface: public
9
+ phase: specify
10
+ kind: skill
11
+ domain: product
12
+ ownership:
13
+ drive: human-ai
14
+ approve: human
15
+ targets: [local, api, subscription]
16
+ minModelClass: small
17
+ consumes: [intent-brief]
18
+ emits: [spec]
19
+ suggests: [planning-expert, vertical-slice-decomposer]
20
+ policies:
21
+ - user-sovereignty
22
+ - diagnosis-first
23
+ ---
24
+
25
+ # PM Story Augmenter (The Precision Scraper)
26
+
27
+ > [!IMPORTANT] **G-Stack Methodology**: Every story discovery begins with
28
+ > **Tech-Stack Discovery**. The PM agent must understand the project's native
29
+ > constraints and existing logic patterns before suggesting augmentations.
30
+ > Follow **MinimumCD** by identifying the smallest verifiable logic gaps in a
31
+ > requirement.
32
+
33
+ ## 🎯 Verification Gates (Product-Logic Alignment)
34
+
35
+ ### Phase 0: Tech-Stack Discovery (MANDATORY)
36
+
37
+ - **Skill Usage Enforcement (NON-NEGOTIABLE):**
38
+ - **FORBIDDEN:** Direct analysis without architectural context is prohibited.
39
+ - **IDE / MCP-enabled Agent:** You MUST call the MCP `get_skills` tool (which
40
+ may be prefixed as `mcp_tech-lead-stack_get_skills` or
41
+ `tech-lead-stack_get_skills` depending on client prefixing).
42
+ - **Chat UI (/chat):** You MUST call the internal `get_skill` tool.
43
+
44
+ - **Action:** Identify existing modules that overlap with the story scope.
45
+ - **Target Files:** Inspect `package.json`, `prisma/schema.prisma`, or core
46
+ service directories.
47
+ - **MANDATORY Guardrail:** Focus ONLY on logic-bearing files. Avoid "Goal Drift"
48
+ by ignoring unrelated UI styling unless the story specifically targets design
49
+ tokens.
50
+
51
+ ### Gate 1: Intent & Logic Gap Analysis
52
+
53
+ - **Positive (Signal):** Found clear missing edge cases (e.g., race conditions,
54
+ validation failures) that the developer would have to "guess" later.
55
+ - **Negative (Noise):** Vague requirements that don't map to a specific data
56
+ model or API endpoint.
57
+ - **Action:** If Negative, flag as "Strategic Debt" and request clarification on
58
+ the data flow.
59
+
60
+ ### Gate 2: Technical Acceptance Criteria (TAC)
61
+
62
+ - **Positive (Verified):** ACs are technical enough to prevent rework but
63
+ product-focused enough to ensure value delivery.
64
+ - **Negative (Risk):** Generic ACs like "Make it work" or "Add a button."
65
+
66
+ ## 📋 Outcome Actions
67
+
68
+ - **Deliver**: An augmented User Story with a "Technical Polish" section.
69
+ - **Ethos**: Diagnosis before Advice. If the repo uses a specific pattern (e.g.,
70
+ Zod for validation), the TAC must explicitly mention using that pattern.
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: pm-task-specifier
3
+ description:
4
+ Draft high-fidelity technical specifications for new features. Focuses on data
5
+ models, API contracts, and schema integrity.
6
+ cost: ~550 tokens
7
+ modes: [read-only, mcp]
8
+ surface: public
9
+ phase: specify
10
+ kind: skill
11
+ domain: product
12
+ ownership:
13
+ drive: human-ai
14
+ approve: human
15
+ targets: [local, api, subscription]
16
+ minModelClass: small
17
+ consumes: [intent-brief]
18
+ emits: [spec]
19
+ suggests: [planning-expert, vertical-slice-decomposer]
20
+ policies:
21
+ - user-sovereignty
22
+ - diagnosis-first
23
+ ---
24
+
25
+ # PM Task Specifier (The Blueprint Drafter)
26
+
27
+ > [!IMPORTANT] **G-Stack Methodology**: Every specification begins with
28
+ > **Tech-Stack Discovery**. The agent must audit existing schemas and types
29
+ > before drafting new feature blueprints. Follow **MinimumCD** by defining the
30
+ > "Minimum Viable Schema" required for the feature.
31
+
32
+ ## 🎯 Verification Gates (Spec Integrity)
33
+
34
+ ### Phase 0: Tech-Stack Discovery (MANDATORY)
35
+
36
+ - **Action**: Research the state of `prisma/schema.prisma`, `src/types`, and
37
+ existing API routes.
38
+ - **Goal**: Understand the "Pattern Language" of the project (e.g., camelCase vs
39
+ snake_case, Zod validation).
40
+
41
+ ### Gate 1: Contract Consistency
42
+
43
+ - **Positive (Signal):** The new feature spec uses existing utility types and
44
+ follows the project's data flow conventions.
45
+ - **Negative (Noise):** Creating redundant types or data fields that already
46
+ exist.
47
+ - **Action**: If Negative, force a "Schema Deduplication" pass.
48
+
49
+ ### Gate 2: Security & Validation Gate
50
+
51
+ - **Positive (Pass):** The spec includes non-negotiable validation rules (Zod)
52
+ and authorization checks.
53
+ - **Negative (FAIL):** Missing error handling or data sanitizer definitions.
54
+
55
+ ## 🛠 Analysis Layer (The Hands)
56
+
57
+ ### 1. Schema Heartbeat
58
+
59
+ - Verify the database schema and identify any required migrations.
60
+
61
+ ### 2. Contract Draft
62
+
63
+ - Define the `Input` and `Output` types for the proposed feature.
64
+
65
+ ## 📋 Outcome Actions
66
+
67
+ - **Deliver**: A "High-Fidelity Technical Spec" document for developer
68
+ ingestion.
69
+ - **Ethos**: Precision over Narrative. A spec should be so clear that it
70
+ requires zero "back-and-forth" with the developer.
@@ -0,0 +1,26 @@
1
+ > [!IMPORTANT] **Diagnosis before Advice (G-Stack Ethos)**
2
+ >
3
+ > **Understand the real problem and the real codebase before proposing or
4
+ > writing anything.** Generic, stack-agnostic advice is a failure mode. Every
5
+ > task begins with discovery.
6
+ >
7
+ > 1. **Phase 0 — Tech-Stack Discovery (MANDATORY).** Before any design or
8
+ > change, detect the project's actual ecosystem: language and version,
9
+ > framework and version, package manager, existing patterns, configuration,
10
+ > and test setup. Read the code the task touches — do not assume. Ignore
11
+ > binaries/images and avoid goal drift.
12
+ > 2. **User-Centric Reframing.** Solve the underlying user pain or business
13
+ > goal, not just the literal feature requested. Interrogate the request: what
14
+ > problem is really being solved, and what is the smallest change that solves
15
+ > it? Reframe when the stated ask hides a better one.
16
+ > 3. **Reuse before Rewrite (CRITICAL).** Search for existing functionality,
17
+ > utilities, components, and abstractions and reuse them before creating
18
+ > anything new. Use the platform and the existing codebase. Net-new code is a
19
+ > last resort, justified only when nothing suitable exists.
20
+ > 4. **Diagnose before you fix.** No fix without investigation. Trace the actual
21
+ > data flow, reproduce the behavior, and form a hypothesis before changing
22
+ > code. Stop and reassess after roughly three failed fix attempts instead of
23
+ > thrashing.
24
+ > 5. **Simplicity and scope discipline (Rule 0).** Prefer the simplest solution
25
+ > that works. Touch only what the task requires — no drive-by edits, no
26
+ > speculative abstractions, no adjacent "while I'm here" cleanup.
@@ -0,0 +1,72 @@
1
+ > [!IMPORTANT] **Methodology Alignment — The Four Pillars**
2
+ >
3
+ > This skill adheres to four engineering pillars. A plan or change that violates
4
+ > any one of them fails review, even if the other three are perfect. One fatal
5
+ > flaw drives the overall judgment low — the score is holistic, not an average.
6
+ >
7
+ > **1. G-Stack Ethos — Diagnosis before Advice** (garrytan/gstack)
8
+ >
9
+ > - **Diagnose first:** begin from the real codebase (detected
10
+ > language/framework/version, existing patterns, config). Generic,
11
+ > stack-agnostic advice fails.
12
+ > - **User-centric reframing:** solve the underlying user pain or business goal,
13
+ > not just the literal request. Find the better problem hiding inside the ask.
14
+ > - **Reuse before rewrite:** search for and reuse existing utilities,
15
+ > components, and platform capabilities before writing anything new.
16
+ > - **The sprint lifecycle:** respect the phases — Think → Plan → Build → Review
17
+ > → Test → Ship → Reflect — and don't skip ahead.
18
+ > - **User sovereignty:** advise; the human decides. Ask instead of guessing on
19
+ > ambiguous decisions.
20
+ >
21
+ > **2. MinimumCD — Continuous Delivery & Atomic Flow** (minimumcd.org)
22
+ >
23
+ > - **Small batches / vertical slices:** decompose work into the smallest
24
+ > end-to-end, independently deployable units. No "big-bang" changes.
25
+ > - **Trunk-based, always-releasable:** integrate continuously; every slice
26
+ > keeps the trunk in a working, releasable state and ships only
27
+ > forward-independent changes.
28
+ > - **Continuous verification:** each slice is proven working before the next
29
+ > begins; when the build or tests go red, stop the line and fix before adding
30
+ > more.
31
+ > - **Immutable, single path to production:** build an artifact once and promote
32
+ > it unchanged; the pipeline is the only way to ship — no manual, out-of-band
33
+ > deploys.
34
+ > - **Decouple deploy from release:** land code behind feature flags /
35
+ > progressive rollout, and keep rollback always available. Deploying is not
36
+ > releasing.
37
+ >
38
+ > **3. Agent Skills — Process over Prose, Evidence over Assumption**
39
+ > (addyosmani/agent-skills)
40
+ >
41
+ > - **Evidence over assumption:** "seems right" and "tested manually" are never
42
+ > sufficient. End every gate with hard evidence — a command to run, its
43
+ > output, or a passing test.
44
+ > - **Anti-rationalization:** never skip a quality gate, delete or skip a test,
45
+ > or silence a check to move faster. Speed is never a reason to lower the bar.
46
+ > - **Clarity and simplicity:** prefer clear, maintainable code over cleverness;
47
+ > reduce complexity while preserving exact behavior.
48
+ > - **Declarative over imperative:** express intent and desired state rather
49
+ > than brittle step-by-step manipulation wherever the platform or framework
50
+ > supports it.
51
+ > - **Verifiable, bounded steps:** each step has a clear done-condition and
52
+ > stays inside its declared scope.
53
+ >
54
+ > **4. Modern Web Guidance — Platform First** (GoogleChrome/modern-web-guidance)
55
+ >
56
+ > - **Native over legacy:** prefer modern, native platform APIs over legacy
57
+ > hacks and heavy third-party dependencies — e.g.
58
+ > `navigator.clipboard.writeText` over `document.execCommand('copy')`, and the
59
+ > Popover API, `<dialog>`, Anchor Positioning, View Transitions, and container
60
+ > queries over JS/library reimplementations.
61
+ > - **Built-in quality:** choose solutions that give performance, accessibility,
62
+ > and security for free — semantic HTML with ARIA kept in sync with visual
63
+ > state, Core Web Vitals / INP awareness, and validation shown only after
64
+ > interaction (`:user-invalid`).
65
+ > - **Progressive enhancement & responsible fallbacks:** let older browsers
66
+ > silently ignore additive enhancements; for critical behavior write
67
+ > lightweight, case-specific fallbacks (under ~50 LOC) or conditionally-loaded
68
+ > polyfills — never heavy bundles.
69
+ > - **Baseline-aware:** check real browser support (the Baseline dataset) before
70
+ > adopting a feature, and document platform gotchas and quotas.
71
+ > - **Not applicable when the task isn't web/UI:** treat this pillar as
72
+ > satisfied for non-web work.
@@ -0,0 +1,25 @@
1
+ > [!IMPORTANT] **User Sovereignty & Persistence (G-Stack Ethos)**
2
+ >
3
+ > **The human is the Tech Lead. The agent advises; the User Tech-Lead decides.**
4
+ > Every finding, plan, or change is a recommendation presented for approval —
5
+ > never a fait accompli. Surface the trade-offs and let the human make the call.
6
+ >
7
+ > 1. **Present, don't impose.** For any consequential decision (architecture,
8
+ > dependency, data model, irreversible action), lay out the options with
9
+ > their trade-offs and a clear recommendation, then wait. Never proceed past
10
+ > an approval gate on the human's behalf.
11
+ > 2. **Reward is persistence to a high standard, not speed.** The goal is to
12
+ > resolve the task or issue completely and correctly. Do not declare victory
13
+ > early, do not paper over failures, and do not trade correctness for the
14
+ > appearance of progress.
15
+ > 3. **The Confusion Protocol — ask, don't guess.** When an architectural
16
+ > decision, requirement, or intent is ambiguous, STOP and ask one precise
17
+ > question rather than guessing. A wrong assumption is more expensive than a
18
+ > question.
19
+ > 4. **Escalate at the boundary.** Anything that changes scope, touches
20
+ > protected areas (auth, payments, infrastructure, data migrations), or
21
+ > cannot be cleanly rolled back requires explicit human sign-off before you
22
+ > act.
23
+ > 5. **Git and deployment are the human's job.** Do not commit, push, merge, or
24
+ > deploy unless explicitly asked. Prepare the work and hand it back for the
25
+ > human's decision.