@massa-ai/cursor-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.
- package/.cursor-plugin/plugin.json +1 -1
- package/agent-profiles/balanced/massa-ai-judge.md +4 -8
- package/agent-profiles/balanced/massa-ai-meta-judge.md +2 -5
- package/agent-profiles/balanced/massa-ai-navigator.md +1 -1
- package/agent-profiles/cheap/massa-ai-judge.md +4 -8
- package/agent-profiles/cheap/massa-ai-meta-judge.md +2 -5
- package/agent-profiles/cheap/massa-ai-navigator.md +1 -1
- package/agent-profiles/heavy/massa-ai-judge.md +4 -8
- package/agent-profiles/heavy/massa-ai-meta-judge.md +2 -5
- package/agent-profiles/heavy/massa-ai-navigator.md +1 -1
- package/agent-profiles/home/massa-ai-judge.md +4 -8
- package/agent-profiles/home/massa-ai-meta-judge.md +2 -5
- package/agent-profiles/home/massa-ai-navigator.md +1 -1
- package/agent-profiles/work/massa-ai-judge.md +4 -8
- package/agent-profiles/work/massa-ai-meta-judge.md +2 -5
- package/agent-profiles/work/massa-ai-navigator.md +1 -1
- package/agents/massa-ai-judge.md +4 -8
- package/agents/massa-ai-meta-judge.md +2 -5
- package/agents/massa-ai-navigator.md +1 -1
- package/install.sh +35 -0
- package/package.json +1 -1
- package/skills/agents/judge/SKILL.md +6 -9
- package/skills/agents/meta-judge/SKILL.md +3 -6
- package/skills/agents/navigator/SKILL.md +2 -2
- package/skills/massa-ai/SKILL.md +6 -17
- package/skills/massa-ai/references/adr-authoring.md +3 -3
- package/skills/massa-ai/references/agent-orchestration.md +18 -3
- 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/coding-guidelines.md +67 -0
- 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/skill-architect/examples.md +256 -0
- package/skills/massa-ai/references/skill-architect/patterns.md +317 -0
- package/skills/massa-ai/references/skill-architect/quality-checklist.md +70 -0
- 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/scripts/validate_skill.ts +364 -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/skill-architect.md +393 -0
- 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/massa-ai/workflows/to-prd.md +81 -0
|
@@ -1,17 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design
|
|
3
|
+
description: "Implements or updates a concrete mobile UI from structured Figma evidence or screenshots when no saved audit report exists; route comparisons to mobile-figma-audit."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### Design
|
|
2
10
|
|
|
3
|
-
|
|
11
|
+
Implement or update a concrete Android, iOS, or KMP Compose Multiplatform UI from structured Figma evidence or supplied screenshot context when no saved mobile Figma audit report is the source of truth. Route findings-only comparison to `mobile-figma-audit` and saved `MFM-*` remediation to `mobile-figma-fix`.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
Before the first repository mutation, load `references/implementation-delivery.md`
|
|
15
|
+
Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
Not for Flutter, React Native, web UI, generic Figma exploration, variable-only queries, or MCP troubleshooting.
|
|
10
18
|
|
|
11
19
|
1. Resolve/reuse `workflowSessionId`: `design-[entity]`.
|
|
12
20
|
2. Load `references/mobile-figma-matcher/repository-detection.md`, `references/mobile-figma-matcher/core.md`, `references/mobile-context.md`, `references/codebase-investigation.md`, and `references/verification-ladder.md`. When Figma links or node IDs are provided, load `references/figma-pre-analysis.md` and run its two-stage sequential retrieval protocol before building the Figma Evidence Packet. Load `references/context-firewall.md` before large design/runtime artifacts and `references/synapse-policy.md` when repeated massa-ai searches are expected.
|
|
13
21
|
3. `recall` -> load current component conventions, design-system rules, approved platform/accessibility deviations, prior Figma mappings, asset pipelines, and reusable render recipes. Memory is context, not proof.
|
|
14
|
-
4. Require a concrete feature/module target plus at least one design source: readable Figma node/selection or supplied screenshots. Resolve required visual and interactive states plus a requirements source for behavior not represented in the design source. Ask only when target ownership, runtime platforms, platform-frame mappings, or screenshot authority
|
|
22
|
+
4. Require a concrete feature/module target plus at least one design source: readable Figma node/selection or supplied screenshots. Resolve required visual and interactive states plus a requirements source for behavior not represented in the design source. Ask only when target ownership, runtime platforms, platform-frame mappings, or screenshot authority stay ambiguous after source inspection.
|
|
15
23
|
5. Build the immutable Target Surface Packet before loading stack guidance. Classify each selected surface and load only its contracts:
|
|
16
24
|
- Android Views XML -> `references/mobile-figma-matcher/android-views.md`.
|
|
17
25
|
- Android Jetpack Compose -> `references/mobile-figma-matcher/android-compose.md`.
|
|
@@ -19,8 +27,8 @@ Do not use this workflow for Flutter, React Native, web UI, generic Figma explor
|
|
|
19
27
|
- iOS SwiftUI -> `references/mobile-figma-matcher/ios-swiftui.md`.
|
|
20
28
|
- Shared KMP Compose Multiplatform -> `references/mobile-figma-matcher/kmp-compose-multiplatform.md` plus native contracts only for selected native source sets, hosts, wrappers, or runtime targets.
|
|
21
29
|
6. Build the Figma Evidence Packet with metadata when needed, design context, screenshot, variables, current Code Connect mappings, variants/states, annotations, and asset inventory. For screenshot-only sources, build a Screenshot Context Packet with provenance, target state, visible constraints, uncertainty, and `Design Evidence Class: screenshot-context-only`; do not infer exact Figma tokens, dimensions, variables, variants, or parity from screenshots alone. Stop if neither structured Figma evidence nor supplied screenshot context is available.
|
|
22
|
-
7. Resolve current components, tokens, resources, assets, source-set ownership, platform adapters, requirements, and existing validation sensors. Create the Design-To-Code Mapping Matrix and one comparison configuration
|
|
23
|
-
8. Size the work with the Verification Ladder. Route broad application work, unresolved architecture, cross-feature design-system migration, or implementation that
|
|
30
|
+
7. Resolve current components, tokens, resources, assets, source-set ownership, platform adapters, requirements, and existing validation sensors. Create the Design-To-Code Mapping Matrix and one comparison configuration per selected runtime surface; screenshot-only rows use inferred visual intent, not `Figma Value`.
|
|
31
|
+
8. Size the work with the Verification Ladder. Route broad application work, unresolved architecture, cross-feature design-system migration, or implementation that won't fit one clean context window to `spec-driven`.
|
|
24
32
|
9. Establish the verification recipe before editing. Protect tests, snapshots, screenshot baselines, fixtures, previews, accessibility identifiers, test tags, and automation flows from weakening.
|
|
25
33
|
10. Implement coherent slices using the smallest correct ownership boundary:
|
|
26
34
|
- Reuse existing components and tokens only after resolving semantics, states, accessibility, and values.
|
|
@@ -1,20 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: exploration
|
|
3
|
+
description: "Read-only workflow for understanding a codebase, module, data flow, runtime behavior, schema, dependency, or architecture area before requesting changes."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### 🔵 Exploration
|
|
2
10
|
|
|
3
|
-
Use
|
|
11
|
+
Use when the user wants to understand a codebase, module, data flow, runtime behavior, schema, dependency, or architecture area before asking for changes. Exploration is read-only: do not implement, refactor, rewrite docs, or mutate project files unless the user explicitly changes workflows or asks for edits.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
15
|
## Golden Rules
|
|
8
16
|
|
|
9
17
|
Inviolable across every exploration:
|
|
10
18
|
|
|
11
|
-
1. **Never assume or invent.** Uncertainty
|
|
19
|
+
1. **Never assume or invent.** Uncertainty always beats fabrication; invented APIs, symbols, or patterns cascade into wrong answers.
|
|
12
20
|
2. **Deserves-a-note.** When understanding is worth persisting, record what is durable — not trivia.
|
|
13
21
|
3. **Pointers, not copies.** Link/reference source (`path`, symbol, line); do not duplicate bulk content into notes or reports.
|
|
14
22
|
4. **Surgical precision.** Make the smallest sufficient change; in Exploration, that usually means the smallest sufficient read set.
|
|
15
23
|
5. **Verify against source.** Treat indexed context, memories, and external summaries as leads until confirmed against current source.
|
|
16
24
|
|
|
17
|
-
Write and search in the user's human language. Match the
|
|
25
|
+
Write and search in the user's human language. Match the user's prompt language for explanations, notes, and questions; match the codebase's language for identifiers, paths, and commands.
|
|
18
26
|
|
|
19
27
|
## Knowledge Verification Chain
|
|
20
28
|
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: feature
|
|
3
|
+
description: "Use this workflow to add a new capability, screen, command, integration, or user-facing improvement with clear intent; route broken behavior to debug and broad work to spec-driven."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### 🟡 Feature
|
|
2
10
|
|
|
3
|
-
Use
|
|
11
|
+
Use when the user wants to add a new capability, screen, command, integration, behavior, or user-facing improvement with clear intent or acceptance criteria. Not for broken behavior — route to `workflows/debug.md`. Not for broad, ambiguous, migration-heavy, or cross-boundary work — route to `workflows/spec-driven.md`.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
Before the first repository mutation, load `references/implementation-delivery.md`
|
|
15
|
+
Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
|
|
8
16
|
|
|
9
17
|
1. Resolve/reuse `projectId` and `workflowSessionId` (`feature-[entity]`)
|
|
10
18
|
2. `recall` → load prior decisions and patterns for this area
|
|
@@ -18,21 +26,14 @@ Before the first repository mutation, load `references/implementation-delivery.m
|
|
|
18
26
|
- `references/naming-standards.md` before writing or renaming code identifiers, public contract fields, tests, fixtures, or implementation-facing design names
|
|
19
27
|
- `references/pr-task-fix.md` when the verification ladder trigger table applies
|
|
20
28
|
- `references/lessons.md` when `.specs/lessons.json` exists, to load confirmed project lessons before sizing
|
|
21
|
-
4. For Android, iOS, KMP Compose Multiplatform UI, or work whose target matches the enumerated mobile-context trigger set (KMP, iOS, Android, native bridges, mobile lifecycle, offline/sync, permissions, push/background behavior, local persistence, or backend-mobile contracts), run the
|
|
22
|
-
- Ask for one or more Figma links, node IDs, a readable desktop selection, supplied screenshots, or explicit `none`.
|
|
23
|
-
- Do not ask for clear backend, CLI, docs, infrastructure, or non-UI work.
|
|
24
|
-
- Treat `none` as a first-class answer. Record `Figma Source: none by user choice` and do not re-ask unless the mobile UI scope changes.
|
|
25
|
-
- If Figma sources or screenshots are supplied for supported Android, iOS, or KMP Compose Multiplatform UI implementation/update work, keep this workflow as the parent and invoke `workflows/design.md` for the affected UI slice. When Figma links or node IDs are supplied, load `references/figma-pre-analysis.md` and run its two-stage sequential retrieval protocol before consuming the design evidence.
|
|
26
|
-
- Preserve mobile Figma routing by intent: compare/audit wording uses `workflows/mobile-figma/mobile-figma-audit.md`; saved `MFM-*` findings use `workflows/mobile-figma/mobile-figma-fix.md`.
|
|
27
|
-
- If Figma sources are supplied for unsupported targets such as Flutter, React Native, web, desktop, or generic design exploration, do not run mobile Figma. Record that the Figma source is outside mobile Figma scope and continue the normal feature workflow.
|
|
28
|
-
- Figma defines visible design intent and represented variants only. Screenshots are context-only unless paired with structured Figma evidence; do not claim exact Figma parity, tokens, variables, or dimensions from screenshots alone. Product behavior not represented by the design source still requires a separate requirements source.
|
|
29
|
+
4. For Android, iOS, KMP Compose Multiplatform UI, or work whose target matches the enumerated mobile-context trigger set (KMP, iOS, Android, native bridges, mobile lifecycle, offline/sync, permissions, push/background behavior, local persistence, or backend-mobile contracts), run the design-source intake gate from `references/mobile-context.md` (Design-Source Intake Gate) before implementation.
|
|
29
30
|
5. Size the task before implementation:
|
|
30
31
|
- Use the exact Quick, Standard, and Spec-driven thresholds in `references/verification-ladder.md`.
|
|
31
32
|
- Low-risk feature plans use the Plan Challenge lite gate first; full The Fool is reserved for explicit challenge, high-risk domains, broad changes, or lite escalation.
|
|
32
33
|
- For Standard work or Quick work over 3 files/200 LOC, load `references/pr-task-fix.md`, run its ADR/TDD input gate, decompose work into Small-first independently buildable PR groups, and keep Medium groups only when splitting would break build, tests, UI, or review coherence.
|
|
33
34
|
6. Follow the shared retrieval order from `references/codebase-investigation.md`
|
|
34
35
|
to find related code; pass only `synapseSessionId` to
|
|
35
|
-
`search.sessionId`.
|
|
36
|
+
`search.sessionId`. For multi-search investigations, run the Synapse task envelope per `references/synapse-policy.md`: `synapse_task_begin` before the first search, `synapse_prefetch` on deep file open, `synapse_task_end` at completion (both `task` calls require an existing `synapse_session` id).
|
|
36
37
|
7. Follow existing patterns discovered from recall
|
|
37
38
|
8. Establish the verification recipe before Standard edits and before Quick edits that touch validation assets, including file-integrity checks for tests, specs, benchmarks, fixtures, and snapshots used as validation assets
|
|
38
39
|
- Include a focused naming review when the feature introduces or renames identifiers. New names should use domain or precise role vocabulary, and public/persisted names should not change without explicit compatibility handling.
|
|
@@ -42,7 +43,7 @@ Before the first repository mutation, load `references/implementation-delivery.m
|
|
|
42
43
|
- Order non-breaking groups by Data, Domain, then Presentation/Navigation, mapping those labels to repository boundaries when needed.
|
|
43
44
|
- Validate each group with the verification recipe before committing.
|
|
44
45
|
- Invoke `workflows/commit.md` for each verified group; do not duplicate commit staging, message, audit-exclusion, or Jira-prefix rules in this workflow.
|
|
45
|
-
- When every group has a confirmed Jira key, follow the
|
|
46
|
+
- When every group has a confirmed Jira key, follow the optional stacked branch flow in `references/pr-task-fix.md` (Jira-Key Stacked Branches).
|
|
46
47
|
12. Run the verification recipe and report skipped checks explicitly. If verification found a reusable signal (`ac_gap`, `surviving_mutant`, `spec_precision_gap`, `spec_deviation`, `gate_fail`), record it via `references/lessons.md`:
|
|
47
48
|
`bun skills/massa-ai/scripts/lessons.ts --root . add --feature "<slug>" --signal "<signal>" --source "<ref>" --text "<one terse lesson>"`
|
|
48
49
|
13. At completion, persist (run the scoring rubric from `references/decision-engine.md` for each):
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: general
|
|
3
|
+
description: "Final fallback workflow for coding, planning, review, or implementation work when no specialized massa-ai workflow is a better match."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### General Coding Workflow
|
|
2
10
|
|
|
3
|
-
Use
|
|
11
|
+
Use for coding, planning-before-coding, review, or implementation work when no specialized massa-ai workflow is a better match. Final fallback, not a replacement for explicit or specialized workflows.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
Before the first repository mutation, load `references/implementation-delivery.md`
|
|
15
|
+
Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
|
|
8
16
|
|
|
9
17
|
1. Resolve or reuse `projectId` and a stable `workflowSessionId`: `general-[entity]`.
|
|
10
18
|
2. Run General fallback preflight before source work: name the specialized workflow considered, the exact rejected reason, and why fallback does not change verification, mutation behavior, or memory scope. Ask the user only when the rejected workflow would change those behaviors.
|
|
11
|
-
3. Recall relevant durable context with `recall`. Treat recalled memory as a lead until current source confirms it. Confirm
|
|
19
|
+
3. Recall relevant durable context with `recall`. Treat recalled memory as a lead until current source confirms it. Confirm against current source before relying on it only when the change touches the enumerated risk-domain set: public API, data loss, auth/PII, migrations, or cross-service contracts. Otherwise trust recalled memory and cite it with a one-line source note.
|
|
12
20
|
4. Create a Synapse session when planned related `search` calls >=2, following `references/synapse-policy.md`.
|
|
13
21
|
5. Load confirmed project lessons through `references/lessons.md` when `.specs/lessons.json` exists:
|
|
14
22
|
`bun skills/massa-ai/scripts/lessons.ts --root . list --status confirmed`
|
|
@@ -30,10 +38,7 @@ Before the first repository mutation, load `references/implementation-delivery.m
|
|
|
30
38
|
|
|
31
39
|
## Failure Handling
|
|
32
40
|
|
|
33
|
-
|
|
34
|
-
- If recall is empty, proceed as a cold start without inventing memory.
|
|
35
|
-
- If Synapse is unavailable, continue with stateless targeted search.
|
|
36
|
-
- If a memory write fails, complete the task and report the durable insight that was not persisted.
|
|
41
|
+
On any tool/index/MCP failure, follow `references/graceful-degradation.md` (also `SKILL.md` Graceful Degradation).
|
|
37
42
|
|
|
38
43
|
## Output Contract
|
|
39
44
|
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implementation-audit
|
|
3
|
+
description: "Findings-only multi-lens audit of a concrete implementation target that dispatches child audit lenses and saves one durable report for implementation-fix."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### Implementation Audit
|
|
2
10
|
|
|
3
|
-
|
|
11
|
+
Findings-only multi-lens audit of a concrete implementation target: modified files, explicit files/globs, commit ranges, branch comparisons or PR diffs, modules/packages, symbols/classes/functions, feature/runtime flows, or an explicitly requested whole-repository sample.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
|
|
15
|
+
Not for a single requested audit lens — route directly to that lens. Do not edit code. This workflow resolves one shared implementation scope packet, dispatches selected child lenses, and saves one durable report for `workflows/implementation/implementation-fix.md`.
|
|
8
16
|
|
|
9
17
|
1. Resolve/reuse `workflowSessionId`: `implementation-audit-[entity]`.
|
|
10
18
|
2. Load shared references:
|
|
@@ -45,18 +53,10 @@ Do not use this parent workflow when the user wants only one audit lens; route d
|
|
|
45
53
|
|
|
46
54
|
- Repeated-search children receive isolated Synapse sessions. Durable child tags retain the parent session and workflow-specific session.
|
|
47
55
|
8. Use deterministic sensors when target-relevant commands are expected to finish in <=5 minutes and need no network, destructive action, production credential, or unapproved external service: tests, builds, lint, type checks, static checks, import checks, or focused runtime commands. Record skipped commands with one reason enum: `too-expensive`, `needs-network`, `needs-credentials`, `destructive-risk`, `outside-scope`, `tool-missing`, or `not-applicable`. Model judgment alone is not completion evidence.
|
|
48
|
-
9. Check whether SonarQube MCP is available and useful for the implementation scope:
|
|
49
|
-
- Detect callable SonarQube MCP tools at runtime, such as project discovery, issue search, file/snippet analysis, advanced code analysis, duplicated-file search, component measures, security hotspots, guidelines, or quality gate status.
|
|
50
|
-
- If SonarQube MCP is unavailable, no project key can be resolved, required credentials/configuration are missing, or the target files are outside the configured SonarQube project, record `SonarQube MCP: not evaluated` with the skipped-check reason and continue normal lens synthesis.
|
|
51
|
-
- If available, use `references/context-firewall.md` and pass only the immutable implementation scope packet, resolved files, branch/PR identifiers, project key, and minimal file contents or paths required by the selected SonarQube tools.
|
|
52
|
-
- Wait for SonarQube MCP execution to finish when a tool starts analysis, capture quality gate status when available, and summarize raw issues/measures/hotspots instead of copying raw tool output into the report.
|
|
53
|
-
- Normalize actionable SonarQube results into only these implementation audit areas: Architecture, Correctness/Bugs, Code Quality, Security, and Tests. Do not create a Requirements finding from SonarQube output.
|
|
54
|
-
- Preserve Sonar issue key, rule key, tool name, severity/impact, file/line, quality gate condition, and evidence summary inside the normalized finding.
|
|
55
|
-
- Use normal source-qualified implementation IDs after normalization, such as `Architecture/ARCH-1`, `Correctness/BUG-1`, `Code Quality/CQ-1`, `Security/SEC-1`, or `Tests/TST-1`; do not invent `SONAR-*` executable finding IDs.
|
|
56
|
-
- Keep unmapped, duplicate, low-context, or out-of-scope SonarQube results in Scope And Evidence or skipped checks, not in Findings or Execution Handoff.
|
|
56
|
+
9. Check whether SonarQube MCP is available and useful for the implementation scope. If available, use it per `references/sonarqube-mcp.md` (detection, firewall, normalization, ID mapping); otherwise record `SonarQube MCP: not evaluated` with the skipped-check reason and continue.
|
|
57
57
|
10. Synthesize one result:
|
|
58
58
|
- Start with a lens coverage matrix using `run`, `not evaluated`, `skipped`, or `failed`.
|
|
59
|
-
- Include SonarQube MCP
|
|
59
|
+
- Include SonarQube MCP evidence per `references/sonarqube-mcp.md` (Reporting Integration).
|
|
60
60
|
- Preserve each child lens Verification/Test Fidelity Checklist from `references/audit-report-io.md` and summarize checklist proof in the parent lens coverage matrix, Scope And Evidence, and Execution Handoff.
|
|
61
61
|
- Tie every source-qualified finding or no-finding claim to deterministic sensors, commands/artifacts, results, validation assets, or skipped-check reasons. Model judgment alone cannot satisfy verification/testing all-clear.
|
|
62
62
|
- Deduplicate findings by root cause and order them `critical`, `high`, `medium`, then `low`.
|
|
@@ -69,8 +69,8 @@ Do not use this parent workflow when the user wants only one audit lens; route d
|
|
|
69
69
|
- Required metadata: `Workflow: implementation-audit`, `ProjectId`, `WorkflowSessionId`, `Target`, `Target Focus`, `Scope`, `Git Base`, `Git Head`, `Source Evidence Timestamp`, and `Requirements Source` or `n/a`.
|
|
70
70
|
- Required sections: lens coverage matrix, findings, ruled-out candidates when relevant, scope and evidence, Verification/Test Fidelity Checklist, execution handoff, skipped checks, and residual risk.
|
|
71
71
|
- The execution handoff lists ordered source-qualified IDs, dependencies, likely affected files, validation assets, verification commands, and cautions for `implementation-fix`.
|
|
72
|
-
- Sonar-derived findings
|
|
73
|
-
12. Persist only durable repeated patterns, approved architecture/requirements interpretations, or accepted exceptions after Importance Calibration. Use `workflow:implementation-audit` and the required project/session/entity/memory tags. Do not persist one-off findings
|
|
72
|
+
- Sonar-derived findings: see `references/sonarqube-mcp.md` (Reporting Integration) for execution-handoff eligibility.
|
|
73
|
+
12. Persist only durable repeated patterns, approved architecture/requirements interpretations, or accepted exceptions after Importance Calibration. Use `workflow:implementation-audit` and the required project/session/entity/memory tags. Do not persist one-off findings or raw child output; SonarQube output persistence follows `references/sonarqube-mcp.md`.
|
|
74
74
|
13. Complete `references/evidence-gate.md`.
|
|
75
75
|
|
|
76
76
|
## Examples
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implementation-fix
|
|
3
|
+
description: "Executes confirmed findings from a saved implementation audit report; the saved audits/implementation report is the source of truth, not chat summaries."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### Implementation Fix
|
|
2
10
|
|
|
3
|
-
|
|
11
|
+
Execute confirmed findings from a saved implementation audit markdown report only.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
Before the first repository mutation, load `references/implementation-delivery.md`
|
|
15
|
+
Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
|
|
8
16
|
|
|
9
17
|
Do not execute from chat summaries, inline review comments, remembered findings, or old PR audit reports. The saved `audits/implementation/<YYYY-MM-DD implementation-audit.md>` report is the source of truth. Route fresh findings work to `workflows/implementation/implementation-audit.md`.
|
|
10
18
|
|
|
@@ -24,7 +32,7 @@ Do not execute from chat summaries, inline review comments, remembered findings,
|
|
|
24
32
|
- If the user provides a path, read that exact markdown file.
|
|
25
33
|
- If the user asks for `latest` or omits a path, require a concrete target focus first, then select the latest matching `audits/implementation/<YYYY-MM-DD implementation-audit.md>` using `references/audit-report-io.md`.
|
|
26
34
|
- Stop if no saved report exists. Tell the user to run `implementation-audit` or provide a report path.
|
|
27
|
-
-
|
|
35
|
+
- Validate the report deterministically: `bun skills/massa-ai/scripts/validate_audit_report.ts <path> --family implementation` (`references/audit-report-io.md`, Deterministic Validation); non-zero exit rejects the report (missing metadata, or malformed/duplicate/gapped/mis-Area'd source-qualified IDs).
|
|
28
36
|
5. Validate freshness before editing:
|
|
29
37
|
- Verify project, target, target focus, scope, base/head, and resolved files match the current execution target.
|
|
30
38
|
- Re-resolve the current target and stop when material drift invalidates the report unless the user explicitly accepts the risk.
|
|
@@ -33,7 +41,7 @@ Do not execute from chat summaries, inline review comments, remembered findings,
|
|
|
33
41
|
6. Extract actionable findings:
|
|
34
42
|
- Require source-qualified IDs of the form `Area/PREFIX-N` (e.g., `Correctness/BUG-1`, `Architecture/ARCH-1`, `Code Quality/CQ-1`, `Security/SEC-2`, `Requirements/REQ-1`, `Tests/TST-1`), plus severity, confidence, source lens, original ID, location, evidence, impact, smallest fix direction, and verification suggestion. The Area must match the source lens that produced the finding; the canonical area/prefix table and discipline live in `references/audit-report-io.md` (Source-Qualified Finding IDs).
|
|
35
43
|
- Ignore ruled-out candidates, skipped-check notes, no-finding summaries, and suspects unless explicitly selected.
|
|
36
|
-
-
|
|
44
|
+
- SonarQube-derived items: see `references/sonarqube-mcp.md` (Fix-Time Consumption) — actionable only via normalized report entries, never raw MCP output.
|
|
37
45
|
- If finding IDs are supplied, execute only those IDs after validating target and report membership.
|
|
38
46
|
- Deduplicate findings sharing one root cause while preserving every original ID in the closure matrix.
|
|
39
47
|
7. Build one remediation matrix before editing: finding -> source lens -> severity -> confidence -> root fix -> likely files -> validation assets -> naming/public-contract impact -> verification command -> dependency/order -> status. Prioritize critical/high findings, then dependency order, blast radius, and verification cost. Keep unrelated cleanup out of scope.
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: judge-with-debate
|
|
3
|
+
description: "Explicit-route workflow to evaluate an artifact through multi-judge debate against a tailored specification, converging on a consensus verdict or honest no-consensus."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### Judge With Debate
|
|
2
10
|
|
|
3
|
-
Use
|
|
11
|
+
Use when the user explicitly asks to evaluate an artifact through multi-judge
|
|
4
12
|
debate — "judge this", "judge-with-debate", "evaluate with debate", "run the judges on X". The
|
|
5
13
|
user supplies artifact path(s) plus a task description (what the artifact was supposed to
|
|
6
|
-
accomplish) and optionally evaluation context.
|
|
7
|
-
|
|
14
|
+
accomplish) and optionally evaluation context. Standalone, explicit-route workflow: never
|
|
15
|
+
auto-selected by the router for generic review work (use `reviewer`, `*-audit`, or
|
|
8
16
|
`plan-critic` for those).
|
|
9
17
|
|
|
10
18
|
The protocol: a meta-judge authors a tailored evaluation specification **once**; three
|
|
@@ -13,7 +21,7 @@ disagreements over **up to 3 rounds**; the panel converges on a consensus verdic
|
|
|
13
21
|
honest no-consensus. Ported from the NeoLabHQ `judge-with-debate` pattern; this file is the
|
|
14
22
|
canonical contract here — repository contracts win on any conflict with the base.
|
|
15
23
|
|
|
16
|
-
Before the first substantive read, load `references/project-context.md` and run
|
|
24
|
+
Before the first substantive read, load `references/project-context.md` and run its
|
|
17
25
|
project-context intake sweep for the target repository (the workspace holding the artifact
|
|
18
26
|
under evaluation, which may differ from this repo).
|
|
19
27
|
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: long-session
|
|
3
|
+
description: "Use this workflow for same-session handoff, continuation, or safe stopping when work is unfinished, context budget is low, or verbose context reduces execution quality."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### 🟠 Long Session (Context Growing Large)
|
|
2
10
|
|
|
3
|
-
Use
|
|
11
|
+
Use when the user asks for same-session handoff/continuation/safe stopping, work remains unfinished at session end, context budget falls below 40% remaining, context usage reaches 60% with more than one PR group/task still open, or verbose source/log/research context is reducing execution quality. Preserve the exact existing `projectId` and `workflowSessionId`; this workflow packages continuity rather than starting a new task. Do not persist an ephemeral `synapseSessionId` as continuation state.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
15
|
This workflow owns the Session Guide. Canonical resumable state still lives in `.specs/` files — `.specs/project/FEATURES.json`, `.specs/project/STATE.md`, `.specs/HANDOFF.md`, and `.specs/features/<slug>/` — and the Session Guide points at them rather than restating or replacing them.
|
|
8
16
|
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: maestro-audit
|
|
3
|
+
description: "Findings-only audit of existing Maestro mobile E2E flows, fixtures, setup/teardown, reports, selector stability, flake risk, and scenario coverage; does not edit code."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### Maestro Audit
|
|
2
10
|
|
|
3
|
-
|
|
11
|
+
Findings-only audit of existing Maestro mobile E2E flows, fixtures, setup/teardown, reports, artifacts, CI invocation, selector stability, flake risk, and scenario coverage.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
Do not edit code or flows in this workflow.
|
|
15
|
+
Do not edit code or flows in this workflow. Not for new flow implementation — route to `workflows/maestro/maestro.md`. Do not fix findings directly; invoke `workflows/maestro/maestro-fix.md` as a bounded child workflow only after a saved audit report or audit handoff exists.
|
|
8
16
|
|
|
9
17
|
1. Resolve/reuse `workflowSessionId`: `maestro-audit-[entity]`.
|
|
10
18
|
2. Load shared references:
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: maestro-fix
|
|
3
|
+
description: "Child-only workflow to fix confirmed MST-prefixed findings from a saved Maestro audit report or an explicit maestro-audit handoff."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### Maestro Fix
|
|
2
10
|
|
|
3
|
-
|
|
11
|
+
Child-only workflow: fix confirmed `MST-*` findings from a saved Maestro audit report or an explicit `maestro-audit` handoff.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
Before the first repository mutation, load `references/implementation-delivery.md`
|
|
15
|
+
Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
|
|
8
16
|
|
|
9
17
|
Reject direct use without a saved `audits/maestro/<YYYY-MM-DD maestro-audit.md>` report or a parent audit handoff that includes the same required metadata. Do not execute from chat summaries, remembered findings, inline comments, or unsaved model analysis. The saved report or parent handoff is the source of truth.
|
|
10
18
|
|
|
@@ -32,7 +40,7 @@ Reject direct use without a saved `audits/maestro/<YYYY-MM-DD maestro-audit.md>`
|
|
|
32
40
|
3. Select and validate the report:
|
|
33
41
|
- Prefer an exact report path plus optional `MST-*` IDs.
|
|
34
42
|
- For `latest` or omitted path, require a concrete target focus, then select only from `audits/maestro/`.
|
|
35
|
-
- Validate metadata: `
|
|
43
|
+
- Validate metadata deterministically: `bun skills/massa-ai/scripts/validate_audit_report.ts <path> --family maestro` (`references/audit-report-io.md`, Deterministic Validation); non-zero exit blocks editing. Also confirm flow inventory, Maestro run matrix, JUnit report/artifact evidence, Verification/Test Fidelity Checklist, and Execution Handoff are present.
|
|
36
44
|
- Stop on invalid, stale, target-drifted, or ambiguous reports.
|
|
37
45
|
4. Extract actionable findings:
|
|
38
46
|
- Keep only selected `MST-*` findings with concrete location, scenario source, evidence, impacted journey, flake or coverage risk, simplest sufficient fix, and Verification Suggestion.
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: maestro
|
|
3
|
+
description: "Implements new Maestro mobile E2E flows from Jira/Confluence, prompt text, attached scenario files, or inferred scenarios when no explicit source is supplied."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### Maestro
|
|
2
10
|
|
|
3
|
-
|
|
11
|
+
Implement new Maestro mobile E2E flows from Jira/Confluence, prompt text, attached or local scenario files, or inferred scenarios when no explicit source is supplied.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
Before the first repository mutation, load `references/implementation-delivery.md`
|
|
15
|
+
Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
Not for findings-only review of existing flows — route to `workflows/maestro/maestro-audit.md`. Not to execute saved audit findings — route to `workflows/maestro/maestro-fix.md`. Not for app bug fixes or product behavior changes — route to `workflows/debug.md`, `workflows/feature.md`, or `workflows/requirements/requirements-audit.md`.
|
|
10
18
|
|
|
11
19
|
1. Resolve/reuse `workflowSessionId`: `maestro-[entity]`.
|
|
12
20
|
2. Load shared references:
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mobile-figma-audit
|
|
3
|
+
description: "Findings-only audit comparing an existing mobile UI implementation against Figma MCP evidence for a concrete feature, file set, screen, or commit range; does not edit code."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### Mobile Figma Audit
|
|
2
10
|
|
|
3
|
-
|
|
11
|
+
Findings-only audit of whether an existing Android Views XML, Android Jetpack Compose, iOS UIKit, iOS SwiftUI, KMP Compose Multiplatform, or mixed KMP/native implementation matches a specific Figma design. It compares Figma MCP evidence with a concrete feature, file set, screen, class/composable/view, commit range, branch comparison, or modified-file target.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
Do not edit code. Route direct design implementation to `design`.
|
|
15
|
+
Do not edit code. Route direct design implementation to `design`. Not for Flutter, React Native, web styling, generic Figma exploration, or MCP troubleshooting.
|
|
8
16
|
|
|
9
17
|
1. Resolve/reuse `workflowSessionId`: `mobile-figma-audit-[entity]`.
|
|
10
18
|
2. Load shared references:
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mobile-figma-fix
|
|
3
|
+
description: "Fixes confirmed MFM-prefixed findings from a saved mobile Figma audit report; the saved audit report is the source of truth, not screenshots or chat summaries."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### Mobile Figma Fix
|
|
2
10
|
|
|
3
|
-
|
|
11
|
+
Fix confirmed `MFM-*` findings from a saved mobile Figma audit report only.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
Before the first repository mutation, load `references/implementation-delivery.md`
|
|
15
|
+
Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
|
|
8
16
|
|
|
9
17
|
Do not execute from chat summaries, screenshots alone, remembered findings, or an unsaved comparison table. The saved `audits/mobile-figma/<YYYY-MM-DD mobile-figma-audit>.md` report is the source of truth. Route fresh comparison work to `mobile-figma-audit`.
|
|
10
18
|
|
|
@@ -23,7 +31,7 @@ Do not execute from chat summaries, screenshots alone, remembered findings, or a
|
|
|
23
31
|
4. Select a report and target focus:
|
|
24
32
|
- Prefer an exact report path plus optional `MFM-*` IDs.
|
|
25
33
|
- For `latest` or omitted path, require a concrete target focus, then select only from `audits/mobile-figma/`.
|
|
26
|
-
-
|
|
34
|
+
- Validate metadata deterministically: `bun skills/massa-ai/scripts/validate_audit_report.ts <path> --family mobile-figma` (`references/audit-report-io.md`, Deterministic Validation); non-zero exit blocks editing. Also stop if no report exists or the report lacks Target Surface Matrix, Figma source/node mappings/timestamp, per-surface platform configurations, capability matrix, or comparison matrix.
|
|
27
35
|
- Reject legacy Android-only reports without the Target Surface Matrix and `Surface ID` fields. Require a fresh audit; do not infer or migrate the missing schema.
|
|
28
36
|
5. Validate report freshness before editing:
|
|
29
37
|
- Re-resolve the target files, rebuild the Target Surface Packet, and verify git scope/base/head when relevant.
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: onboarding
|
|
3
|
+
description: "Use this workflow on a first session or with missing project context to resolve project identity, establish memory/index state, and capture an architecture overview."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### 🟢 Onboarding (New Project / First Session)
|
|
2
10
|
|
|
3
|
-
Use
|
|
11
|
+
Use for a first session, missing project context, or repo setup where the agent must resolve the project identity, establish usable memory/index state, and capture a high-level architecture overview before deeper work.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
15
|
1. Resolve `projectId` and `workflowSessionId` (`onboarding-[entity]`).
|
|
8
16
|
2. `recall` -> check for existing project identity and knowledge.
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refactor
|
|
3
|
+
description: "Behavior-preserving structural cleanup, simplification, decoupling, and testability workflow; route broken behavior to debug and broad boundary redesign to architecture-audit or spec-driven."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### 🔨 Refactor
|
|
2
10
|
|
|
3
|
-
Use
|
|
11
|
+
Use for behavior-preserving structural cleanup, simplification, decoupling, testability improvements, and code organization changes where the intended external behavior stays the same. Not for broken behavior — route to `workflows/debug.md`. Not for broad boundary redesign, migration, or unclear architecture direction — route to `workflows/architecture/architecture-audit.md` or `workflows/spec-driven.md`.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
Before the first repository mutation, load `references/implementation-delivery.md`
|
|
15
|
+
Before the first repository mutation, load `references/implementation-delivery.md` (delivery chain: worktree, atomic commits, PR, CI watch, merge gate) and `references/code-annotation.md` (doc blocks, rationale, test coverage). After two consecutive failed fixes on one symptom, stop editing and load `references/root-cause-scripts.md`.
|
|
8
16
|
|
|
9
17
|
1. Resolve/reuse `workflowSessionId`: `refactor-[entity]`
|
|
10
18
|
2. `recall` → load architectural decisions and coupling patterns for the area
|
|
@@ -37,7 +45,7 @@ Before the first repository mutation, load `references/implementation-delivery.m
|
|
|
37
45
|
- Order non-breaking groups by Data, Domain, then Presentation/Navigation, mapping those labels to repository boundaries when needed.
|
|
38
46
|
- Validate each group with the characterization and verification recipe before committing.
|
|
39
47
|
- Invoke `workflows/commit.md` for each verified group; do not duplicate commit staging, message, audit-exclusion, or Jira-prefix rules in this workflow.
|
|
40
|
-
- When every group has a confirmed Jira key, follow the
|
|
48
|
+
- When every group has a confirmed Jira key, follow the optional stacked branch flow in `references/pr-task-fix.md` (Jira-Key Stacked Branches).
|
|
41
49
|
10. Include file-integrity checks when tests, specs, benchmarks, fixtures, or snapshots are validation assets. If verification found a reusable signal (`ac_gap`, `surviving_mutant`, `spec_precision_gap`, `spec_deviation`, `gate_fail`), record it via `references/lessons.md`:
|
|
42
50
|
`bun skills/massa-ai/scripts/lessons.ts --root . add --feature "<slug>" --signal "<signal>" --source "<ref>" --text "<one terse lesson>"`
|
|
43
51
|
11. Use `references/agent-orchestration.md` only for isolated implementation slices or independent verification
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: furps-refinement
|
|
3
|
+
description: "Findings-only refinement of a PRD and/or ADR against the FURPS+ quality model before implementation, fanning out one sub-agent per dimension with a structured report."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.1.0"
|
|
7
|
+
---
|
|
8
|
+
|
|
1
9
|
### FURPS+ Refinement
|
|
2
10
|
|
|
3
|
-
|
|
11
|
+
Findings-only refinement of a Product Requirements Document (PRD) and/or Architecture Decision Record (ADR) against the FURPS+ quality model, before implementation. It runs The Fool as an input-validation pre-pass, then fans out one sub-agent per FURPS+ dimension, and emits a structured refinement report with open questions, suggestions, insights, risks, and Definition-of-Ready coverage gaps.
|
|
4
12
|
|
|
5
|
-
|
|
13
|
+
Load `references/project-context.md` (intake sweep) before the first substantive read.
|
|
6
14
|
|
|
7
|
-
|
|
15
|
+
Not for authoring a new PRD (use `to-prd` or `spec-driven` Specify), authoring an ADR (use `adr`), proposing change (use `rfc`), auditing implementation against requirements (use `requirements-audit`), or auditing code/security/architecture. It refines the document itself; it does not edit code.
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
Findings-only: do not edit the PRD/ADR unless the user separately asks.
|
|
10
18
|
|
|
11
19
|
1. Resolve/reuse `workflowSessionId`: `furps-refinement-[entity]`. Resolve `projectId` per the router. Budget `recall` (`limit <= 3`, `minImportance >= 0.7`, `types=["critical","decision","pattern"]`) for prior ADRs, accepted decisions, DoR, and refinement patterns.
|
|
12
20
|
2. Load shared references:
|