@kodus/cli 0.4.4 → 0.4.7
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 +110 -7
- package/dist/agents/agent.interface.d.ts.map +1 -1
- package/dist/agents/claude-code.agent.d.ts.map +1 -1
- package/dist/agents/claude-code.agent.js +16 -5
- package/dist/agents/claude-code.agent.js.map +1 -1
- package/dist/agents/codex.agent.d.ts +14 -0
- package/dist/agents/codex.agent.d.ts.map +1 -0
- package/dist/agents/codex.agent.js +77 -0
- package/dist/agents/codex.agent.js.map +1 -0
- package/dist/agents/cursor.agent.d.ts +29 -0
- package/dist/agents/cursor.agent.d.ts.map +1 -0
- package/dist/agents/cursor.agent.js +85 -0
- package/dist/agents/cursor.agent.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +8 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/config.d.ts +8 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +84 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/hook/index.js +4 -2
- package/dist/commands/hook/index.js.map +1 -1
- package/dist/commands/hook/install.d.ts +3 -1
- package/dist/commands/hook/install.d.ts.map +1 -1
- package/dist/commands/hook/install.js +76 -37
- package/dist/commands/hook/install.js.map +1 -1
- package/dist/commands/hook/uninstall.d.ts +4 -1
- package/dist/commands/hook/uninstall.d.ts.map +1 -1
- package/dist/commands/hook/uninstall.js +54 -19
- package/dist/commands/hook/uninstall.js.map +1 -1
- package/dist/commands/memory/capture.d.ts.map +1 -1
- package/dist/commands/memory/capture.js +3 -36
- package/dist/commands/memory/capture.js.map +1 -1
- package/dist/commands/memory/disable.d.ts +4 -1
- package/dist/commands/memory/disable.d.ts.map +1 -1
- package/dist/commands/memory/disable.js +58 -15
- package/dist/commands/memory/disable.js.map +1 -1
- package/dist/commands/memory/enable.d.ts.map +1 -1
- package/dist/commands/memory/enable.js +24 -7
- package/dist/commands/memory/enable.js.map +1 -1
- package/dist/commands/memory/hooks.d.ts +2 -1
- package/dist/commands/memory/hooks.d.ts.map +1 -1
- package/dist/commands/memory/hooks.js +13 -5
- package/dist/commands/memory/hooks.js.map +1 -1
- package/dist/commands/memory/index.d.ts.map +1 -1
- package/dist/commands/memory/index.js +13 -3
- package/dist/commands/memory/index.js.map +1 -1
- package/dist/commands/memory/session-hooks/claude-code.d.ts.map +1 -1
- package/dist/commands/memory/session-hooks/claude-code.js +4 -1
- package/dist/commands/memory/session-hooks/claude-code.js.map +1 -1
- package/dist/commands/memory/session-hooks/codex.d.ts +2 -0
- package/dist/commands/memory/session-hooks/codex.d.ts.map +1 -0
- package/dist/commands/memory/session-hooks/codex.js +16 -0
- package/dist/commands/memory/session-hooks/codex.js.map +1 -0
- package/dist/commands/memory/session-hooks/cursor.d.ts.map +1 -1
- package/dist/commands/memory/session-hooks/cursor.js +7 -12
- package/dist/commands/memory/session-hooks/cursor.js.map +1 -1
- package/dist/commands/memory/session-hooks/index.d.ts.map +1 -1
- package/dist/commands/memory/session-hooks/index.js +8 -3
- package/dist/commands/memory/session-hooks/index.js.map +1 -1
- package/dist/commands/memory/session-hooks/shared.d.ts.map +1 -1
- package/dist/commands/memory/session-hooks/shared.js +7 -31
- package/dist/commands/memory/session-hooks/shared.js.map +1 -1
- package/dist/commands/memory/session-hooks-install-codex.d.ts +19 -0
- package/dist/commands/memory/session-hooks-install-codex.d.ts.map +1 -0
- package/dist/commands/memory/session-hooks-install-codex.js +91 -0
- package/dist/commands/memory/session-hooks-install-codex.js.map +1 -0
- package/dist/commands/memory/session-hooks-install-cursor.d.ts +9 -0
- package/dist/commands/memory/session-hooks-install-cursor.d.ts.map +1 -0
- package/dist/commands/memory/session-hooks-install-cursor.js +119 -0
- package/dist/commands/memory/session-hooks-install-cursor.js.map +1 -0
- package/dist/commands/memory/session-hooks-install.d.ts.map +1 -1
- package/dist/commands/memory/session-hooks-install.js +61 -27
- package/dist/commands/memory/session-hooks-install.js.map +1 -1
- package/dist/commands/pr.d.ts.map +1 -1
- package/dist/commands/pr.js +71 -20
- package/dist/commands/pr.js.map +1 -1
- package/dist/commands/review.d.ts.map +1 -1
- package/dist/commands/review.js +76 -24
- package/dist/commands/review.js.map +1 -1
- package/dist/commands/schema.d.ts +3 -0
- package/dist/commands/schema.d.ts.map +1 -0
- package/dist/commands/schema.js +62 -0
- package/dist/commands/schema.js.map +1 -0
- package/dist/commands/skills.d.ts +3 -0
- package/dist/commands/skills.d.ts.map +1 -0
- package/dist/commands/skills.js +85 -0
- package/dist/commands/skills.js.map +1 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +3 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +17 -2
- package/dist/commands/update.js.map +1 -1
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/services/api/api.interface.d.ts +7 -4
- package/dist/services/api/api.interface.d.ts.map +1 -1
- package/dist/services/api/api.real.d.ts +2 -1
- package/dist/services/api/api.real.d.ts.map +1 -1
- package/dist/services/api/api.real.js +36 -10
- package/dist/services/api/api.real.js.map +1 -1
- package/dist/services/api/sessions.api.d.ts.map +1 -1
- package/dist/services/api/sessions.api.js +12 -6
- package/dist/services/api/sessions.api.js.map +1 -1
- package/dist/services/git-hooks.service.d.ts.map +1 -1
- package/dist/services/git-hooks.service.js +14 -6
- package/dist/services/git-hooks.service.js.map +1 -1
- package/dist/services/git.service.d.ts.map +1 -1
- package/dist/services/git.service.js +6 -2
- package/dist/services/git.service.js.map +1 -1
- package/dist/services/hook-logger.service.d.ts.map +1 -1
- package/dist/services/hook-logger.service.js +2 -1
- package/dist/services/hook-logger.service.js.map +1 -1
- package/dist/services/lifecycle.service.d.ts +1 -0
- package/dist/services/lifecycle.service.d.ts.map +1 -1
- package/dist/services/lifecycle.service.js +101 -16
- package/dist/services/lifecycle.service.js.map +1 -1
- package/dist/services/repo-config.service.d.ts +22 -0
- package/dist/services/repo-config.service.d.ts.map +1 -0
- package/dist/services/repo-config.service.js +87 -0
- package/dist/services/repo-config.service.js.map +1 -0
- package/dist/services/review.service.d.ts +0 -3
- package/dist/services/review.service.d.ts.map +1 -1
- package/dist/services/review.service.js.map +1 -1
- package/dist/services/session-local.service.d.ts +16 -0
- package/dist/services/session-local.service.d.ts.map +1 -1
- package/dist/services/session-local.service.js +49 -0
- package/dist/services/session-local.service.js.map +1 -1
- package/dist/services/transcript.service.d.ts.map +1 -1
- package/dist/services/transcript.service.js +44 -13
- package/dist/services/transcript.service.js.map +1 -1
- package/dist/types/command-output.d.ts +29 -0
- package/dist/types/command-output.d.ts.map +1 -0
- package/dist/types/command-output.js +2 -0
- package/dist/types/command-output.js.map +1 -0
- package/dist/types/index.d.ts +18 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/session-events.d.ts.map +1 -1
- package/dist/types/session.d.ts +3 -1
- package/dist/types/session.d.ts.map +1 -1
- package/dist/types/session.js +5 -1
- package/dist/types/session.js.map +1 -1
- package/dist/utils/banner.d.ts.map +1 -1
- package/dist/utils/banner.js +2 -0
- package/dist/utils/banner.js.map +1 -1
- package/dist/utils/command-context.d.ts +12 -0
- package/dist/utils/command-context.d.ts.map +1 -0
- package/dist/utils/command-context.js +15 -0
- package/dist/utils/command-context.js.map +1 -0
- package/dist/utils/command-errors.d.ts +12 -0
- package/dist/utils/command-errors.d.ts.map +1 -0
- package/dist/utils/command-errors.js +88 -0
- package/dist/utils/command-errors.js.map +1 -0
- package/dist/utils/command-output.d.ts +5 -0
- package/dist/utils/command-output.d.ts.map +1 -0
- package/dist/utils/command-output.js +46 -0
- package/dist/utils/command-output.js.map +1 -0
- package/dist/utils/command-schema.d.ts +29 -0
- package/dist/utils/command-schema.d.ts.map +1 -0
- package/dist/utils/command-schema.js +74 -0
- package/dist/utils/command-schema.js.map +1 -0
- package/dist/utils/field-mask.d.ts +2 -0
- package/dist/utils/field-mask.d.ts.map +1 -0
- package/dist/utils/field-mask.js +93 -0
- package/dist/utils/field-mask.js.map +1 -0
- package/dist/utils/input-validation.d.ts +11 -0
- package/dist/utils/input-validation.d.ts.map +1 -0
- package/dist/utils/input-validation.js +73 -0
- package/dist/utils/input-validation.js.map +1 -0
- package/dist/utils/install-instructions.d.ts +6 -0
- package/dist/utils/install-instructions.d.ts.map +1 -0
- package/dist/utils/install-instructions.js +18 -0
- package/dist/utils/install-instructions.js.map +1 -0
- package/dist/utils/skills-sync.d.ts +39 -0
- package/dist/utils/skills-sync.d.ts.map +1 -0
- package/dist/utils/skills-sync.js +396 -0
- package/dist/utils/skills-sync.js.map +1 -0
- package/dist/utils/skills.d.ts +7 -0
- package/dist/utils/skills.d.ts.map +1 -1
- package/dist/utils/skills.js +61 -22
- package/dist/utils/skills.js.map +1 -1
- package/dist/utils/stream-input.d.ts +13 -0
- package/dist/utils/stream-input.d.ts.map +1 -0
- package/dist/utils/stream-input.js +36 -0
- package/dist/utils/stream-input.js.map +1 -0
- package/package.json +10 -8
- package/skills/README.md +12 -5
- package/skills/kodus-business-rules-validation/SKILL.md +65 -0
- package/skills/kodus-pr-suggestions-resolver/SKILL.md +6 -6
- package/skills/kodus-review/SKILL.md +20 -7
- package/skills/kodus-review-dev/SKILL.md +22 -8
- package/skills/business-rules-validation/SKILL.md +0 -43
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodus/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "Kodus CLI - AI-powered code review from your terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -24,11 +24,13 @@
|
|
|
24
24
|
"test": "vitest run",
|
|
25
25
|
"test:watch": "vitest",
|
|
26
26
|
"test:integration": "yarn build && vitest run --config vitest.integration.config.ts",
|
|
27
|
+
"test:installer": "sh tests/install_business_rules_validation_test.sh",
|
|
27
28
|
"lint": "eslint src --ext .ts",
|
|
28
29
|
"lint:fix": "eslint src --ext .ts --fix",
|
|
29
30
|
"format": "prettier --write .",
|
|
30
31
|
"format:check": "prettier --check .",
|
|
31
32
|
"check": "yarn format:check && yarn lint",
|
|
33
|
+
"skills:sync": "node scripts/sync-skills-aliases.mjs",
|
|
32
34
|
"skills:validate": "node scripts/validate-skills.mjs",
|
|
33
35
|
"skills:prompt": "node scripts/skills-to-prompt.mjs --format=xml",
|
|
34
36
|
"skills:prompt:json": "node scripts/skills-to-prompt.mjs --format=json",
|
|
@@ -51,13 +53,13 @@
|
|
|
51
53
|
"clipboardy": "^5.3.1",
|
|
52
54
|
"commander": "^14.0.3",
|
|
53
55
|
"execa": "^9.6.1",
|
|
54
|
-
"figlet": "^1.
|
|
56
|
+
"figlet": "^1.11.0",
|
|
55
57
|
"gradient-string": "^3.0.0",
|
|
56
58
|
"latest-version": "^9.0.0",
|
|
57
59
|
"node-machine-id": "^1.1.12",
|
|
58
60
|
"open": "^11.0.0",
|
|
59
61
|
"ora": "^9.3.0",
|
|
60
|
-
"simple-git": "^3.
|
|
62
|
+
"simple-git": "^3.33.0",
|
|
61
63
|
"update-notifier": "^7.3.1",
|
|
62
64
|
"yaml": "^2.8.2"
|
|
63
65
|
},
|
|
@@ -65,12 +67,12 @@
|
|
|
65
67
|
"@eslint/js": "^10.0.1",
|
|
66
68
|
"@types/figlet": "^1.7.0",
|
|
67
69
|
"@types/gradient-string": "^1.1.6",
|
|
68
|
-
"@types/node": "^25.
|
|
70
|
+
"@types/node": "^25.4.0",
|
|
69
71
|
"@types/update-notifier": "^6.0.8",
|
|
70
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
71
|
-
"@typescript-eslint/parser": "^8.
|
|
72
|
-
"eslint": "^10.0.
|
|
73
|
-
"prettier": "^3.
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
73
|
+
"@typescript-eslint/parser": "^8.57.0",
|
|
74
|
+
"eslint": "^10.0.3",
|
|
75
|
+
"prettier": "^3.8.1",
|
|
74
76
|
"typescript": "^5.9.3",
|
|
75
77
|
"vitest": "^4.0.18"
|
|
76
78
|
},
|
package/skills/README.md
CHANGED
|
@@ -8,8 +8,8 @@ This directory contains the agent skills shipped with the Kodus CLI repository.
|
|
|
8
8
|
- Run local Kodus code review for workspace changes with the installed CLI.
|
|
9
9
|
- `kodus-review-dev`
|
|
10
10
|
- Run the local Kodus CLI build against a dev/localhost API using `scripts/run-local-cli.sh` (explicit dev request only).
|
|
11
|
-
- `business-rules-validation`
|
|
12
|
-
-
|
|
11
|
+
- `kodus-business-rules-validation`
|
|
12
|
+
- Canonical skill name for business rules validation in installers and multi-agent integrations.
|
|
13
13
|
- `kodus-pr-suggestions-resolver`
|
|
14
14
|
- Fetch PR suggestions and apply fixes with judgment.
|
|
15
15
|
|
|
@@ -20,10 +20,12 @@ This directory contains the agent skills shipped with the Kodus CLI repository.
|
|
|
20
20
|
- If the request is delivery action (commit/push/merge) and no fresh review ran, ask to run Kodus review first.
|
|
21
21
|
- User explicitly mentions local/dev CLI execution (`node dist/index.js`, `localhost:3001`, `KODUS_API_URL`, dev API/QA API)
|
|
22
22
|
- Use `kodus-review-dev` instead of `kodus-review`.
|
|
23
|
-
- User mentions `business validation`, `acceptance criteria`, `local diff vs task`, `kodus pr business-validation`
|
|
24
|
-
- Use `business-rules-validation`.
|
|
23
|
+
- User mentions `business validation`, `acceptance criteria`, `local diff vs task`, `implementation vs task`, `kodus pr business-validation`
|
|
24
|
+
- Use `kodus-business-rules-validation`.
|
|
25
25
|
- User asks to apply Kodus PR suggestions
|
|
26
26
|
- Use `kodus-pr-suggestions-resolver`.
|
|
27
|
+
- User asks to validate local implementation against a task, acceptance criteria, or business rules
|
|
28
|
+
- Use `kodus-business-rules-validation`.
|
|
27
29
|
|
|
28
30
|
## Notes
|
|
29
31
|
|
|
@@ -31,12 +33,17 @@ This directory contains the agent skills shipped with the Kodus CLI repository.
|
|
|
31
33
|
- Some skills include helper scripts in `skills/<skill-name>/scripts/`.
|
|
32
34
|
- Packaging these files in the npm artifact makes them available to external installers and local integration tooling.
|
|
33
35
|
- Shipping the files here does not, by itself, install them into Claude Code, Cursor, Codex, or other agents. That installation step still depends on the integration tooling you use.
|
|
34
|
-
- `kodus
|
|
36
|
+
- `kodus skills install` installs bundled skills in detected local agent roots.
|
|
37
|
+
- `kodus skills resync` re-syncs bundled skills in detected local agent directories.
|
|
38
|
+
- `kodus skills uninstall` removes bundled managed skills from detected local agent directories.
|
|
39
|
+
- For full multi-agent bootstrap/setup, use the platform installer tooling (`install.sh` for macOS/Linux, `install.ps1` for Windows PowerShell).
|
|
35
40
|
|
|
36
41
|
## For Integrators
|
|
37
42
|
|
|
38
43
|
- Validate skill structure and metadata:
|
|
39
44
|
- `npm run skills:validate`
|
|
45
|
+
- Sync legacy alias folders from canonical skills:
|
|
46
|
+
- `npm run skills:sync`
|
|
40
47
|
- Generate prompt metadata as XML (`<available_skills>`):
|
|
41
48
|
- `npm run skills:prompt`
|
|
42
49
|
- Generate prompt metadata as JSON:
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kodus-business-rules-validation
|
|
3
|
+
description: Use when the user wants Kodus to validate local diff changes against task requirements, acceptance criteria, or business rules via `kodus pr business-validation`, especially for implementation-vs-task or merge readiness checks.
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: Requires Kodus CLI auth plus Kodus task-management integration (Jira/Linear/Notion/ClickUp) for useful task context retrieval.
|
|
6
|
+
metadata:
|
|
7
|
+
author: Kodus
|
|
8
|
+
version: '1.0'
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Kodus Business Rules Validation
|
|
12
|
+
|
|
13
|
+
## Goal
|
|
14
|
+
|
|
15
|
+
Run Kodus business-rules validation from the current repository diff only.
|
|
16
|
+
|
|
17
|
+
## Required Inputs
|
|
18
|
+
|
|
19
|
+
- One local diff scope:
|
|
20
|
+
- default working tree diff
|
|
21
|
+
- or `--staged`
|
|
22
|
+
- or `--branch <name>`
|
|
23
|
+
- or `--commit <sha>`
|
|
24
|
+
- or `[files...]`
|
|
25
|
+
- Optional task reference:
|
|
26
|
+
- `--task-url <url>` or `--task-id <id>`
|
|
27
|
+
- Do not pass both.
|
|
28
|
+
|
|
29
|
+
## When to Use
|
|
30
|
+
|
|
31
|
+
- The user asks for business-validation, business validation, business rules validation, or acceptance-criteria validation
|
|
32
|
+
- The user wants to check local implementation vs task requirements
|
|
33
|
+
- The user mentions local business validation or `kodus pr business-validation`
|
|
34
|
+
|
|
35
|
+
Do not use this skill as a substitute for `kodus review`. Local review and business-rules validation are different flows.
|
|
36
|
+
|
|
37
|
+
## Workflow
|
|
38
|
+
|
|
39
|
+
1. Choose the local scope.
|
|
40
|
+
|
|
41
|
+
- Default working tree diff when no scope flag is provided.
|
|
42
|
+
- Use only one of `--staged`, `--branch`, `--commit`, or `[files...]`.
|
|
43
|
+
|
|
44
|
+
2. Build and run the command.
|
|
45
|
+
|
|
46
|
+
Examples:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
kodus pr business-validation
|
|
50
|
+
kodus pr business-validation --staged --task-id KC-1441
|
|
51
|
+
kodus pr business-validation --branch main --task-id KC-1441
|
|
52
|
+
kodus pr business-validation --commit HEAD~1 --task-id KC-1441
|
|
53
|
+
kodus pr business-validation src/service.ts src/use-case.ts --task-id KC-1441
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
3. Interpret the result.
|
|
57
|
+
|
|
58
|
+
- `Mode: local diff` means validation over the provided local diff scope.
|
|
59
|
+
- If output says missing MCP/task context, report that directly and request integration/context setup.
|
|
60
|
+
|
|
61
|
+
## Notes
|
|
62
|
+
|
|
63
|
+
- `kodus review` does not trigger this flow.
|
|
64
|
+
- Prefer `--task-id` or `--task-url` when the task is not obvious from local context.
|
|
65
|
+
- `KC-1441`-style keys are valid.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kodus-pr-suggestions-resolver
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when the user wants to fetch, triage, or implement Kodus suggestions for an existing remote pull request via `kodus pr suggestions`, `--pr-url`, or `--pr-number`.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Kodus PR Suggestions Resolver
|
|
@@ -14,8 +14,8 @@ Fetch PR suggestions via Kodus CLI, triage each suggestion against the PR goal,
|
|
|
14
14
|
### 1) Collect the PR target
|
|
15
15
|
|
|
16
16
|
- If the user did not provide a target, ask for one of:
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
- `--pr-url <url>`
|
|
18
|
+
- `--pr-number <number>` with `--repo-id <id>`
|
|
19
19
|
- If multiple are provided, prefer `--pr-url`.
|
|
20
20
|
|
|
21
21
|
### 2) Run Kodus suggestions
|
|
@@ -36,9 +36,9 @@ kodus pr suggestions --pr-number <number> --repo-id <id>
|
|
|
36
36
|
|
|
37
37
|
- Extract or confirm the PR goal from the user or PR context.
|
|
38
38
|
- For each suggestion:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
- Verify it does not conflict with the PR objective.
|
|
40
|
+
- Prefer small, low-risk changes that improve the PR without changing scope.
|
|
41
|
+
- Skip suggestions that are irrelevant, risky, or scope-expanding; note why.
|
|
42
42
|
|
|
43
43
|
### 4) Apply fixes one by one
|
|
44
44
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kodus-review
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when the user wants Kodus to review local changes, run `kodus review` or `--prompt-only`, fix Kodus review findings, or check commit, push, or merge readiness.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Kodus Review
|
|
@@ -9,32 +9,45 @@ description: Use when asked to review code with Kodus, run `kodus review`, use `
|
|
|
9
9
|
|
|
10
10
|
Use the Kodus CLI to review changes and resolve issues. Prefer machine-friendly output via `--prompt-only`, then apply fixes in code.
|
|
11
11
|
|
|
12
|
+
If the request is to validate local changes against business rules, task requirements, or acceptance criteria, use `kodus-business-rules-validation` instead. `kodus review` does not trigger local business validation.
|
|
13
|
+
|
|
14
|
+
## Trigger Hints
|
|
15
|
+
|
|
16
|
+
- Treat mentions of `review`, `commit`, `push`, `open PR`, `merge`, `quality gate`, or `ready to ship` as triggers for this skill.
|
|
17
|
+
- For commit/push/merge requests, proactively ask to run Kodus review first when a fresh review has not run yet in the current task.
|
|
18
|
+
|
|
12
19
|
## Workflow
|
|
13
20
|
|
|
14
|
-
1
|
|
21
|
+
1. Ensure Kodus CLI is available.
|
|
22
|
+
|
|
15
23
|
- Run `kodus --help` to confirm.
|
|
16
24
|
- If missing, ask the user to install the CLI and stop.
|
|
17
25
|
|
|
18
|
-
2
|
|
19
|
-
|
|
26
|
+
2. Ensure authentication if required.
|
|
27
|
+
|
|
28
|
+
- If `kodus review` fails with auth, ask the human to authenticate with `kodus auth login` in their terminal, then retry after they confirm.
|
|
20
29
|
- For team keys, use `kodus auth team-key --key <key>` when provided by the user.
|
|
21
30
|
|
|
22
|
-
3
|
|
31
|
+
3. Run review using prompt-only output.
|
|
32
|
+
|
|
23
33
|
- Default: `kodus review --prompt-only`.
|
|
24
34
|
- If user specifies files: `kodus review --prompt-only <files...>`.
|
|
25
35
|
- If user asks for staged/commit/branch: add `--staged`, `--commit <sha>`, or `--branch <name>`.
|
|
26
36
|
- If user wants fast: add `--fast`.
|
|
27
37
|
|
|
28
|
-
4
|
|
38
|
+
4. Parse results and apply fixes.
|
|
39
|
+
|
|
29
40
|
- Use the output to locate files and lines.
|
|
30
41
|
- Make minimal, targeted changes to address each issue.
|
|
31
42
|
- If an issue is not actionable or is a false positive, explain why and skip.
|
|
32
43
|
|
|
33
|
-
5
|
|
44
|
+
5. Re-run review if needed.
|
|
45
|
+
|
|
34
46
|
- After fixes, rerun `kodus review --prompt-only` to confirm issues are resolved.
|
|
35
47
|
|
|
36
48
|
## Notes
|
|
37
49
|
|
|
38
50
|
- Prefer `--prompt-only` for predictable parsing.
|
|
39
51
|
- Avoid `--interactive` unless the user explicitly asks.
|
|
52
|
+
- Redirect PR-vs-task validation requests to `kodus-business-rules-validation`.
|
|
40
53
|
- Use `review --help` to undertstand review possibilities
|
|
@@ -1,41 +1,55 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kodus-review-dev
|
|
3
|
-
description: Use when the user
|
|
3
|
+
description: Use when the user wants Kodus to review local changes through a local CLI build or non-production API such as `node dist/index.js`, localhost, or QA, including local `--prompt-only` flows.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Kodus Review (Dev)
|
|
7
7
|
|
|
8
8
|
## Goal
|
|
9
9
|
|
|
10
|
-
Use the local Kodus CLI
|
|
10
|
+
Use the local Kodus CLI build in this repository to review changes and resolve issues. Prefer machine-friendly output via `--prompt-only`, then apply fixes in code.
|
|
11
|
+
|
|
12
|
+
If the request is to validate local changes against business rules, task requirements, or acceptance criteria, use `kodus-business-rules-validation` instead. The local review command does not trigger local business validation.
|
|
13
|
+
|
|
14
|
+
## Trigger Hints
|
|
15
|
+
|
|
16
|
+
- Treat mentions of `review`, `commit`, `push`, `open PR`, `merge`, `quality gate`, or `ready to ship` as triggers for this skill.
|
|
17
|
+
- For commit/push/merge requests, proactively ask to run local Kodus review first when a fresh review has not run yet in the current task.
|
|
11
18
|
|
|
12
19
|
## Workflow
|
|
13
20
|
|
|
14
|
-
1
|
|
21
|
+
1. Ensure local dev command is available.
|
|
22
|
+
|
|
15
23
|
- Prefer the helper script (do not rely on aliases).
|
|
16
24
|
- Use: `skills/kodus-review-dev/scripts/run-local-cli.sh --help`.
|
|
17
25
|
- If missing or failing, ask the user to confirm the local path and env values, then stop.
|
|
18
26
|
|
|
19
|
-
2
|
|
20
|
-
|
|
27
|
+
2. Ensure authentication if required.
|
|
28
|
+
|
|
29
|
+
- If the review fails with auth, ask the human to authenticate with `kodus auth login` in their terminal, then retry after they confirm.
|
|
21
30
|
- For team keys, use `auth team-key --key <key>` with the same helper script when provided by the user.
|
|
22
31
|
|
|
23
|
-
3
|
|
32
|
+
3. Run review using prompt-only output.
|
|
33
|
+
|
|
24
34
|
- Default: `skills/kodus-review-dev/scripts/run-local-cli.sh review --prompt-only`.
|
|
25
35
|
- If user specifies files: append `<files...>`.
|
|
26
36
|
- If user asks for staged/commit/branch: add `--staged`, `--commit <sha>`, or `--branch <name>`.
|
|
27
37
|
- If user wants fast: add `--fast`.
|
|
28
38
|
|
|
29
|
-
4
|
|
39
|
+
4. Parse results and apply fixes.
|
|
40
|
+
|
|
30
41
|
- Use the output to locate files and lines.
|
|
31
42
|
- Make minimal, targeted changes to address each issue.
|
|
32
43
|
- If an issue is not actionable or is a false positive, explain why and skip.
|
|
33
44
|
|
|
34
|
-
5
|
|
45
|
+
5. Re-run review if needed.
|
|
46
|
+
|
|
35
47
|
- After fixes, rerun `skills/kodus-review-dev/scripts/run-local-cli.sh review --prompt-only` to confirm issues are resolved.
|
|
36
48
|
|
|
37
49
|
## Notes
|
|
38
50
|
|
|
39
51
|
- Prefer `--prompt-only` for predictable parsing.
|
|
40
52
|
- Avoid `--interactive` unless the user explicitly asks.
|
|
53
|
+
- Redirect PR-vs-task validation requests to `kodus-business-rules-validation`.
|
|
54
|
+
- The helper script respects `KODUS_API_URL`, `KODUS_VERBOSE`, and `KODUS_CLI_ENTRYPOINT`.
|
|
41
55
|
- Do not use `--fix` unless the user explicitly asks.
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: business-rules-validation
|
|
3
|
-
description: Use when asked for business validation, acceptance-criteria validation, PR-vs-task checks, or merge readiness with task compliance. Run `kodus pr business-validation` against local diff scope and optional task context.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Business Rules Validation
|
|
7
|
-
|
|
8
|
-
## Goal
|
|
9
|
-
|
|
10
|
-
Run Kodus business-rules validation from local repository diff scope and optional task reference.
|
|
11
|
-
|
|
12
|
-
## Workflow
|
|
13
|
-
|
|
14
|
-
1) Ensure Kodus CLI is available.
|
|
15
|
-
- Run `kodus --help` to confirm.
|
|
16
|
-
- If missing, ask the user to install the CLI and stop.
|
|
17
|
-
|
|
18
|
-
2) Ensure authentication if required.
|
|
19
|
-
- If command fails with auth, run `kodus auth login` (interactive) and retry.
|
|
20
|
-
- For team keys, use `kodus auth team-key --key <key>` when provided by the user.
|
|
21
|
-
|
|
22
|
-
3) Choose local diff scope.
|
|
23
|
-
- Default (no scope flags): working tree diff.
|
|
24
|
-
- Optional explicit scope: `--staged`, `--branch <name>`, `--commit <sha>`, or `[files...]`.
|
|
25
|
-
- Use only one scope per command.
|
|
26
|
-
|
|
27
|
-
4) Run business validation.
|
|
28
|
-
- Examples:
|
|
29
|
-
```bash
|
|
30
|
-
kodus pr business-validation --staged --task-id KC-1441
|
|
31
|
-
kodus pr business-validation --branch main --task-id KC-1441
|
|
32
|
-
kodus pr business-validation src/service.ts src/use-case.ts --task-id KC-1441
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
5) Interpret and apply.
|
|
36
|
-
- Parse output and identify mismatches against requirements.
|
|
37
|
-
- Apply focused changes.
|
|
38
|
-
- Re-run the same command until output is acceptable.
|
|
39
|
-
|
|
40
|
-
## Notes
|
|
41
|
-
|
|
42
|
-
- Use `--task-id` or `--task-url` when available.
|
|
43
|
-
- `kodus review` and business validation are different flows.
|