nurosys-agents 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/.agent/INSTRUCTIONS.md +82 -0
  2. package/.agent/README.md +483 -0
  3. package/.agent/backend/skills/architect/SKILL.md +436 -0
  4. package/.agent/backend/skills/auth-and-permissions/SKILL.md +168 -0
  5. package/.agent/backend/skills/brainstorm/SKILL.md +127 -0
  6. package/.agent/backend/skills/code-reviewer/SKILL.md +324 -0
  7. package/.agent/backend/skills/create-blueprint/SKILL.md +650 -0
  8. package/.agent/backend/skills/debug-issue/SKILL.md +53 -0
  9. package/.agent/backend/skills/explore-codebase/SKILL.md +45 -0
  10. package/.agent/backend/skills/quick-execute/SKILL.md +99 -0
  11. package/.agent/backend/skills/refactor-safely/SKILL.md +46 -0
  12. package/.agent/backend/skills/security-assessment/SKILL.md +174 -0
  13. package/.agent/backend/workflows/module-runner.claude.md +226 -0
  14. package/.agent/backend/workflows/module-runner.codex.md +155 -0
  15. package/.agent/backend/workflows/module-runner.cursor.md +212 -0
  16. package/.agent/frontend/skills/architect/SKILL.md +644 -0
  17. package/.agent/frontend/skills/auth-and-permissions/SKILL.md +43 -0
  18. package/.agent/frontend/skills/create-blueprint/SKILL.md +635 -0
  19. package/.agent/frontend/skills/debug-issue/SKILL.md +28 -0
  20. package/.agent/frontend/skills/explore-codebase/SKILL.md +29 -0
  21. package/.agent/frontend/skills/feature-workflow/SKILL.md +61 -0
  22. package/.agent/frontend/skills/react-quality-review/SKILL.md +126 -0
  23. package/.agent/frontend/skills/react-quality-review/examples.md +24 -0
  24. package/.agent/frontend/skills/react-quality-review/rules/_sections.md +26 -0
  25. package/.agent/frontend/skills/react-quality-review/rules/_template.md +28 -0
  26. package/.agent/frontend/skills/react-quality-review/rules/advanced-event-handler-refs.md +55 -0
  27. package/.agent/frontend/skills/react-quality-review/rules/advanced-init-once.md +42 -0
  28. package/.agent/frontend/skills/react-quality-review/rules/react-rules-calling.md +66 -0
  29. package/.agent/frontend/skills/react-quality-review/rules/react-rules-hooks.md +91 -0
  30. package/.agent/frontend/skills/react-quality-review/rules/react-rules-purity.md +121 -0
  31. package/.agent/frontend/skills/react-quality-review/rules/rendering-activity.md +26 -0
  32. package/.agent/frontend/skills/react-quality-review/rules/rendering-conditional-render.md +40 -0
  33. package/.agent/frontend/skills/react-quality-review/rules/rendering-content-visibility.md +38 -0
  34. package/.agent/frontend/skills/react-quality-review/rules/rendering-hoist-jsx.md +46 -0
  35. package/.agent/frontend/skills/react-quality-review/rules/rendering-usetransition-loading.md +75 -0
  36. package/.agent/frontend/skills/react-quality-review/rules/rerender-defer-reads.md +39 -0
  37. package/.agent/frontend/skills/react-quality-review/rules/rerender-dependencies.md +45 -0
  38. package/.agent/frontend/skills/react-quality-review/rules/rerender-derived-state-no-effect.md +40 -0
  39. package/.agent/frontend/skills/react-quality-review/rules/rerender-derived-state.md +29 -0
  40. package/.agent/frontend/skills/react-quality-review/rules/rerender-functional-setstate.md +74 -0
  41. package/.agent/frontend/skills/react-quality-review/rules/rerender-lazy-state-init.md +58 -0
  42. package/.agent/frontend/skills/react-quality-review/rules/rerender-memo-with-default-value.md +38 -0
  43. package/.agent/frontend/skills/react-quality-review/rules/rerender-memo.md +44 -0
  44. package/.agent/frontend/skills/react-quality-review/rules/rerender-move-effect-to-event.md +45 -0
  45. package/.agent/frontend/skills/react-quality-review/rules/rerender-no-inline-components.md +82 -0
  46. package/.agent/frontend/skills/react-quality-review/rules/rerender-simple-expression-in-memo.md +35 -0
  47. package/.agent/frontend/skills/react-quality-review/rules/rerender-transitions.md +40 -0
  48. package/.agent/frontend/skills/react-quality-review/rules/rerender-use-ref-transient-values.md +73 -0
  49. package/.agent/frontend/skills/refactor-safely/SKILL.md +29 -0
  50. package/.agent/frontend/skills/vuexy-component-guide/SKILL.md +369 -0
  51. package/.agent/frontend/skills/vuexy-component-guide/examples.md +662 -0
  52. package/.agent/frontend/skills/vuexy-component-guide/reference.md +1036 -0
  53. package/.agent/frontend/workflows/build-feature-react.workflow.md +82 -0
  54. package/.agent/frontend/workflows/feature-module-runner.md +101 -0
  55. package/.agent/monolith/skills/architect/SKILL.md +648 -0
  56. package/.agent/monolith/skills/auth-and-permissions/SKILL.md +43 -0
  57. package/.agent/monolith/skills/code-reviewer/SKILL.md +281 -0
  58. package/.agent/monolith/skills/create-blueprint/SKILL.md +635 -0
  59. package/.agent/monolith/skills/debug-issue/SKILL.md +28 -0
  60. package/.agent/monolith/skills/explore-codebase/SKILL.md +29 -0
  61. package/.agent/monolith/skills/feature-workflow/SKILL.md +61 -0
  62. package/.agent/monolith/skills/react-quality-review/SKILL.md +126 -0
  63. package/.agent/monolith/skills/react-quality-review/examples.md +24 -0
  64. package/.agent/monolith/skills/react-quality-review/rules/_sections.md +26 -0
  65. package/.agent/monolith/skills/react-quality-review/rules/_template.md +28 -0
  66. package/.agent/monolith/skills/react-quality-review/rules/advanced-event-handler-refs.md +55 -0
  67. package/.agent/monolith/skills/react-quality-review/rules/advanced-init-once.md +42 -0
  68. package/.agent/monolith/skills/react-quality-review/rules/react-rules-calling.md +66 -0
  69. package/.agent/monolith/skills/react-quality-review/rules/react-rules-hooks.md +91 -0
  70. package/.agent/monolith/skills/react-quality-review/rules/react-rules-purity.md +121 -0
  71. package/.agent/monolith/skills/react-quality-review/rules/rendering-activity.md +26 -0
  72. package/.agent/monolith/skills/react-quality-review/rules/rendering-conditional-render.md +40 -0
  73. package/.agent/monolith/skills/react-quality-review/rules/rendering-content-visibility.md +38 -0
  74. package/.agent/monolith/skills/react-quality-review/rules/rendering-hoist-jsx.md +46 -0
  75. package/.agent/monolith/skills/react-quality-review/rules/rendering-usetransition-loading.md +75 -0
  76. package/.agent/monolith/skills/react-quality-review/rules/rerender-defer-reads.md +39 -0
  77. package/.agent/monolith/skills/react-quality-review/rules/rerender-dependencies.md +45 -0
  78. package/.agent/monolith/skills/react-quality-review/rules/rerender-derived-state-no-effect.md +40 -0
  79. package/.agent/monolith/skills/react-quality-review/rules/rerender-derived-state.md +29 -0
  80. package/.agent/monolith/skills/react-quality-review/rules/rerender-functional-setstate.md +74 -0
  81. package/.agent/monolith/skills/react-quality-review/rules/rerender-lazy-state-init.md +58 -0
  82. package/.agent/monolith/skills/react-quality-review/rules/rerender-memo-with-default-value.md +38 -0
  83. package/.agent/monolith/skills/react-quality-review/rules/rerender-memo.md +44 -0
  84. package/.agent/monolith/skills/react-quality-review/rules/rerender-move-effect-to-event.md +45 -0
  85. package/.agent/monolith/skills/react-quality-review/rules/rerender-no-inline-components.md +82 -0
  86. package/.agent/monolith/skills/react-quality-review/rules/rerender-simple-expression-in-memo.md +35 -0
  87. package/.agent/monolith/skills/react-quality-review/rules/rerender-transitions.md +40 -0
  88. package/.agent/monolith/skills/react-quality-review/rules/rerender-use-ref-transient-values.md +73 -0
  89. package/.agent/monolith/skills/refactor-safely/SKILL.md +29 -0
  90. package/.agent/monolith/skills/vuexy-component-guide/SKILL.md +369 -0
  91. package/.agent/monolith/skills/vuexy-component-guide/examples.md +662 -0
  92. package/.agent/monolith/skills/vuexy-component-guide/reference.md +1036 -0
  93. package/.agent/monolith/workflows/add-new-api-feature-module.md +63 -0
  94. package/.agent/monolith/workflows/backend-quality-review.md +27 -0
  95. package/.agent/monolith/workflows/build-feature-backend.workflow.md +91 -0
  96. package/.agent/monolith/workflows/build-feature-react.workflow.md +82 -0
  97. package/.agent/monolith/workflows/feature-module-runner.md +97 -0
  98. package/.agent/templates/FEATURE_PLAN.md +42 -0
  99. package/.agent/templates/MODULE.md +45 -0
  100. package/.agent/templates/REVIEW_REPORT.md +44 -0
  101. package/.agent/templates/SECURITY_REPORT.md +70 -0
  102. package/.agent/templates/TEST_PLAN.md +49 -0
  103. package/README.md +131 -0
  104. package/package.json +42 -0
  105. package/scripts/setup-rules.js +224 -0
  106. package/scripts/setup.js +518 -0
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: build-feature
3
+ description: Strict end-to-end feature workflow with mandatory plan approval, implementation, quality review, and testing.
4
+ strict_mode: true
5
+ owner: agent
6
+ references:
7
+ - project-memory/constitution.md
8
+ - project-memory/repo-map.md
9
+ - project-memory/auth-model.md
10
+ - project-memory/quality-playbook.md
11
+ - project-memory/core-memory.md
12
+ - .agent/skills/feature-workflow/SKILL.md
13
+ - .agent/skills/auth-and-permissions/SKILL.md
14
+ - .agent/skills/react-quality-review/SKILL.md
15
+ - .agent/templates/FEATURE_PLAN.md
16
+ - .agent/templates/REVIEW_REPORT.md
17
+ - .agent/templates/TEST_PLAN.md
18
+ outputs:
19
+ - Documentation/plans/FEATURE_PLAN.md (or Documentation/features/<feature_name>/ when running a named feature)
20
+ - Documentation/reports/REVIEW_REPORT.md
21
+ - Documentation/plans/TEST_PLAN.md (or Documentation/features/<feature_name>/ when running a named feature)
22
+ ---
23
+
24
+ # Build Feature Workflow (Strict)
25
+
26
+ ## Non-negotiable gate
27
+
28
+ - Always load and follow `project-memory/constitution.md`.
29
+ - Always read `project-memory/quality-playbook.md`.
30
+ - Always read and maintain `project-memory/core-memory.md`.
31
+ - **No coding before plan approval.**
32
+ - Required artifacts:
33
+ - Feature plan: `Documentation/features/<feature_name>/FEATURE_PLAN.md` or `Documentation/plans/FEATURE_PLAN.md`
34
+ - Review report: `Documentation/reports/REVIEW_REPORT.md`
35
+ - Test plan: `Documentation/features/<feature_name>/TEST_PLAN.md` or `Documentation/plans/TEST_PLAN.md`
36
+
37
+ ## Steps
38
+
39
+ 1. **Load foundation docs**
40
+ - Read `project-memory/constitution.md`, `project-memory/repo-map.md`, and `project-memory/auth-model.md`.
41
+ - Confirm constraints relevant to the request.
42
+
43
+ 2. **Run feature workflow skill and create plan**
44
+ - Use `.agent/skills/feature-workflow/SKILL.md`.
45
+ - Generate the feature plan in `Documentation/features/<feature_name>/FEATURE_PLAN.md` or `Documentation/plans/FEATURE_PLAN.md` from `.agent/templates/FEATURE_PLAN.md`.
46
+
47
+ 3. **Approval checkpoint (hard stop)**
48
+ - Present plan and stop for explicit approval.
49
+ - Do not modify implementation files before approval.
50
+
51
+ 4. **Implement after approval**
52
+ - Execute the approved file touch list in order.
53
+ - Keep pages thin and move logic into `src/views/**`, hooks, and services.
54
+
55
+ 5. **Conditional auth-and-permissions pass**
56
+ - Run `.agent/skills/auth-and-permissions/SKILL.md` when touching:
57
+ - `src/contexts/authContext.tsx`
58
+ - `src/utils/auth.ts`
59
+ - `src/configs/authConfig.ts`
60
+ - `src/types/auth.ts`
61
+ - protected pages under `src/app/[lang]/(dashboard)/(private)/**`
62
+ - auth-sensitive API routes under `src/app/api/**`
63
+
64
+ 6. **Run quality review and produce report**
65
+ - Run `.agent/skills/react-quality-review/SKILL.md`.
66
+ - Create `Documentation/reports/REVIEW_REPORT.md` from `.agent/templates/REVIEW_REPORT.md`.
67
+ - Apply required refactors from findings.
68
+
69
+ 7. **Generate and execute test plan**
70
+ - Create the test plan in `Documentation/features/<feature_name>/TEST_PLAN.md` or `Documentation/plans/TEST_PLAN.md` from `.agent/templates/TEST_PLAN.md`.
71
+ - Add/update relevant tests (unit/integration/manual).
72
+
73
+ 8. **Run test commands**
74
+ - Run available scripts (`npm run test`, `npm run lint`, feature-specific tests).
75
+ - Record command outcomes in the test plan file (Documentation/plans or Documentation/features/<feature_name>/).
76
+
77
+ 9. **Update core memory**
78
+ - Append the completed module or feature summary to `project-memory/core-memory.md`.
79
+ - Include files changed, decisions made, tests run, and follow-up notes for future work.
80
+
81
+ 10. **Final output**
82
+ - Return summary of files changed, verification steps, and test results.
@@ -0,0 +1,101 @@
1
+ ---
2
+ description: Executes a SINGLE module from a feature folder. Implements, tests, reviews, fixes, and updates docs for that one module only. Invoked per-module by the orchestrator script (scripts/run-feature-modules.sh).
3
+ ---
4
+
5
+ You are a single-module runner. You execute **exactly one module** of a multi-module feature. The orchestrator script (`scripts/run-feature-modules.sh`) handles sequencing — your job is the full lifecycle for the module number you are given.
6
+
7
+ **Orchestrator gate:** After each module’s Cursor agent session completes successfully, the script runs `npm run build` and `npm run test` before launching the next module. If that gate fails, fix the tree and resume from the same module number. Each agent invocation uses `--model auto` (do not change the script to a fixed model for those sessions).
8
+
9
+ ## Input (provided in prompt)
10
+
11
+ - **Feature folder** — e.g. `documentation/features/categories_and_amazon_catalog`
12
+ - **Feature name** — derived from folder, e.g. `categories_and_amazon_catalog`
13
+ - **Module number** — e.g. `1`
14
+ - **Module file** — path to the module prompt, e.g. `documentation/features/.../..._MODULE_1_MODEL_LAYER.md`
15
+
16
+ ---
17
+
18
+ ## Setup — Read foundational docs
19
+
20
+ Read these files first. They provide the rules and patterns you must follow.
21
+
22
+ | File | Why |
23
+ |------|-----|
24
+ | `project-memory/constitution.md` | Non-negotiable safety rules |
25
+ | `project-memory/quality-playbook.md` | Review checklist categories |
26
+ | `project-memory/core-memory.md` | Feature history and prior decisions |
27
+ | `.agent/workflows/build-feature-backend.workflow.md` | Implementation lifecycle phases |
28
+ | `.agent/workflows/add-new-api-feature-module.md` | Module placement rules |
29
+
30
+ ---
31
+
32
+ ## Step A — Implement
33
+
34
+ 1. **Read the module prompt file** (the path is given in your input).
35
+ 2. The prompt contains curated repo-map context and the full module specification. Follow it.
36
+ 3. **Implement.** The master plan was already user-approved. Proceed directly without stopping for approval.
37
+ 4. Follow `add-new-api-feature-module.md` for module placement and Do/Don't rules.
38
+
39
+ ## Step B — Test & Review (Auto-Approve)
40
+
41
+ Run tests and quality review. **Auto-approve all internal decisions** — no human gates.
42
+
43
+ 1. **Run tests**
44
+ - Scope to the feature area if possible (e.g. `npm run test -- --testPathPattern=<feature-name>`).
45
+ - Otherwise run `npm run test`.
46
+ - Fix all failures before proceeding.
47
+
48
+ 2. **Code review** — invoke `/react-quality-review` skill
49
+ - The skill audits React components and patterns against quality standards.
50
+ - Auto-approve its findings and fix any required issues identified.
51
+ - No human intervention — this is part of the module's autonomous workflow.
52
+
53
+ 3. **Fix and re-verify**
54
+ - If review found issues or tests failed, implement fixes.
55
+ - Re-run tests. If fixes touched reviewed code, re-check via `/react-quality-review` again.
56
+ - Repeat until tests pass and all required findings are resolved.
57
+ - If a fix cannot be resolved after two attempts, exit with failure — the orchestrator will pause.
58
+
59
+ ## Step C — Commit & Push
60
+
61
+ Once all tests pass and review is clean:
62
+
63
+ 1. **Create or update MODULE.md**
64
+ - In the feature module directory (`src/components/<feature-name>/MODULE.md` or similar), using `.agent/templates/MODULE.md`.
65
+
66
+ 2. **Update core-memory**
67
+ - Update `project-memory/core-memory.md` feature progress table:
68
+ - `<feature_name>: Module <N> completed (<brief description>); next: Module <N+1>.`
69
+
70
+ 3. **Commit the module**
71
+ - `git add .` (all changes from this module)
72
+ - `git commit -m "feat(MODULE_<N>): <brief description of what this module adds>"`
73
+ - Example: `git commit -m "feat(MODULE_2): Add PDF export dialog with queue management"`
74
+
75
+ 4. **Push to remote**
76
+ - `git push origin HEAD` (push to your current branch)
77
+ - If pushing to a protected branch, ensure your branch is up to date first
78
+
79
+ 5. **Update repo-map** (if module added new routes/components/services)
80
+ - Add/update the module entry in `project-memory/repo-map.md` (relevant sections).
81
+ - If a new reusable component, hook, or service was introduced, add it to the Reusable Components Registry.
82
+
83
+ ---
84
+
85
+ ## Output
86
+
87
+ When done, print a summary with:
88
+
89
+ - What was implemented (key files created/modified)
90
+ - Test results (pass/fail, coverage)
91
+ - Review outcomes (findings, fixes applied)
92
+ - Any remaining issues or deferred work
93
+
94
+ ---
95
+
96
+ ## Do not
97
+
98
+ - Implement more than one module. You handle exactly the module number given.
99
+ - Skip Step B (verify). Always test, review, fix, and update docs.
100
+ - Stop for human confirmation.
101
+ - Create unnecessary files outside the scope of this module.