@massa-ai/cursor-plugin 1.25.0 → 1.27.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.
- package/.cursor-plugin/plugin.json +1 -1
- package/agent-profiles/balanced/massa-ai-architecture-specialist.md +62 -0
- package/agent-profiles/balanced/massa-ai-audit-specialist.md +78 -0
- package/agent-profiles/balanced/massa-ai-builder.md +63 -0
- package/agent-profiles/balanced/massa-ai-context-curator.md +64 -0
- package/agent-profiles/balanced/massa-ai-documentation-agent.md +61 -0
- package/agent-profiles/balanced/massa-ai-furps-analyst.md +68 -0
- package/agent-profiles/balanced/massa-ai-investigator.md +65 -0
- package/agent-profiles/balanced/massa-ai-judge.md +96 -0
- package/agent-profiles/balanced/massa-ai-meta-judge.md +83 -0
- package/agent-profiles/balanced/massa-ai-mobile-specialist.md +79 -0
- package/agent-profiles/balanced/massa-ai-navigator.md +72 -0
- package/agent-profiles/balanced/massa-ai-plan-critic.md +87 -0
- package/agent-profiles/balanced/massa-ai-planner.md +62 -0
- package/agent-profiles/balanced/massa-ai-requirements-analyst.md +61 -0
- package/agent-profiles/balanced/massa-ai-reviewer.md +63 -0
- package/agent-profiles/balanced/massa-ai-test-engineer.md +62 -0
- package/agent-profiles/balanced/massa-ai-verification-agent.md +62 -0
- package/agent-profiles/cheap/massa-ai-architecture-specialist.md +62 -0
- package/agent-profiles/cheap/massa-ai-audit-specialist.md +78 -0
- package/agent-profiles/cheap/massa-ai-builder.md +63 -0
- package/agent-profiles/cheap/massa-ai-context-curator.md +64 -0
- package/agent-profiles/cheap/massa-ai-documentation-agent.md +61 -0
- package/agent-profiles/cheap/massa-ai-furps-analyst.md +68 -0
- package/agent-profiles/cheap/massa-ai-investigator.md +65 -0
- package/agent-profiles/cheap/massa-ai-judge.md +96 -0
- package/agent-profiles/cheap/massa-ai-meta-judge.md +83 -0
- package/agent-profiles/cheap/massa-ai-mobile-specialist.md +79 -0
- package/agent-profiles/cheap/massa-ai-navigator.md +72 -0
- package/agent-profiles/cheap/massa-ai-plan-critic.md +87 -0
- package/agent-profiles/cheap/massa-ai-planner.md +62 -0
- package/agent-profiles/cheap/massa-ai-requirements-analyst.md +61 -0
- package/agent-profiles/cheap/massa-ai-reviewer.md +63 -0
- package/agent-profiles/cheap/massa-ai-test-engineer.md +62 -0
- package/agent-profiles/cheap/massa-ai-verification-agent.md +62 -0
- package/agent-profiles/heavy/massa-ai-architecture-specialist.md +62 -0
- package/agent-profiles/heavy/massa-ai-audit-specialist.md +78 -0
- package/agent-profiles/heavy/massa-ai-builder.md +63 -0
- package/agent-profiles/heavy/massa-ai-context-curator.md +64 -0
- package/agent-profiles/heavy/massa-ai-documentation-agent.md +61 -0
- package/agent-profiles/heavy/massa-ai-furps-analyst.md +68 -0
- package/agent-profiles/heavy/massa-ai-investigator.md +65 -0
- package/agent-profiles/heavy/massa-ai-judge.md +96 -0
- package/agent-profiles/heavy/massa-ai-meta-judge.md +83 -0
- package/agent-profiles/heavy/massa-ai-mobile-specialist.md +79 -0
- package/agent-profiles/heavy/massa-ai-navigator.md +72 -0
- package/agent-profiles/heavy/massa-ai-plan-critic.md +87 -0
- package/agent-profiles/heavy/massa-ai-planner.md +62 -0
- package/agent-profiles/heavy/massa-ai-requirements-analyst.md +61 -0
- package/agent-profiles/heavy/massa-ai-reviewer.md +63 -0
- package/agent-profiles/heavy/massa-ai-test-engineer.md +62 -0
- package/agent-profiles/heavy/massa-ai-verification-agent.md +62 -0
- package/agent-profiles/home/massa-ai-architecture-specialist.md +62 -0
- package/agent-profiles/home/massa-ai-audit-specialist.md +78 -0
- package/agent-profiles/home/massa-ai-builder.md +63 -0
- package/agent-profiles/home/massa-ai-context-curator.md +64 -0
- package/agent-profiles/home/massa-ai-documentation-agent.md +61 -0
- package/agent-profiles/home/massa-ai-furps-analyst.md +68 -0
- package/agent-profiles/home/massa-ai-investigator.md +65 -0
- package/agent-profiles/home/massa-ai-judge.md +96 -0
- package/agent-profiles/home/massa-ai-meta-judge.md +83 -0
- package/agent-profiles/home/massa-ai-mobile-specialist.md +79 -0
- package/agent-profiles/home/massa-ai-navigator.md +72 -0
- package/agent-profiles/home/massa-ai-plan-critic.md +87 -0
- package/agent-profiles/home/massa-ai-planner.md +62 -0
- package/agent-profiles/home/massa-ai-requirements-analyst.md +61 -0
- package/agent-profiles/home/massa-ai-reviewer.md +63 -0
- package/agent-profiles/home/massa-ai-test-engineer.md +62 -0
- package/agent-profiles/home/massa-ai-verification-agent.md +62 -0
- package/agent-profiles/work/massa-ai-architecture-specialist.md +62 -0
- package/agent-profiles/work/massa-ai-audit-specialist.md +78 -0
- package/agent-profiles/work/massa-ai-builder.md +63 -0
- package/agent-profiles/work/massa-ai-context-curator.md +64 -0
- package/agent-profiles/work/massa-ai-documentation-agent.md +61 -0
- package/agent-profiles/work/massa-ai-furps-analyst.md +68 -0
- package/agent-profiles/work/massa-ai-investigator.md +65 -0
- package/agent-profiles/work/massa-ai-judge.md +96 -0
- package/agent-profiles/work/massa-ai-meta-judge.md +83 -0
- package/agent-profiles/work/massa-ai-mobile-specialist.md +79 -0
- package/agent-profiles/work/massa-ai-navigator.md +72 -0
- package/agent-profiles/work/massa-ai-plan-critic.md +87 -0
- package/agent-profiles/work/massa-ai-planner.md +62 -0
- package/agent-profiles/work/massa-ai-requirements-analyst.md +61 -0
- package/agent-profiles/work/massa-ai-reviewer.md +63 -0
- package/agent-profiles/work/massa-ai-test-engineer.md +62 -0
- package/agent-profiles/work/massa-ai-verification-agent.md +62 -0
- package/agents/massa-ai-judge.md +3 -6
- package/agents/massa-ai-meta-judge.md +2 -5
- package/agents/massa-ai-navigator.md +1 -1
- package/install.sh +32 -7
- package/package.json +2 -1
- package/skills/agents/judge/SKILL.md +4 -7
- package/skills/agents/meta-judge/SKILL.md +3 -6
- package/skills/agents/navigator/SKILL.md +2 -2
- package/skills/massa-ai/SKILL.md +1 -16
- package/skills/massa-ai/references/adr-authoring.md +3 -3
- package/skills/massa-ai/references/agent-orchestration.md +17 -2
- package/skills/massa-ai/references/architecture-coupling-lens.md +1 -1
- package/skills/massa-ai/references/architecture-deepening-lens.md +1 -1
- package/skills/massa-ai/references/architecture-domain-lens.md +1 -1
- package/skills/massa-ai/references/architecture-lenses.md +1 -1
- package/skills/massa-ai/references/audit-report-io.md +32 -2
- package/skills/massa-ai/references/audit-scope.md +22 -1
- package/skills/massa-ai/references/code-annotation.md +5 -5
- package/skills/massa-ai/references/codebase-investigation.md +1 -1
- package/skills/massa-ai/references/context-firewall.md +2 -1
- package/skills/massa-ai/references/conversation-feedback.md +1 -1
- package/skills/massa-ai/references/debug-diagnosis-loop.md +1 -1
- package/skills/massa-ai/references/decision-engine.md +1 -1
- package/skills/massa-ai/references/evidence-gate.md +1 -1
- package/skills/massa-ai/references/figma-pre-analysis.md +3 -3
- package/skills/massa-ai/references/furps/analyst-role.md +1 -1
- package/skills/massa-ai/references/furps/checklist.md +1 -1
- package/skills/massa-ai/references/furps/intake.md +1 -1
- package/skills/massa-ai/references/furps/report-contract.md +1 -1
- package/skills/massa-ai/references/graceful-degradation.md +22 -0
- package/skills/massa-ai/references/hook-enforcement.md +3 -3
- package/skills/massa-ai/references/implementation-delivery.md +4 -4
- package/skills/massa-ai/references/installation.md +1 -1
- package/skills/massa-ai/references/lessons.md +2 -2
- package/skills/massa-ai/references/maestro/artifacts-reports.md +1 -1
- package/skills/massa-ai/references/maestro/cli-device.md +1 -1
- package/skills/massa-ai/references/maestro/cloud.md +1 -1
- package/skills/massa-ai/references/maestro/config-env-output.md +1 -1
- package/skills/massa-ai/references/maestro/fact-ledger.md +1 -1
- package/skills/massa-ai/references/maestro/js-scripting.md +1 -1
- package/skills/massa-ai/references/maestro/mcp.md +1 -1
- package/skills/massa-ai/references/maestro/patterns.md +1 -1
- package/skills/massa-ai/references/maestro/selectors.md +1 -1
- package/skills/massa-ai/references/maestro/workspace-execution.md +1 -1
- package/skills/massa-ai/references/maestro/yaml-commands.md +1 -1
- package/skills/massa-ai/references/maestro.md +1 -1
- package/skills/massa-ai/references/mcp-tools.md +2 -2
- package/skills/massa-ai/references/memory-policy.md +2 -2
- package/skills/massa-ai/references/mobile-context.md +9 -5
- package/skills/massa-ai/references/mobile-diagnosis.md +2 -2
- package/skills/massa-ai/references/mobile-figma-matcher/android-compose.md +1 -1
- package/skills/massa-ai/references/mobile-figma-matcher/android-views.md +1 -1
- package/skills/massa-ai/references/mobile-figma-matcher/core.md +1 -1
- package/skills/massa-ai/references/mobile-figma-matcher/ios-swiftui.md +1 -1
- package/skills/massa-ai/references/mobile-figma-matcher/ios-uikit.md +1 -1
- package/skills/massa-ai/references/mobile-figma-matcher/kmp-compose-multiplatform.md +1 -1
- package/skills/massa-ai/references/mobile-figma-matcher/repository-detection.md +1 -1
- package/skills/massa-ai/references/naming-standards.md +1 -1
- package/skills/massa-ai/references/pr-task-fix.md +2 -2
- package/skills/massa-ai/references/project-context.md +2 -2
- package/skills/massa-ai/references/repo-rules-discovery.md +4 -4
- package/skills/massa-ai/references/rfc/discovery-and-sizing.md +1 -1
- package/skills/massa-ai/references/rfc/document-contract.md +1 -1
- package/skills/massa-ai/references/rfc/quality-and-lifecycle.md +1 -1
- package/skills/massa-ai/references/root-cause-scripts.md +2 -2
- package/skills/massa-ai/references/sonarqube-mcp.md +73 -0
- package/skills/massa-ai/references/spec-driven/artifact-store.md +1 -1
- package/skills/massa-ai/references/spec-driven/brownfield-mapping.md +16 -0
- package/skills/massa-ai/references/spec-driven/code-analysis.md +1 -1
- package/skills/massa-ai/references/spec-driven/coding-principles.md +1 -1
- package/skills/massa-ai/references/spec-driven/context-limits.md +1 -1
- package/skills/massa-ai/references/spec-driven/design.md +22 -1
- package/skills/massa-ai/references/spec-driven/discuss.md +1 -1
- package/skills/massa-ai/references/spec-driven/execute.md +3 -1
- package/skills/massa-ai/references/spec-driven/memory.md +1 -1
- package/skills/massa-ai/references/spec-driven/specify.md +3 -3
- package/skills/massa-ai/references/spec-driven/sub-agents.md +1 -1
- package/skills/massa-ai/references/spec-driven/tasks.md +1 -1
- package/skills/massa-ai/references/spec-driven/validate.md +1 -1
- package/skills/massa-ai/references/subagent-design.md +4 -4
- package/skills/massa-ai/references/synapse-policy.md +1 -1
- package/skills/massa-ai/references/tdd/calibrated-examples.md +1 -1
- package/skills/massa-ai/references/tdd/discovery-and-sizing.md +1 -1
- package/skills/massa-ai/references/tdd/document-contract.md +1 -1
- package/skills/massa-ai/references/tdd/quality-and-lifecycle.md +1 -1
- package/skills/massa-ai/references/the-fool/cognitive-bias-inventory.md +1 -1
- package/skills/massa-ai/references/the-fool/dialectic-synthesis.md +1 -1
- package/skills/massa-ai/references/the-fool/evidence-audit.md +1 -1
- package/skills/massa-ai/references/the-fool/pre-mortem-analysis.md +1 -1
- package/skills/massa-ai/references/the-fool/red-team-adversarial.md +1 -1
- package/skills/massa-ai/references/the-fool/socratic-questioning.md +1 -1
- package/skills/massa-ai/references/ticket/atlassian-fix.md +1 -1
- package/skills/massa-ai/references/ticket/intake-and-sources.md +1 -1
- package/skills/massa-ai/references/ticket/templates-and-quality.md +1 -1
- package/skills/massa-ai/references/verification-ladder.md +1 -1
- package/skills/massa-ai/scripts/validate_audit_report.ts +382 -0
- package/skills/massa-ai/scripts/validate_design.ts +264 -0
- package/skills/massa-ai/workflows/adr.md +16 -8
- package/skills/massa-ai/workflows/architecture/architecture-audit.md +23 -40
- package/skills/massa-ai/workflows/architecture/architecture-fix.md +14 -6
- package/skills/massa-ai/workflows/bugs/bugs-audit.md +19 -35
- package/skills/massa-ai/workflows/bugs/bugs-fix.md +13 -5
- package/skills/massa-ai/workflows/code-quality/code-quality-audit.md +25 -41
- package/skills/massa-ai/workflows/code-quality/code-quality-fix.md +13 -5
- package/skills/massa-ai/workflows/commit.md +13 -5
- package/skills/massa-ai/workflows/debug.md +11 -3
- package/skills/massa-ai/workflows/design.md +15 -7
- package/skills/massa-ai/workflows/exploration.md +12 -4
- package/skills/massa-ai/workflows/feature.md +14 -13
- package/skills/massa-ai/workflows/general.md +13 -8
- package/skills/massa-ai/workflows/implementation/implementation-audit.md +15 -15
- package/skills/massa-ai/workflows/implementation/implementation-fix.md +13 -5
- package/skills/massa-ai/workflows/judge-with-debate.md +12 -4
- package/skills/massa-ai/workflows/long-session.md +10 -2
- package/skills/massa-ai/workflows/maestro/maestro-audit.md +11 -3
- package/skills/massa-ai/workflows/maestro/maestro-fix.md +12 -4
- package/skills/massa-ai/workflows/maestro/maestro.md +12 -4
- package/skills/massa-ai/workflows/mobile-figma/mobile-figma-audit.md +11 -3
- package/skills/massa-ai/workflows/mobile-figma/mobile-figma-fix.md +12 -4
- package/skills/massa-ai/workflows/onboarding.md +10 -2
- package/skills/massa-ai/workflows/refactor.md +12 -4
- package/skills/massa-ai/workflows/refinement/furps-refinement.md +12 -4
- package/skills/massa-ai/workflows/requirements/requirements-audit.md +19 -36
- package/skills/massa-ai/workflows/requirements/requirements-fix.md +13 -5
- package/skills/massa-ai/workflows/rfc.md +10 -2
- package/skills/massa-ai/workflows/security/security-audit.md +19 -35
- package/skills/massa-ai/workflows/security/security-fix.md +13 -5
- package/skills/massa-ai/workflows/spec-driven.md +20 -23
- package/skills/massa-ai/workflows/tdd.md +10 -2
- package/skills/massa-ai/workflows/tests/tests-audit.md +19 -35
- package/skills/massa-ai/workflows/tests/tests-fix.md +13 -5
- package/skills/massa-ai/workflows/the-fool.md +11 -3
- package/skills/massa-ai/workflows/ticket.md +10 -2
- package/skills/profile/SKILL.md +39 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Repo Rules Discovery
|
|
2
2
|
|
|
3
|
-
Use
|
|
4
|
-
mutation.
|
|
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
|
|
16
|
-
|
|
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
|
|
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
|
|
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
|
# Root-Cause Proof Scripts
|
|
2
2
|
|
|
3
|
-
Use
|
|
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
|
|
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,73 @@
|
|
|
1
|
+
# SonarQube MCP Protocol
|
|
2
|
+
|
|
3
|
+
Use from `workflows/implementation/implementation-audit.md` and
|
|
4
|
+
`workflows/implementation/implementation-fix.md` when SonarQube MCP tools may
|
|
5
|
+
be available for the current implementation scope.
|
|
6
|
+
|
|
7
|
+
## Detection And Availability
|
|
8
|
+
|
|
9
|
+
Check whether SonarQube MCP is available and useful for the implementation
|
|
10
|
+
scope:
|
|
11
|
+
|
|
12
|
+
- Detect callable SonarQube MCP tools at runtime, such as project discovery,
|
|
13
|
+
issue search, file/snippet analysis, advanced code analysis, duplicated-file
|
|
14
|
+
search, component measures, security hotspots, guidelines, or quality gate
|
|
15
|
+
status.
|
|
16
|
+
- If SonarQube MCP is unavailable, no project key can be resolved, required
|
|
17
|
+
credentials/configuration are missing, or the target files are outside the
|
|
18
|
+
configured SonarQube project, record `SonarQube MCP: not evaluated` with the
|
|
19
|
+
skipped-check reason and continue normal lens synthesis.
|
|
20
|
+
|
|
21
|
+
## Firewall And Invocation
|
|
22
|
+
|
|
23
|
+
If available, use `references/context-firewall.md` and pass only the
|
|
24
|
+
immutable implementation scope packet, resolved files, branch/PR identifiers,
|
|
25
|
+
project key, and minimal file contents or paths the selected SonarQube tools
|
|
26
|
+
require.
|
|
27
|
+
|
|
28
|
+
Wait for SonarQube MCP execution to finish when a tool starts analysis,
|
|
29
|
+
capture quality gate status when available, and summarize raw
|
|
30
|
+
issues/measures/hotspots instead of copying raw tool output into the report.
|
|
31
|
+
|
|
32
|
+
## Normalization Areas
|
|
33
|
+
|
|
34
|
+
Normalize actionable SonarQube results into only these implementation audit
|
|
35
|
+
areas: Architecture, Correctness/Bugs, Code Quality, Security, and Tests. Do
|
|
36
|
+
not create a Requirements finding from SonarQube output.
|
|
37
|
+
|
|
38
|
+
## Preserved Fields
|
|
39
|
+
|
|
40
|
+
Preserve Sonar issue key, rule key, tool name, severity/impact, file/line,
|
|
41
|
+
quality gate condition, and evidence summary inside the normalized finding.
|
|
42
|
+
|
|
43
|
+
## ID Mapping
|
|
44
|
+
|
|
45
|
+
Use normal source-qualified implementation IDs after normalization, such as
|
|
46
|
+
`Architecture/ARCH-1`, `Correctness/BUG-1`, `Code Quality/CQ-1`,
|
|
47
|
+
`Security/SEC-1`, or `Tests/TST-1`; do not invent `SONAR-*` executable finding
|
|
48
|
+
IDs. The canonical area/prefix table and discipline live in
|
|
49
|
+
`references/audit-report-io.md` (Source-Qualified Finding IDs).
|
|
50
|
+
|
|
51
|
+
## Exclusion Rules
|
|
52
|
+
|
|
53
|
+
Keep unmapped, duplicate, low-context, or out-of-scope SonarQube results in
|
|
54
|
+
Scope And Evidence or skipped checks, not in Findings or Execution Handoff.
|
|
55
|
+
|
|
56
|
+
## Reporting Integration
|
|
57
|
+
|
|
58
|
+
- Include SonarQube MCP as evidence in the coverage matrix or Scope And
|
|
59
|
+
Evidence, with quality gate status when available.
|
|
60
|
+
- Sonar-derived findings enter the execution handoff only after normalization
|
|
61
|
+
to one supported source lens ID, with enough evidence for
|
|
62
|
+
`implementation-fix` to revalidate from the saved markdown report.
|
|
63
|
+
- Do not persist raw SonarQube output; persist only normalized, durable
|
|
64
|
+
patterns after Importance Calibration.
|
|
65
|
+
|
|
66
|
+
## Fix-Time Consumption
|
|
67
|
+
|
|
68
|
+
Treat SonarQube-derived items as actionable only when the saved
|
|
69
|
+
implementation report already normalized them to a supported source-qualified
|
|
70
|
+
ID with source lens, original ID, Sonar issue/rule evidence, location,
|
|
71
|
+
impact, and verification suggestion. Never execute directly from raw
|
|
72
|
+
SonarQube MCP output, quality gate summaries, chat summaries, or remembered
|
|
73
|
+
Sonar findings.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Spec-Driven Artifact Store
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use before any spec-driven workflow reads or writes feature registry, progress, handoff, phase artifacts, validation reports, or lessons. `.specs/` files are the canonical state layer for spec-driven logical artifacts.
|
|
4
4
|
|
|
5
5
|
## Source Of Truth
|
|
6
6
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Brownfield Onboarding — 7-Doc Codebase Mapping
|
|
2
|
+
|
|
3
|
+
Use from `workflows/spec-driven.md` when the target codebase
|
|
4
|
+
has not yet been mapped (brownfield, new repo, or cold project). The map is
|
|
5
|
+
the shared factual ground for requirements, design, and task derivation;
|
|
6
|
+
each doc feeds a downstream phase.
|
|
7
|
+
|
|
8
|
+
| Doc | Derives | Feeds |
|
|
9
|
+
| --- | --- | --- |
|
|
10
|
+
| `STACK.md` | languages, runtimes, frameworks, key libraries | Design constraints, verification commands |
|
|
11
|
+
| `ARCHITECTURE.md` | layers, modules, boundaries, data flow | Design, risk surface |
|
|
12
|
+
| `CONVENTIONS.md` | naming, file layout, commit/test conventions | Tasks, Execute |
|
|
13
|
+
| `STRUCTURE.md` | directory map, where new code goes | Tasks, file placement |
|
|
14
|
+
| `TESTING.md` | test runner, how to run gates, coverage tooling | Gate Check Commands, verification recipe |
|
|
15
|
+
| `INTEGRATIONS.md` | external services, APIs, contracts, auth | Discuss, risk escalation |
|
|
16
|
+
| `CONCERNS.md` | known risks, tech debt, migration landmines, security/privacy hotspots | Risk-domain escalation, validation focus |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Spec-Driven Code Analysis
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use when Specify, Design, Tasks, Execute, or Validate needs source inspection or structural code search.
|
|
4
4
|
|
|
5
5
|
<!-- validator anchors: current repository source and approved .specs/ artifacts override stale memory -->
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Spec-Driven Coding Principles
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use before writing or changing implementation, tests, fixtures, validation assets, scripts, or docs during Execute.
|
|
4
4
|
|
|
5
5
|
Behavioral bias, not checklist. Read before every implementation.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Spec-Driven Context Limits
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use when planning context loading for a spec-driven feature or when `.specs/features/<slug>/` artifacts grow large enough to reduce implementation quality.
|
|
4
4
|
|
|
5
5
|
## Targets
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Design
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use when the spec-driven flow includes a Design phase. The output is `.specs/features/<slug>/design.md`. **Goal**: define HOW to build it — architecture, components, what to reuse.
|
|
4
4
|
|
|
5
5
|
**Skip this phase when:** The change is straightforward — no architectural decisions, no new patterns, no component interactions to plan. For simple features, design happens inline during Execute.
|
|
6
6
|
|
|
@@ -85,6 +85,22 @@ If the feature involves data, define models before implementation.
|
|
|
85
85
|
|
|
86
86
|
---
|
|
87
87
|
|
|
88
|
+
## Deterministic Validation
|
|
89
|
+
|
|
90
|
+
Before presenting `design.md` for confirmation, run:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
bun skills/massa-ai/scripts/validate_design.ts <path-or-feature-or-root> [--root .]
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
It checks the three structurally-required sections (`## Design Summary`,
|
|
97
|
+
`## Risks & Concerns`, `## Tech Decisions`, heading-prefix match) and that
|
|
98
|
+
every `Risks & Concerns` table row has a non-empty, non-placeholder
|
|
99
|
+
Mitigation cell — a `> None found` marker with zero rows is a valid empty
|
|
100
|
+
risk register, not an unfilled one. A non-zero exit blocks confirmation. If
|
|
101
|
+
no code-execution tool is available, run the same checks by reading the
|
|
102
|
+
artifact (graceful degradation preserved).
|
|
103
|
+
|
|
88
104
|
## Required Sections
|
|
89
105
|
|
|
90
106
|
`design.md` must include:
|
|
@@ -100,6 +116,11 @@ If the feature involves data, define models before implementation.
|
|
|
100
116
|
- Large/Complex approach tradeoffs: 2-3 viable approaches, same scope, recommendation first, user-confirmed chosen approach.
|
|
101
117
|
- Verification design, including how tests or checks prove each high-risk requirement.
|
|
102
118
|
- Risks, concerns, and mitigations.
|
|
119
|
+
- Tech decisions (non-obvious ones only), with rationale.
|
|
120
|
+
|
|
121
|
+
`## Design Summary`, `## Risks & Concerns`, and `## Tech Decisions` are the
|
|
122
|
+
three headings the deterministic validator above requires structurally;
|
|
123
|
+
the rest of this list is enforced by review, not by the script.
|
|
103
124
|
|
|
104
125
|
## Decision Supersession
|
|
105
126
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Spec-Driven Discuss Gray Areas
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use inside Specify when gray areas or implicit requirements affect behavior, scope, data, security/privacy, compatibility, or acceptance criteria. It captures HOW the user envisions the feature when the spec has ambiguous areas — it is NOT a separate phase; it triggers within Specify when the agent detects gray areas that need user input.
|
|
4
4
|
|
|
5
5
|
**Goal:** Capture HOW the user envisions the feature when the spec has ambiguous areas. Specifications capture WHAT to build. Design captures the architecture. But neither captures the user's vision for ambiguous areas — layout preferences, interaction patterns, error handling style, content tone. Without this, the agent guesses. With this, the agent builds what the user actually imagined.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Spec-Driven Execute
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use for the required Execute phase. Implement ONE task at a time: surgical changes, verify, commit, repeat. Validation is the mandatory final Execute gate, not a separate phase.
|
|
4
4
|
|
|
5
5
|
<!-- validator anchors: evidence-or-zero mapping -->
|
|
6
6
|
|
|
@@ -474,6 +474,8 @@ Then run `references/spec-driven/validate.md` as the final Execute gate. The ver
|
|
|
474
474
|
|
|
475
475
|
## Pause / End of Session
|
|
476
476
|
|
|
477
|
+
**Checkpoints (long-running task sequences):** create a checkpoint via `create_checkpoint` at task boundaries with `taskId`, `description`, `progressPercent`, `currentStep`, `nextAction`, `fileChanges`, and `checkpointType: "manual"` so progress is resumable after interruption. If resuming after interruption, call `list_checkpoints` with the `taskId` and `restore_checkpoint` to recover task state before continuing. If `create_checkpoint` is unavailable (e.g. `task_checkpoints` table missing), continue with `.specs/` artifact state as the fallback.
|
|
478
|
+
|
|
477
479
|
When work is interrupted, paused, or a session ends before the feature is complete:
|
|
478
480
|
|
|
479
481
|
1. Update `.specs/project/STATE.md` — append any new decisions to the `## Decisions` section (append-only; decisions are normally written during Design, but runtime decisions discovered during Execute may be appended).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Spec-Driven Memory And State
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use when recording decisions, progress, blockers, handoff, or completion evidence for a spec-driven feature.
|
|
4
4
|
|
|
5
5
|
This memory layer is split across two artifacts with distinct lifecycles. Each has its own write triggers; writes are always section-scoped — never whole-file overwrites.
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Spec-Driven Specify
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use for the required Specify phase. **Goal**: Capture WHAT to build with testable, traceable requirements. The output is `.specs/features/<slug>/spec.md`.
|
|
4
4
|
|
|
5
|
-
If the feature has ambiguous gray areas (multiple valid approaches for user-facing behavior), the agent
|
|
5
|
+
If the feature has ambiguous gray areas (multiple valid approaches for user-facing behavior), the agent automatically triggers the [discuss gray areas](discuss.md) process within this phase. Clear, well-defined features go straight to the next phase.
|
|
6
6
|
|
|
7
7
|
## Inputs
|
|
8
8
|
|
|
@@ -67,7 +67,7 @@ The table is canonical; the prose is the applied sweep. **Large/Complex** work m
|
|
|
67
67
|
|
|
68
68
|
**Load confirmed lessons first:** Before clarifying, load the project's confirmed lessons so past verification failures shape this spec instead of repeating. Run `bun skills/massa-ai/scripts/lessons.ts --root . list --status confirmed` (optionally `--scope [area]` or `--query [term]` for the area this feature touches) and apply what comes back as guidance. Load only `confirmed` — never `candidate` or `quarantined`. If no store exists yet or no code tool is available, skip silently. See [lessons.md](../lessons.md).
|
|
69
69
|
|
|
70
|
-
**Lightweight context scan first (Knowledge Verification Chain Step 1):** Before asking questions, briefly scan existing code, patterns, and neighboring features relevant to this feature. Prefer massa-ai tooling first (`list_projects`, `search`, `project_map`, `optimized_context`) before `ast-grep`/`rg`/`grep`, honoring freshness and source-precedence (current source overrides stale index/memory). Use what you find to ground
|
|
70
|
+
**Lightweight context scan first (Knowledge Verification Chain Step 1):** Before asking questions, briefly scan existing code, patterns, and neighboring features relevant to this feature. Prefer massa-ai tooling first (`list_projects`, `search`, `project_map`, `optimized_context`) before `ast-grep`/`rg`/`grep`, honoring freshness and source-precedence (current source overrides stale index/memory). Use what you find to ground clarifying questions in reality — not to constrain the spec to current implementation. Keep it lightweight (stay within the <40k token budget; reuse the chain, no new machinery). The spec captures WHAT is needed, not only what exists.
|
|
71
71
|
|
|
72
72
|
You are a thinking partner, not an interviewer. Start open — let the user dump their mental model. Follow the energy: whatever they emphasize, dig into that.
|
|
73
73
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Sub-Agent Delegation
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use during Execute when formal task planning has more than 3 tasks, when the user explicitly asks for delegation, or when final validation needs an independent verifier. Full mechanics for phase-batch workers and the Verifier sub-agent used during Execute.
|
|
4
4
|
|
|
5
5
|
## Phase-Batch Workers
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Tasks
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use only when the TLC v3 flow includes Tasks. The output is the `.specs/features/<slug>/tasks.md`.
|
|
4
4
|
|
|
5
5
|
**Goal**: Break into GRANULAR, ATOMIC tasks. Clear dependencies. Right tools. Sequential phase execution plan.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Spec-Driven Validate
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use for the mandatory final Execute validation gate. This is not a separate phase — verification is part of every task's completion within Execute and runs automatically after the final task or inline step is complete.
|
|
4
4
|
|
|
5
5
|
<!-- validator anchors: reject shallow assertions | payload/conjunction rule | per-task test adequacy review summary | fix-loop iteration count | 3 verification iterations -->
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Subagent Design
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use only when designing or revising a reusable subagent role, adding a new role to `references/agent-orchestration.md`, or turning repeated delegated work into a stable role charter.
|
|
4
4
|
|
|
5
|
-
Do not load
|
|
5
|
+
Do not load for ordinary one-off delegation. For runtime delegation, use `references/agent-orchestration.md`.
|
|
6
6
|
|
|
7
7
|
## Principle
|
|
8
8
|
|
|
@@ -30,7 +30,7 @@ Is the work recurring, specialized, context-heavy, independently verifiable, and
|
|
|
30
30
|
-> Design a reusable subagent role with this reference.
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Prefer a skill/reference
|
|
33
|
+
Prefer a skill/reference for procedure or domain knowledge. Prefer a subagent for isolated context, parallel work, or independent verification.
|
|
34
34
|
|
|
35
35
|
Reusable role threshold:
|
|
36
36
|
|
|
@@ -94,7 +94,7 @@ Memory boundary:
|
|
|
94
94
|
**The packet field list lives in one place: `references/agent-orchestration.md`,
|
|
95
95
|
§Capability Packet.** Do not restate it here — a second copy is what let the field
|
|
96
96
|
sets drift into three diverging shapes before the canonical section existed. When a
|
|
97
|
-
workflow dispatches a reusable role, send that canonical packet
|
|
97
|
+
workflow dispatches a reusable role, send that canonical packet, not a loose
|
|
98
98
|
instruction.
|
|
99
99
|
|
|
100
100
|
The one field this reference still names on its own is `persona`, because a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Synapse Policy
|
|
2
2
|
|
|
3
|
-
Load
|
|
3
|
+
Load when a task is expected to issue more than one
|
|
4
4
|
`search`, when parallel agents need isolated retrieval context, or when
|
|
5
5
|
Synapse compatibility/fallback behavior matters.
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The values below are starting reference values, not requirements. They are calibration anchors, not mandates. Treat every number as a starting-point reference to be confirmed against the project's own SLOs, load profile, and regulatory scope; override per project and record the override in the TDD. None of these tables restore a prescriptive count schema or a fixed section-count mandate.
|
|
4
4
|
|
|
5
|
-
Load
|
|
5
|
+
Load only when the TDD's conditional concerns (rollback, rollout, latency, compliance) apply and the team needs a concrete starting point. It complements `references/tdd/document-contract.md` (which owns the Conditional Concerns trigger table) by giving example budgets; it does not replace project-verified SLOs or legal obligations.
|
|
6
6
|
|
|
7
7
|
## Rollback-Trigger Table
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TDD Discovery And Sizing
|
|
2
2
|
|
|
3
|
-
Load
|
|
3
|
+
Load before source investigation, document sizing, or clarification questions for the TDD workflow.
|
|
4
4
|
|
|
5
5
|
## Evidence Order
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TDD Document Contract
|
|
2
2
|
|
|
3
|
-
Load
|
|
3
|
+
Load when drafting or revising a TDD. Use the smallest set of sections that makes the design decision-complete; headings may be renamed to match the user's language and project conventions.
|
|
4
4
|
|
|
5
5
|
## Core Sections
|
|
6
6
|
|
|
@@ -4,7 +4,7 @@ Structured bias detection for use during every challenge pass. Integrates findin
|
|
|
4
4
|
|
|
5
5
|
## Core Principle
|
|
6
6
|
|
|
7
|
-
Cognitive biases are not accusations — they are patterns in human reasoning that systematically distort judgment. The Fool's job is to flag when a bias may be influencing a decision, not to shame the user. Frame bias findings as: "This pattern is common in this type of decision, and here's how it might
|
|
7
|
+
Cognitive biases are not accusations — they are patterns in human reasoning that systematically distort judgment. The Fool's job is to flag when a bias may be influencing a decision, not to shame the user. Frame bias findings as: "This pattern is common in this type of decision, and here's how it might affect your reasoning."
|
|
8
8
|
|
|
9
9
|
## When to Use This File
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ Hegelian dialectic with steel manning for constructing the strongest possible co
|
|
|
4
4
|
|
|
5
5
|
## Core Principle
|
|
6
6
|
|
|
7
|
-
The dialectic is not about winning
|
|
7
|
+
The dialectic is not about winning — it is about producing a stronger position than either thesis or antithesis alone. The Fool's job is to argue the other side so well that the user is forced to either refine their position or acknowledge a genuine trade-off.
|
|
8
8
|
|
|
9
9
|
Key distinction: steel manning is epistemic (genuinely trying to find out if you're wrong), devil's advocacy is role-based (assigned to argue against). Apply both: steel man first, then construct the antithesis.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ Falsificationism and evidence quality assessment for auditing whether claims are
|
|
|
4
4
|
|
|
5
5
|
## Core Principle
|
|
6
6
|
|
|
7
|
-
Karl Popper's key insight: a claim is only meaningful if you can specify what would disprove it. The Evidence Audit mode extracts claims from proposals, designs falsification criteria, assesses evidence quality, identifies cognitive biases, and surfaces competing explanations. The goal is not to disprove — it is to determine whether the evidence
|
|
7
|
+
Karl Popper's key insight: a claim is only meaningful if you can specify what would disprove it. The Evidence Audit mode extracts claims from proposals, designs falsification criteria, assesses evidence quality, identifies cognitive biases, and surfaces competing explanations. The goal is not to disprove — it is to determine whether the evidence supports the conclusion.
|
|
8
8
|
|
|
9
9
|
## Process
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ Pre-mortem methodology (Gary Klein) with second-order thinking for identifying h
|
|
|
4
4
|
|
|
5
5
|
## Core Principle
|
|
6
6
|
|
|
7
|
-
A pre-mortem inverts the question. Instead of "Will this work?" ask: **"It's 6 months from now and this has failed. Why?"** This psychological shift bypasses optimism bias by making failure the starting point, not the thing
|
|
7
|
+
A pre-mortem inverts the question. Instead of "Will this work?" ask: **"It's 6 months from now and this has failed. Why?"** This psychological shift bypasses optimism bias by making failure the starting point, not the thing being argued against.
|
|
8
8
|
|
|
9
9
|
Research shows prospective hindsight increases correct failure identification by 30% compared to asking "what could go wrong?" directly.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ Adversarial thinking and red teaming for finding weaknesses before adversaries d
|
|
|
4
4
|
|
|
5
5
|
## Core Principle
|
|
6
6
|
|
|
7
|
-
Red teaming asks: **"If someone wanted to break, exploit, or game this, how would they do it?"** The Fool adopts the mindset of an adversary — not to cause harm, but to find vulnerabilities before real adversaries do. This applies beyond security: competitors, disgruntled users, perverse incentives, and regulatory challenges are all adversarial forces.
|
|
7
|
+
Red teaming asks: **"If someone wanted to break, exploit, or game this, how would they do it?"** The Fool adopts the mindset of an adversary — not to cause harm, but to find vulnerabilities before real adversaries do. This applies beyond security: competitors, disgruntled users, perverse incentives, and regulatory challenges are all adversarial forces too.
|
|
8
8
|
|
|
9
9
|
## The RED Model
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ Structured question frameworks for exposing assumptions and deepening understand
|
|
|
4
4
|
|
|
5
5
|
## Core Principle
|
|
6
6
|
|
|
7
|
-
Socratic questioning does not argue
|
|
7
|
+
Socratic questioning does not argue — it asks. The goal is to help the user discover gaps in their own reasoning by surfacing what they have not examined. Every question should create a moment of "I hadn't thought about that."
|
|
8
8
|
|
|
9
9
|
The agent must never answer the questions itself. Present them, let the user sit with them.
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Ticket Intake And Sources
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use from `workflows/ticket.md` before drafting. Gather only missing decisions, keep source roles explicit, and avoid repository-derived ticket conventions.
|
|
4
4
|
|
|
5
5
|
## Ordered Intake
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Ticket Templates And Quality
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use when decomposing work, selecting prefixes, drafting descriptions, and validating the review artifact.
|
|
4
4
|
|
|
5
5
|
## Title Prefixes
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Verification Ladder
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use before completing work, and before Quick/Standard/Spec-driven sizing, shared-reference loading, or a verification recipe.
|
|
4
4
|
|
|
5
5
|
## Task Sizing Gate
|
|
6
6
|
|