ai-core-framework 0.1.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/.claude-plugin/plugin.json +21 -0
- package/.codex-plugin/plugin.json +35 -0
- package/.cursor-plugin/plugin.json +22 -0
- package/README.md +173 -0
- package/bin/ai-core-framework.js +110 -0
- package/core/README.md +162 -0
- package/core/agents/README.md +32 -0
- package/core/agents/business-analyst.md +269 -0
- package/core/agents/developer.md +375 -0
- package/core/agents/qa-tester.md +477 -0
- package/core/agents/scrum-master.md +136 -0
- package/core/agents/tech-lead.md +345 -0
- package/core/config/backlog.schema.json +38 -0
- package/core/config/docs-policy.default.json +37 -0
- package/core/config/release.schema.json +120 -0
- package/core/config/ticket.schema.json +253 -0
- package/core/rules/00-global-rules.md +373 -0
- package/core/rules/01-git-workflow.md +388 -0
- package/core/rules/02-code-quality.md +77 -0
- package/core/rules/03-security.md +78 -0
- package/core/rules/04-documentation.md +72 -0
- package/core/rules/05-testing-mandatory.md +374 -0
- package/core/rules/06-approval-gates.md +388 -0
- package/core/rules/07-definition-of-ready.md +112 -0
- package/core/rules/08-definition-of-done.md +149 -0
- package/core/scripts/ai-core.sh +456 -0
- package/core/scripts/generate-views.sh +210 -0
- package/core/scripts/install-codex-prompts.sh +127 -0
- package/core/scripts/log-user-request.sh +113 -0
- package/core/scripts/setup-project.sh +183 -0
- package/core/scripts/sync-platforms.sh +322 -0
- package/core/scripts/validate-audit-log.sh +73 -0
- package/core/scripts/validate-docs.sh +365 -0
- package/core/scripts/validate-permissions.sh +132 -0
- package/core/scripts/validate-state.sh +611 -0
- package/core/scripts/workflow.sh +513 -0
- package/core/skills/README.md +21 -0
- package/core/skills/ai-core-commands/SKILL.md +86 -0
- package/core/skills/brainstorming/SKILL.md +40 -0
- package/core/skills/development-implement-task/SKILL.md +308 -0
- package/core/skills/executing-ticket/SKILL.md +28 -0
- package/core/skills/git-branch-status/SKILL.md +56 -0
- package/core/skills/git-cleanup-branches/SKILL.md +57 -0
- package/core/skills/git-scan-untracked/SKILL.md +50 -0
- package/core/skills/meta-generate-views/SKILL.md +54 -0
- package/core/skills/meta-request-log/SKILL.md +61 -0
- package/core/skills/meta-sprint-report/SKILL.md +59 -0
- package/core/skills/meta-sync-platforms/SKILL.md +53 -0
- package/core/skills/meta-ticket-health/SKILL.md +61 -0
- package/core/skills/meta-validate-audit-log/SKILL.md +42 -0
- package/core/skills/meta-validate-docs/SKILL.md +58 -0
- package/core/skills/meta-validate-permissions/SKILL.md +53 -0
- package/core/skills/meta-validate-state/SKILL.md +58 -0
- package/core/skills/planning-analyze-requirements/SKILL.md +471 -0
- package/core/skills/planning-backlog-status/SKILL.md +57 -0
- package/core/skills/planning-document-existing-requirements/SKILL.md +246 -0
- package/core/skills/planning-estimate-task/SKILL.md +60 -0
- package/core/skills/planning-groom-ticket/SKILL.md +442 -0
- package/core/skills/planning-mark-ready/SKILL.md +111 -0
- package/core/skills/planning-plan-refactor/SKILL.md +66 -0
- package/core/skills/planning-plan-sprint/SKILL.md +112 -0
- package/core/skills/planning-prioritize-backlog/SKILL.md +62 -0
- package/core/skills/planning-write-plan/SKILL.md +68 -0
- package/core/skills/project-detect-stack/SKILL.md +71 -0
- package/core/skills/project-discover-codebase/SKILL.md +74 -0
- package/core/skills/project-setup-project/SKILL.md +113 -0
- package/core/skills/qa-bug-status/SKILL.md +52 -0
- package/core/skills/qa-report-bug/SKILL.md +518 -0
- package/core/skills/qa-smoke-test/SKILL.md +387 -0
- package/core/skills/qa-triage-bug/SKILL.md +62 -0
- package/core/skills/qa-verify-fix/SKILL.md +446 -0
- package/core/skills/release-hotfix/SKILL.md +117 -0
- package/core/skills/release-release/SKILL.md +123 -0
- package/core/skills/release-rollback/SKILL.md +62 -0
- package/core/skills/review-create-pr/SKILL.md +418 -0
- package/core/skills/review-merge-pr/SKILL.md +425 -0
- package/core/skills/review-techlead-review/SKILL.md +547 -0
- package/core/skills/using-ai-core/SKILL.md +72 -0
- package/core/skills/verification-before-done/SKILL.md +35 -0
- package/core/skills/writing-implementation-plan/SKILL.md +45 -0
- package/core/templates/ci/ai-core-governance.yml +112 -0
- package/core/templates/ci/node-pnpm.yml +35 -0
- package/core/templates/pm/retrospective-template.md +47 -0
- package/core/templates/pm/sprint-plan-template.md +45 -0
- package/core/templates/pr/pull-request-template.md +247 -0
- package/core/templates/project/CODEOWNERS +11 -0
- package/core/templates/project/docs-policy.json +3 -0
- package/core/templates/project/project-config.yaml +137 -0
- package/core/templates/project/project-structure.yaml +76 -0
- package/core/templates/qa/bug-report-template.md +371 -0
- package/core/templates/qa/test-plan-template.md +57 -0
- package/core/templates/release/release-record-template.json +67 -0
- package/core/templates/requirements/PRD-template.md +58 -0
- package/core/templates/requirements/user-story-template.md +381 -0
- package/core/templates/technical/ADR-template.md +46 -0
- package/core/templates/technical/refactor-plan-template.md +84 -0
- package/core/templates/technical/tech-design-template.md +71 -0
- package/core/workflows/bug-lifecycle.md +56 -0
- package/core/workflows/feature-lifecycle.md +347 -0
- package/core/workflows/hotfix-lifecycle.md +65 -0
- package/core/workflows/sprint-lifecycle.md +56 -0
- package/lib/install-codex.js +85 -0
- package/package.json +36 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: meta-sync-platforms
|
|
3
|
+
description: Use when the user asks to run /sync-platforms, regenerate AI Core platform configuration, sync Claude/Cursor/Windsurf rules, or update generated agent command files.
|
|
4
|
+
command: /sync-platforms
|
|
5
|
+
display_name: "Sync Platforms"
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
status: READY
|
|
8
|
+
owner_agent: scrum-master
|
|
9
|
+
model_preference: sonnet
|
|
10
|
+
args: []
|
|
11
|
+
preconditions:
|
|
12
|
+
- sync_script_exists: true
|
|
13
|
+
- ai_core_exists: true
|
|
14
|
+
postconditions:
|
|
15
|
+
- claude_config_generated: true
|
|
16
|
+
- cursor_rules_generated: true
|
|
17
|
+
- windsurf_rules_generated: true
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# /sync-platforms
|
|
21
|
+
|
|
22
|
+
> Exports `core/` source-of-truth specs to Claude Code, Cursor, and Windsurf config files.
|
|
23
|
+
|
|
24
|
+
## 🎯 Purpose
|
|
25
|
+
|
|
26
|
+
Keep all supported AI tools aligned with the same agents, commands, and rules while editing only `core/` as the canonical source.
|
|
27
|
+
|
|
28
|
+
## 🔄 Execution Flow
|
|
29
|
+
|
|
30
|
+
1. Verify `core/scripts/sync-platforms.sh` exists.
|
|
31
|
+
2. Run `bash core/scripts/sync-platforms.sh`.
|
|
32
|
+
3. Review generated `.claude/`, `.cursor/rules/`, `.windsurfrules`, and `CLAUDE.md`.
|
|
33
|
+
4. Confirm generated files should be committed.
|
|
34
|
+
5. Report created/updated files.
|
|
35
|
+
|
|
36
|
+
## 🔒 Hard Rules
|
|
37
|
+
|
|
38
|
+
- Source changes MUST be made in `core/`, not generated exports.
|
|
39
|
+
- MUST review generated files before commit.
|
|
40
|
+
- MUST rerun after changing agents, commands, or rules.
|
|
41
|
+
- MUST NOT delete user custom platform config without confirmation.
|
|
42
|
+
|
|
43
|
+
## 📤 Outputs
|
|
44
|
+
|
|
45
|
+
- Generated file list
|
|
46
|
+
- Platform coverage
|
|
47
|
+
- Suggested commit command
|
|
48
|
+
- Next test steps for each tool
|
|
49
|
+
|
|
50
|
+
## 🔗 Related Commands
|
|
51
|
+
|
|
52
|
+
- `/setup-project`
|
|
53
|
+
- `/validate-state`
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: meta-ticket-health
|
|
3
|
+
description: Use when the user asks to run /ticket-health, inspect ticket quality, find stale or blocked tickets, summarize ticket hygiene, or report health across AI Core tickets.
|
|
4
|
+
command: /ticket-health
|
|
5
|
+
display_name: "Ticket Health"
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
status: READY
|
|
8
|
+
owner_agent: scrum-master
|
|
9
|
+
consults_agents:
|
|
10
|
+
- business-analyst
|
|
11
|
+
- tech-lead
|
|
12
|
+
- qa-tester
|
|
13
|
+
model_preference: sonnet
|
|
14
|
+
args: []
|
|
15
|
+
preconditions:
|
|
16
|
+
- tickets_readable: true
|
|
17
|
+
postconditions:
|
|
18
|
+
- health_report_generated: true
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# /ticket-health
|
|
22
|
+
|
|
23
|
+
> Finds stale, blocked, inconsistent, or under-specified tickets in `project/tickets/`.
|
|
24
|
+
|
|
25
|
+
## 🎯 Purpose
|
|
26
|
+
|
|
27
|
+
Keep large ticket sets healthy before backlog grooming, sprint planning, and release.
|
|
28
|
+
|
|
29
|
+
## 🔄 Execution Flow
|
|
30
|
+
|
|
31
|
+
1. Run `/validate-state`.
|
|
32
|
+
2. Load tickets and backlog.
|
|
33
|
+
3. Find tickets missing owner, estimate, AC, priority, or backlog rank.
|
|
34
|
+
4. Find zombie tickets by state age.
|
|
35
|
+
5. Find blocked tickets missing unblock plan.
|
|
36
|
+
6. Find tickets not present in backlog.
|
|
37
|
+
7. Find backlog items pointing to cancelled or done tickets.
|
|
38
|
+
8. Output remediation actions.
|
|
39
|
+
|
|
40
|
+
## 🔒 Hard Rules
|
|
41
|
+
|
|
42
|
+
- MUST NOT silently change ticket state.
|
|
43
|
+
- MUST distinguish errors from warnings.
|
|
44
|
+
- MUST route remediation to correct owner agent.
|
|
45
|
+
- MUST keep backlog order separate from ticket state.
|
|
46
|
+
|
|
47
|
+
## 📤 Outputs
|
|
48
|
+
|
|
49
|
+
- Critical errors
|
|
50
|
+
- Warnings
|
|
51
|
+
- Stale tickets
|
|
52
|
+
- Blocked tickets
|
|
53
|
+
- Backlog inconsistencies
|
|
54
|
+
- Recommended handoffs
|
|
55
|
+
|
|
56
|
+
## 🔗 Related Commands
|
|
57
|
+
|
|
58
|
+
- `/validate-state`
|
|
59
|
+
- `/backlog-status`
|
|
60
|
+
- `/prioritize-backlog`
|
|
61
|
+
- `/generate-views`
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: meta-validate-audit-log
|
|
3
|
+
description: Use when the user asks to run /validate-audit-log, verify AI Core audit-log integrity, check hash-chain continuity, or validate state history evidence.
|
|
4
|
+
command: /validate-audit-log
|
|
5
|
+
display_name: "Validate Audit Log"
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
status: READY
|
|
8
|
+
owner_agent: scrum-master
|
|
9
|
+
requires_agents:
|
|
10
|
+
- scrum-master
|
|
11
|
+
- tech-lead
|
|
12
|
+
model_preference: sonnet
|
|
13
|
+
args: []
|
|
14
|
+
preconditions:
|
|
15
|
+
- ai_state_exists: true
|
|
16
|
+
postconditions:
|
|
17
|
+
- audit_log_hash_chain_checked: true
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# /validate-audit-log
|
|
21
|
+
|
|
22
|
+
> Validate the append-only audit log hash chain.
|
|
23
|
+
|
|
24
|
+
## Purpose
|
|
25
|
+
|
|
26
|
+
Detect manual edits to `project/audit-log.jsonl`. Executable workflow handlers append records with `prev_hash` and `hash`; this command recomputes the chain.
|
|
27
|
+
|
|
28
|
+
## Chat Usage
|
|
29
|
+
|
|
30
|
+
```text
|
|
31
|
+
/validate-audit-log
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The AI may call `core/scripts/validate-audit-log.sh` internally and must summarize the result.
|
|
35
|
+
|
|
36
|
+
## Hard Rules
|
|
37
|
+
|
|
38
|
+
### RULE VA-001: Audit lines are append-only
|
|
39
|
+
Existing audit log lines MUST NOT be edited. Corrections require a new audit record.
|
|
40
|
+
|
|
41
|
+
### RULE VA-002: Hash chain must validate
|
|
42
|
+
Every line must point to the previous line hash and match its own payload hash.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: meta-validate-docs
|
|
3
|
+
description: Use when the user asks to run /validate-docs, check documentation gates, validate changed docs against AI Core project rules, or verify docs before a PR, release, or handoff.
|
|
4
|
+
command: /validate-docs
|
|
5
|
+
display_name: "Validate Docs"
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
status: READY
|
|
8
|
+
owner_agent: tech-lead
|
|
9
|
+
requires_agents:
|
|
10
|
+
- tech-lead
|
|
11
|
+
consults_agents:
|
|
12
|
+
- qa-tester
|
|
13
|
+
- scrum-master
|
|
14
|
+
model_preference: sonnet
|
|
15
|
+
args:
|
|
16
|
+
- name: base
|
|
17
|
+
required: false
|
|
18
|
+
description: "Optional git base ref, e.g. origin/main"
|
|
19
|
+
preconditions:
|
|
20
|
+
- git_repo_exists: true
|
|
21
|
+
- ai_state_exists: true
|
|
22
|
+
postconditions:
|
|
23
|
+
- documentation_gates_checked: true
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# /validate-docs
|
|
27
|
+
|
|
28
|
+
> Run mechanical documentation and DoD evidence validation.
|
|
29
|
+
|
|
30
|
+
## Purpose
|
|
31
|
+
|
|
32
|
+
Catch missing docs before review or release. In chat, use `/validate-docs`; the AI may call `core/scripts/validate-docs.sh` internally and must summarize the result.
|
|
33
|
+
|
|
34
|
+
## Execution Flow
|
|
35
|
+
|
|
36
|
+
1. Identify changed files from staged changes, working tree, or the provided base ref.
|
|
37
|
+
2. Check code changes have a ticket reference.
|
|
38
|
+
3. Check API, setup, migration, architecture, and release-impacting changes have matching docs.
|
|
39
|
+
4. Validate ticket `documentation.paths`, `adr.path`, `runbook.path`, and DONE-ticket DoD/QA evidence.
|
|
40
|
+
5. Report blocking failures with exact remediation.
|
|
41
|
+
|
|
42
|
+
## Chat Usage
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
/validate-docs
|
|
46
|
+
/validate-docs --base origin/main
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Hard Rules
|
|
50
|
+
|
|
51
|
+
### RULE VD-001: Documentation is a gate
|
|
52
|
+
If the script fails, the PR or state transition is not ready.
|
|
53
|
+
|
|
54
|
+
### RULE VD-002: Ticket evidence must point to real files
|
|
55
|
+
Declared docs, ADRs, runbooks, and QA evidence paths must exist.
|
|
56
|
+
|
|
57
|
+
### RULE VD-003: DONE requires DoD fields
|
|
58
|
+
DONE tickets must have machine-readable DoD fields and QA evidence.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: meta-validate-permissions
|
|
3
|
+
description: Use when the user asks to run /validate-permissions, check AI Core command permissions, validate agent ownership rules, or audit command access constraints.
|
|
4
|
+
command: /validate-permissions
|
|
5
|
+
display_name: "Validate Permissions"
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
status: READY
|
|
8
|
+
owner_agent: scrum-master
|
|
9
|
+
requires_agents:
|
|
10
|
+
- scrum-master
|
|
11
|
+
- tech-lead
|
|
12
|
+
model_preference: sonnet
|
|
13
|
+
args: []
|
|
14
|
+
preconditions:
|
|
15
|
+
- ai_state_exists: true
|
|
16
|
+
- command_specs_exist: true
|
|
17
|
+
postconditions:
|
|
18
|
+
- agent_permissions_checked: true
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# /validate-permissions
|
|
22
|
+
|
|
23
|
+
> Validate that recorded state-history commands were executed by allowed agent roles.
|
|
24
|
+
|
|
25
|
+
## Purpose
|
|
26
|
+
|
|
27
|
+
Make role boundaries mechanically enforceable by comparing `project/tickets/*.json` history entries with `core/commands/**` command ownership metadata.
|
|
28
|
+
|
|
29
|
+
## Chat Usage
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
/validate-permissions
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Hard Rules
|
|
36
|
+
|
|
37
|
+
### RULE VP-001: Command role must match
|
|
38
|
+
`state_history[].by_agent` must match the command `owner_agent` or `requires_agents`.
|
|
39
|
+
|
|
40
|
+
### RULE VP-002: Unknown commands fail
|
|
41
|
+
Any `by_command` value without a matching `core/commands/**/<name>.md` file blocks validation.
|
|
42
|
+
|
|
43
|
+
### RULE VP-003: No self-approval
|
|
44
|
+
If `assignee` is recorded, the same agent cannot approve review-to-QA or DONE transitions.
|
|
45
|
+
|
|
46
|
+
## Executable Runner
|
|
47
|
+
|
|
48
|
+
The internal command runner also enforces command metadata before executing workflow handlers. Users normally type chat commands:
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
/mark-ready TICKET-001
|
|
52
|
+
/create-pr TICKET-001 https://github.com/org/repo/pull/1
|
|
53
|
+
```
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: meta-validate-state
|
|
3
|
+
description: Use when the user asks to run /validate-state, validate AI Core project state, check ticket or state consistency, or run state validator diagnostics.
|
|
4
|
+
command: /validate-state
|
|
5
|
+
display_name: "Validate State"
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
status: READY
|
|
8
|
+
owner_agent: scrum-master
|
|
9
|
+
model_preference: sonnet
|
|
10
|
+
args:
|
|
11
|
+
- name: ticket_id
|
|
12
|
+
required: false
|
|
13
|
+
format: "TICKET-XXX"
|
|
14
|
+
preconditions:
|
|
15
|
+
- validator_script_exists: true
|
|
16
|
+
postconditions:
|
|
17
|
+
- validation_report_generated: true
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# /validate-state
|
|
21
|
+
|
|
22
|
+
> Validates `project/` integrity, backlog references, ticket schema, and allowed state transitions.
|
|
23
|
+
|
|
24
|
+
## 🎯 Purpose
|
|
25
|
+
|
|
26
|
+
Catch corrupted backlog data, missing ticket references, skipped transitions, missing history, invalid schema, and stale workflow data before sprint planning, review, or release.
|
|
27
|
+
|
|
28
|
+
## 🔄 Execution Flow
|
|
29
|
+
|
|
30
|
+
1. Verify `jq` is installed.
|
|
31
|
+
2. In chat, run `/validate-state` with optional ticket ID. The AI may call `core/scripts/validate-state.sh` internally.
|
|
32
|
+
3. Validate `project/backlog/backlog.json` references existing tickets when validating all state.
|
|
33
|
+
4. If available, run JSON schema validation against `core/config/ticket.schema.json` and `core/config/backlog.schema.json`.
|
|
34
|
+
5. Report failures with file path, field, and recovery command.
|
|
35
|
+
6. Block workflow if validation fails.
|
|
36
|
+
|
|
37
|
+
## 🔒 Hard Rules
|
|
38
|
+
|
|
39
|
+
- MUST NOT auto-rewrite state history.
|
|
40
|
+
- MUST fail on invalid transitions.
|
|
41
|
+
- MUST fail on current status not matching last history entry.
|
|
42
|
+
- MUST warn on zombie tickets.
|
|
43
|
+
- MUST fail when backlog references missing tickets.
|
|
44
|
+
- MUST be run before `/plan-sprint` and `/release`.
|
|
45
|
+
|
|
46
|
+
## 📤 Outputs
|
|
47
|
+
|
|
48
|
+
- Pass/fail status
|
|
49
|
+
- Ticket count
|
|
50
|
+
- Backlog validation status
|
|
51
|
+
- Failed ticket details
|
|
52
|
+
- Suggested remediation
|
|
53
|
+
|
|
54
|
+
## 🔗 Related Commands
|
|
55
|
+
|
|
56
|
+
- `/mark-ready`
|
|
57
|
+
- `/plan-sprint`
|
|
58
|
+
- `/release`
|