cortex-tms 2.3.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +185 -117
- package/bin/cortex-tms.js +0 -0
- package/dist/__tests__/init.test.js +4 -3
- package/dist/__tests__/init.test.js.map +1 -1
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/migrate.d.ts +12 -0
- package/dist/commands/migrate.d.ts.map +1 -0
- package/dist/commands/migrate.js +183 -0
- package/dist/commands/migrate.js.map +1 -0
- package/dist/commands/prompt.d.ts +4 -0
- package/dist/commands/prompt.d.ts.map +1 -0
- package/dist/commands/prompt.js +95 -0
- package/dist/commands/prompt.js.map +1 -0
- package/dist/types/cli.d.ts +1 -0
- package/dist/types/cli.d.ts.map +1 -1
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +2 -0
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/prompt-parser.d.ts +9 -0
- package/dist/utils/prompt-parser.d.ts.map +1 -0
- package/dist/utils/prompt-parser.js +50 -0
- package/dist/utils/prompt-parser.js.map +1 -0
- package/dist/utils/templates.d.ts +6 -1
- package/dist/utils/templates.d.ts.map +1 -1
- package/dist/utils/templates.js +31 -3
- package/dist/utils/templates.js.map +1 -1
- package/package.json +14 -14
- package/templates/.github/copilot-instructions.md +2 -0
- package/templates/CLAUDE.md +2 -0
- package/templates/FUTURE-ENHANCEMENTS.md +2 -0
- package/templates/NEXT-TASKS.md +2 -0
- package/templates/PROMPTS.md +55 -0
- package/templates/README.md +2 -0
- package/templates/docs/archive/v1.0-CHANGELOG.md +3 -0
- package/templates/docs/core/ARCHITECTURE.md +2 -0
- package/templates/docs/core/DECISIONS.md +2 -0
- package/templates/docs/core/DOMAIN-LOGIC.md +2 -0
- package/templates/docs/core/GLOSSARY.md +2 -0
- package/templates/docs/core/PATTERNS.md +2 -0
- package/templates/docs/core/SCHEMA.md +2 -0
- package/templates/docs/core/TROUBLESHOOTING.md +2 -0
package/templates/CLAUDE.md
CHANGED
|
@@ -16,3 +16,5 @@ Expert Senior Developer. Follow the **"Propose, Justify, Recommend"** framework.
|
|
|
16
16
|
2. Cross-reference `docs/core/PATTERNS.md` for existing code conventions.
|
|
17
17
|
3. If unsure of a term, check `docs/core/GLOSSARY.md`.
|
|
18
18
|
4. Execute TDD (Test-Driven Development).
|
|
19
|
+
|
|
20
|
+
<!-- @cortex-tms-version 2.3.0 -->
|
|
@@ -77,3 +77,5 @@ A task moves from FUTURE → NEXT when:
|
|
|
77
77
|
### [YYYY-MM-DD] - [Rejected Idea Name]
|
|
78
78
|
**Why Rejected**: [Reason - e.g., "User research showed low demand", "Technical complexity too high"]
|
|
79
79
|
**Alternative**: [What we did instead - e.g., "Built simplified version in Sprint 3"]
|
|
80
|
+
|
|
81
|
+
<!-- @cortex-tms-version 2.3.0 -->
|
package/templates/NEXT-TASKS.md
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Cortex TMS: AI Prompt Library
|
|
2
|
+
|
|
3
|
+
This file contains project-aware prompt templates for streamlined AI collaboration. Use `cortex-tms prompt <name>` to quickly access these prompts.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## init-session
|
|
8
|
+
|
|
9
|
+
Review `NEXT-TASKS.md`, `docs/core/ARCHITECTURE.md`, and `CLAUDE.md`. Summarize current priorities and propose a step-by-step plan for the next task.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## feature
|
|
14
|
+
|
|
15
|
+
Implement `[FEATURE]`. First, check `ARCHITECTURE.md` for constraints, follow `PATTERNS.md` for style, and validate logic against `DOMAIN-LOGIC.md`.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## debug
|
|
20
|
+
|
|
21
|
+
I'm seeing `[ISSUE]`. Check `docs/core/TROUBLESHOOTING.md` for known issues, then trace the logic through `ARCHITECTURE.md` to find the failure point.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## review
|
|
26
|
+
|
|
27
|
+
Review the current changes against `PATTERNS.md`. Flag any violations of project conventions and suggest specific fixes.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## refactor
|
|
32
|
+
|
|
33
|
+
Refactor `[COMPONENT]`. Improve structure per `PATTERNS.md` while ensuring behavior remains strictly compliant with `DOMAIN-LOGIC.md`.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## decision
|
|
38
|
+
|
|
39
|
+
We need to decide on `[TOPIC]`. Draft a new Architecture Decision Record in `docs/core/DECISIONS.md` using the project's standard format.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## finish
|
|
44
|
+
|
|
45
|
+
Task complete. Execute the Maintenance Protocol: update `NEXT-TASKS.md`, sync truth to `docs/core/`, and suggest the next priority.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Usage Tips
|
|
50
|
+
|
|
51
|
+
- Replace placeholders like `[FEATURE]`, `[ISSUE]`, `[COMPONENT]`, `[TOPIC]` with your specific context
|
|
52
|
+
- Customize these prompts to match your team's vocabulary and workflow
|
|
53
|
+
- Run `cortex-tms prompt --list` to see all available prompts
|
|
54
|
+
|
|
55
|
+
<!-- @cortex-tms-version 2.3.0 -->
|
package/templates/README.md
CHANGED
|
@@ -81,3 +81,5 @@ This file documents **why** we made key technical decisions. When an AI agent or
|
|
|
81
81
|
- **Architecture**: See `docs/core/ARCHITECTURE.md` for technology stack
|
|
82
82
|
- **Patterns**: See `docs/core/PATTERNS.md` for implementation patterns
|
|
83
83
|
- **Glossary**: See `docs/core/GLOSSARY.md` for term definitions
|
|
84
|
+
|
|
85
|
+
<!-- @cortex-tms-version 2.3.0 -->
|
|
@@ -64,3 +64,5 @@ This file defines project-specific terminology, acronyms, and domain language to
|
|
|
64
64
|
- **Architecture**: See `docs/core/ARCHITECTURE.md` for system structure
|
|
65
65
|
- **Patterns**: See `docs/core/PATTERNS.md` for code conventions
|
|
66
66
|
- **Decisions**: See `docs/core/DECISIONS.md` for technology choices
|
|
67
|
+
|
|
68
|
+
<!-- @cortex-tms-version 2.3.0 -->
|
|
@@ -53,3 +53,5 @@ AI agents MUST follow this order before proposing or writing code:
|
|
|
53
53
|
1. Read `NEXT-TASKS.md` to understand the "Why" and "What."
|
|
54
54
|
2. Check `docs/core/PATTERNS.md` for existing canonical examples.
|
|
55
55
|
3. Propose -> Justify -> Recommend.
|
|
56
|
+
|
|
57
|
+
<!-- @cortex-tms-version 2.3.0 -->
|