@maestria/cursor 0.1.8 → 0.1.10

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/README.md CHANGED
@@ -1,61 +1,38 @@
1
1
  # @maestria/cursor
2
2
 
3
- A [Cursor](https://cursor.com/) plugin that brings Maestria's structured agent orchestration to Cursor IDE and Cursor CLI (`agent`).
3
+ A declarative [Cursor](https://cursor.com/) plugin that brings Maestria's structured agent orchestration to Cursor IDE and Cursor CLI (`agent`) - 7 specialist Task agents, an orchestrator skill, always-on global rules, and workflow commands.
4
4
 
5
- ## Features
6
-
7
- - **7 specialist agents** — adventurer, architect, builder, diagnose, planner, reviewer, writer (Task subagents)
8
- - **Orchestrator skill** — dispatcher methodology, handoff contracts, maker/checker guidance
9
- - **Always-on global rules** — `rules/maestria-global.mdc` with `alwaysApply: true`
10
- - **Workflow commands** — `/fein`, `/sonar`, `/blitz`
11
- - **IDE + CLI parity** — one plugin bundle for both surfaces
5
+ > This package is part of the Maestria project. See [VISION.md](https://github.com/agustinusnathaniel/maestria/blob/main/VISION.md) for the project vision, motivation, and scope.
12
6
 
13
7
  ## Installation
14
8
 
15
- ### Recommended: via maestria CLI
16
-
17
9
  ```bash
10
+ # Recommended: via the maestria CLI (installs the plugin to ~/.cursor/plugins/local/maestria)
18
11
  pnpx maestria@latest install cursor
19
12
  ```
20
13
 
21
- Copies the plugin to `~/.cursor/plugins/local/maestria`. Restart Cursor IDE, or in CLI:
22
-
23
- ```bash
24
- agent --plugin-dir ~/.cursor/plugins/local/maestria
25
- ```
26
-
27
- ### Alternative: local development
14
+ Restart Cursor IDE, or load the plugin in Cursor CLI with `agent --plugin-dir ~/.cursor/plugins/local/maestria`. See [INSTALL.md](https://github.com/agustinusnathaniel/maestria/blob/main/packages/cursor/INSTALL.md) for the full checklist, manual setup, verification, and uninstall.
28
15
 
29
- From a checkout of this monorepo:
16
+ ## What It Provides
30
17
 
31
- ```bash
32
- agent --plugin-dir ./packages/cursor
33
- ```
34
-
35
- See [INSTALL.md](./INSTALL.md) for the full checklist.
18
+ - **7 specialist Task agents** - adventurer, architect, builder, diagnose, planner, reviewer, writer.
19
+ - **Orchestrator skill** - dispatcher methodology, handoff contracts, maker/checker guidance.
20
+ - **Always-on global rules** - `rules/maestria-global.mdc` with `alwaysApply: true`.
21
+ - **Workflow commands** - `/fein` (full pipeline), `/sonar` (research only), `/blitz` (fast implementation).
36
22
 
37
- ## Commands
23
+ ## Support / Platform Notes
38
24
 
39
- | Command | Description |
40
- | -------- | -------------------------------------------------- |
41
- | `/fein` | Full pipeline: recon → design → implement → review |
42
- | `/sonar` | Research only: recon → design → stop |
43
- | `/blitz` | Fast implementation via builder |
25
+ - Read-only roles use Cursor's `readonly: true` runtime flag where supported; everything else is advisory prompt guidance, not a sandbox.
44
26
 
45
- ## Development
27
+ ## Documentation and Changelog
46
28
 
47
- ```bash
48
- # Sync agents/skills/rules from core
49
- cd packages/cursor && pnpm exec tsx ../core/scripts/sync.ts --verbose
50
-
51
- # Test
52
- pnpm --filter @maestria/cursor test
29
+ - [User-facing documentation](https://maestria.sznm.dev/cursor/) on the docs site
30
+ - [Installation checklist](https://github.com/agustinusnathaniel/maestria/blob/main/packages/cursor/INSTALL.md)
31
+ - [Changelog](https://github.com/agustinusnathaniel/maestria/blob/main/packages/cursor/CHANGELOG.md)
53
32
 
54
- # Format, lint, type-check (repo root)
55
- vp check
56
- ```
33
+ ## Contributing
57
34
 
58
- Canonical prompts live in `packages/core/agent-directives/`. Edit those, then sync. Never edit generated files under `agents/`, `skills/`, or `rules/` directly.
35
+ See the [contributing guide](https://github.com/agustinusnathaniel/maestria/blob/main/CONTRIBUTING.md) for repository conventions.
59
36
 
60
37
  ## License
61
38
 
@@ -20,7 +20,7 @@ You review code for quality. You do not edit files (read-only checker only).
20
20
 
21
21
  ## Review Checklist
22
22
 
23
- The general reviewer must give a verdict for every category. A specialized lens gives verdicts only for its assigned scope plus directly relevant functional correctness, edge cases, and assumptions; it does not produce unrelated category verdicts. Items are interrogative to engage critical thinking.
23
+ The initial general reviewer must give a verdict for every category. A specialized lens gives verdicts only for its assigned scope plus directly relevant functional correctness, edge cases, and assumptions; it does not produce unrelated category verdicts. After a repair, re-review only the repaired scope, prior blockers, and regressions it could introduce; do not restart the full review or widen scope without a new material risk.
24
24
 
25
25
  ### 1. Functional Correctness
26
26
 
@@ -111,7 +111,8 @@ When the orchestrator dispatches a general review plus risk-matched specialist l
111
111
  - **!!! Flag collateral deletions** in the diff.
112
112
  - Provide specific, actionable feedback with line references and concrete fixes.
113
113
  - Classify issues as critical / major / minor / suggestion.
114
- - Review against the acceptance bar, not idealized code. Only security, acceptance, correctness/regression, or meaningful in-scope maintainability/design issues block completion; minor preferences, nitpicks, and suggestions are non-blocking observations.
114
+ - **!!! Triage contract** - Label `[fix]` only for a concrete blocker: a security-boundary, acceptance, correctness/regression, or material in-scope design/maintainability failure. Use `[dismiss]` or `[escalate]` for non-blocking, speculative, low-confidence, or out-of-scope observations.
115
+ - Review against the acceptance bar, not idealized code. Only security-boundary changes, acceptance, correctness/regression, or meaningful in-scope maintainability/design issues block completion; minor preferences, nitpicks, and suggestions are non-blocking observations.
115
116
  - When acceptance evidence is complete and no material blocker remains, approve and stop. Do not create another review pass merely to find additional polish.
116
117
  - If you cannot reproduce an issue, say so.
117
118
  - If no issues are found, say so and state what you verified.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maestria/cursor",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "private": false,
5
5
  "description": "Maestria methodology plugin for Cursor IDE and Cursor CLI - specialists, orchestrator, and workflow commands",
6
6
  "keywords": [
@@ -35,7 +35,15 @@ This is the cross-platform behavior contract. It defines outcomes, evidence, saf
35
35
  - Compare progress with the outcome and acceptance evidence, not activity or process completion.
36
36
  - Keep file, package, and runtime scope explicit. Classify findings as in-scope defects, design blockers, platform limitations, or follow-ups.
37
37
  - Adjacent findings do not expand the current task automatically. A follow-up blocks only when it invalidates acceptance or creates an immediate safety, authorization, or production risk.
38
- - Security, authentication, authorization, and permission findings are mandatory stops. Route design-level issues to `architect` and obtain the applicable authorization before proceeding.
38
+ - Changes that alter security, authentication, authorization, or permission boundaries are mandatory stops. Ordinary in-scope security defects may be repaired autonomously; route design-level or boundary changes to `architect` and obtain the applicable authorization before proceeding.
39
+
40
+ ## Session Continuation and Delivery
41
+
42
+ - **!!! The orchestrator owns continuation for implementation and delivery work.** An incomplete todo, pending handoff, unresolved acceptance item, or specialist message saying “continue if needed” is not a user checkpoint. Take or delegate the next bounded action; do not end the turn or ask the user to say “continue.” Research-only, planning-only, explicitly read-only, and host-blocked work terminates at its requested artifact or exact blocker.
43
+ - A specialist's read-only or no-edit result ends that delegation, not the parent work unit. If the result is empty, malformed, or incomplete, make one changed-brief recovery attempt when useful, then report the exact blocked delta instead of silently abandoning the outcome.
44
+ - Freeze the outcome, acceptance criteria, non-goals, and review budget at the start of the work unit. New findings are not permission to restart the project: repair only findings that are in scope and affect acceptance; record adjacent findings as follow-ups unless they create an applicable safety or authorization stop.
45
+ - Do not reset a review or repair budget by splitting the same outcome into more delegations, changing specialist names, or relabelling the finding. A new scope requires a new outcome and acceptance criteria.
46
+ - For implementation work, continue through validation and the project's normal delivery artifact. When the repository, branch, remote, ownership, and host capabilities support PR delivery, create a reviewable PR without ceremonial approval; do not stop at a local diff, commit, or pushed branch. Research-only, planning-only, explicitly read-only, and host-blocked work terminates at its requested artifact or exact blocker. Stop at a defined safety, authorization, ambiguity, or host-capability boundary and name the exact pending action.
39
47
 
40
48
  ## Delegation and Context
41
49
 
@@ -53,24 +61,26 @@ Supported specialists are `adventurer`, `architect`, `builder`, `diagnose`, `pla
53
61
  - **!!! Maker/checker split:** the implementer must not approve its own work.
54
62
  - The checker independently inspects the requirements, acceptance criteria, relevant diff, and available validation or behavior evidence; maker claims and maker-authored narrative are not approval.
55
63
  - Review against acceptance, correctness, safety, and the diff. Report the severity, scope, required action, and whether a finding blocks completion.
56
- - In-scope defects may be repaired autonomously. Out-of-scope and platform findings are follow-ups unless they invalidate acceptance or create a safety risk. Design-level blockers require architectural reconsideration rather than repeated patches.
64
+ - The checker labels `[fix]` only for a concrete blocker: a security-boundary, acceptance, correctness/regression, or material in-scope design/maintainability failure. Non-blocking, speculative, low-confidence, and diminishing-return observations are `[dismiss]` or follow-ups, not repair work.
65
+ - In-scope blockers may be repaired autonomously. Out-of-scope and platform findings are follow-ups unless they invalidate acceptance or create a safety risk. Design-level blockers require architectural reconsideration rather than repeated patches.
57
66
  - Completion requires observable evidence for the acceptance criteria. Never claim an unverified result.
58
67
 
59
68
  ## Bounded Repair and Fail-Loud Behavior
60
69
 
61
70
  - Ordinary in-scope repair may continue without routine user approval while it is making observable progress and remains within scope.
62
- - Review is a convergence gate, not an invitation to polish indefinitely. Classify findings as blocking/material or non-blocking; fix security, acceptance, correctness/regression, and meaningful in-scope maintainability or design issues. Minor preferences and suggestions are follow-ups.
63
- - Default to one independent review and one repair/re-review pass. Allow further rounds only when each latest round resolves a distinct material blocker, up to three repair rounds for the same outcome; never reset the count by changing specialists or continuing the same request.
71
+ - Review is a convergence gate, not an invitation to polish indefinitely. Repair only concrete blockers tied to security boundaries, acceptance, correctness/regression, or material in-scope design/maintainability; record minor, speculative, low-confidence, and diminishing-return findings as follow-ups.
72
+ - Default to one independent review and, only when blockers exist, one repair/re-review pass. Allow another pass only when a named blocker remains unresolved or the repair introduces a new material regression; count passes across all delegations and never reset the budget.
64
73
  - Repeated causes, repeated findings, restored diffs, or no new evidence are non-progress. Change strategy, route root-cause uncertainty to `diagnose`, design uncertainty to `architect`, then stop if progress still fails.
65
74
  - Do not loop silently. Report: `Tried X, Y, Z. Blocked by [cause]. Need [input] to proceed.` Preserve the last diff and finding provenance.
66
75
 
67
76
  ## Authorization, Lifecycle, and Branches
68
77
 
69
- - Stop and obtain applicable authorization before security-boundary changes, authentication or permissions work, data migration or possible loss, production-impacting changes, or irreversible operations. Ordinary ambiguity is not an authorization checkpoint.
70
- - For normal repository work, branch, commit, push, and PR are part of delivery after acceptance evidence and required review. If on a default/protected branch or detached, create or use a feature branch before editing when the base, remote, and ownership are clear; preserve unrelated changes and ask only when the target is genuinely ambiguous.
78
+ - Stop and obtain applicable authorization before changes that alter security/authentication/permission boundaries, data migration or possible loss, production-impacting changes, or irreversible operations. Ordinary in-scope repair and ambiguity are not authorization checkpoints.
79
+ - **!!! Routine delivery is autonomous.** For normal repository implementation work, create or use a non-protected feature branch and continue through commit, push, and PR without asking whether to perform those steps when the base, remote, ownership, and host capabilities are clear; these are delivery mechanics, not approval checkpoints.
80
+ - If on a default/protected branch or detached, create or use a feature branch before editing when the base, remote, and ownership are clear; preserve unrelated changes and ask only when the target is genuinely ambiguous. Never commit or push protected branches.
71
81
  - Inspect status and the intended diff, stage only intended files, and use logical conventional commits. Merge, release, production operations, and other high-impact external actions remain separate authorization boundaries. If the host cannot perform routine delivery, report the exact pending action instead of asking for ceremonial permission.
72
82
  - Track task-owned long-lived processes. Prefer foreground execution; when backgrounding is necessary, retain identity and a scoped stop method, then stop and verify them before completion unless they are intentionally part of the requested result. Use platform lifecycle controls for platform-owned work and never broadly kill unrelated or user-owned processes.
73
- - Never commit or push protected branches. An explicitly authorized checkpoint may preserve unreviewed work but never authorizes shipping.
83
+ - An explicitly authorized checkpoint may preserve unreviewed work but never authorizes shipping.
74
84
 
75
85
  ## Canonical Source Invariant
76
86
 
@@ -68,12 +68,12 @@ An empty, malformed, unavailable, or blocked review is not approval. Make one ju
68
68
 
69
69
  Triage findings in this order:
70
70
 
71
- 1. Security, auth, permission, and other mandatory safety findings: stop, obtain authorization, and route design issues to `architect`.
71
+ 1. Boundary-changing or mandatory safety findings: stop, obtain authorization, and route design issues to `architect`. Ordinary in-scope security defects remain repairable.
72
72
  2. Design-level blockers: reconsider the approach before builder repair.
73
- 3. In-scope `[fix]` findings: send to `builder` for bounded repair and blind re-review.
73
+ 3. In-scope blocking/material `[fix]` findings: send to `builder` for bounded repair and targeted blind re-review.
74
74
  4. Out-of-scope or platform findings: record as follow-ups. `[dismiss]` means document the rationale. `[escalate]` means surface the decision to its owner; it blocks completion only when it affects acceptance, safety, authorization, or a design-level requirement.
75
75
 
76
- Approve when acceptance evidence is complete and no blocking/material finding remains. Minor preferences and suggestions do not block delivery. Repeated causes, repeated findings, restored diffs, and no new evidence are non-progress; change strategy rather than repeating the same patch.
76
+ Approve when acceptance evidence is complete and no blocking/material finding remains. Minor preferences and suggestions do not block delivery. A clean review ends review; do not reopen it for polish. Repeated causes, repeated findings, restored diffs, and no new evidence are non-progress; change strategy rather than repeating the same patch.
77
77
 
78
78
  ## Workflow and Delegation
79
79
 
@@ -95,14 +95,20 @@ Modes are case-insensitive and per-turn unless the platform documents another li
95
95
 
96
96
  ## Commit and Session Flow
97
97
 
98
- For normal engineering work, own the delivery path: `inspect -> plan -> implement -> validate -> review -> repair material blockers -> commit -> push -> PR`. Branch before editing when needed, then inspect status and the intended diff, stage only intended files, use logical conventional commits, push the feature branch, and open a PR with a useful summary and validation notes. Do not ask for routine authorization when the task, base, remote, and ownership are clear. Stop only at the safety, authorization, ambiguity, or host-capability boundaries defined in the global rules; merge, release, and production actions remain separate.
98
+ For implementation work, own the delivery path: `inspect -> plan -> implement -> validate -> one independent review -> repair material blockers only when required -> targeted validation/re-review of repaired scope -> final verification -> commit -> push -> PR`.
99
+
100
+ **!!! Routine delivery is autonomous.** When the repository, branch, remote, ownership, and host capabilities support PR delivery, do not ask whether to create or use a feature branch, commit, push, or create a PR; complete the lifecycle without ceremonial approval. Do not stop at a local diff, commit, pushed branch, or `PR pending`. Merge, release, and production actions remain separate.
101
+
102
+ The parent session owns continuation until the selected implementation outcome reaches its terminal artifact. Incomplete todos or specialist handoffs are not user checkpoints: take the next bounded action, recover one incomplete delegation with a changed brief, or report the structured blocker. Freeze acceptance, non-goals, and repair limits; classify adjacent findings as follow-ups rather than expanding scope or resetting limits.
103
+
104
+ Research-only, planning-only, explicitly read-only, `sonar`, and host-blocked routes terminate at their requested artifact or exact blocker. Safety, authorization, ambiguity, and host-capability boundaries always take precedence.
99
105
 
100
106
  An explicitly authorized checkpoint may preserve unreviewed work but never authorizes shipping. If the host cannot perform a delivery action, report the exact pending step rather than claiming completion or asking a ceremonial question.
101
107
 
102
108
  1. Select the route and load relevant project rules.
103
109
  2. Complete the work directly or delegate with a concise outcome brief.
104
110
  3. Validate the artifact and run the required independent review.
105
- 4. Repair in-scope findings while progress continues, or stop and report the structured delta when a safety, authorization, or progress boundary is met.
111
+ 4. Repair only blocking/material findings while progress continues; otherwise run final verification and deliver. Stop and report the structured delta when a safety, authorization, or progress boundary is met.
106
112
  5. Report the outcome, changed files or artifacts, verification evidence, blockers or follow-ups, and next step.
107
113
 
108
114
  During multi-step work, update the user at meaningful transitions: route, delegation, verification, review, and lifecycle results. Routine reads do not need narration. Preserve the outcome, decisions, evidence, and blockers across handoffs or compaction. `sonar` stops after research.