@v11g/agents-rock 1.0.1 → 1.0.3
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 +58 -14
- package/package.json +7 -3
- package/plugins/business-analyst/.claude-plugin/plugin.json +9 -0
- package/plugins/business-analyst/skills/business-analyst/README.md +20 -0
- package/plugins/business-analyst/skills/business-analyst/SKILL.md +69 -0
- package/plugins/business-analyst/skills/business-analyst/references/ai-extension.md +37 -0
- package/plugins/business-analyst/skills/business-analyst/references/frameworks.md +53 -0
- package/plugins/business-analyst/skills/business-analyst/references/interview.md +89 -0
- package/plugins/business-analyst/skills/business-analyst/references/review.md +25 -0
- package/plugins/business-analyst/skills/business-analyst/references/writing.md +102 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/checks.mjs +166 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/lib/schema.mjs +78 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/checks.test.mjs +188 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/e2e.test.mjs +17 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-fail.json +205 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-pass.json +59 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-pass.md +63 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/test/schema.test.mjs +41 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/validate.mjs +20 -0
- package/plugins/solution-architect/skills/analyze-requirements/README.md +1 -1
- package/plugins/solution-architect/skills/estimate/SKILL.md +13 -5
- package/plugins/solution-architect/skills/estimate/assets/estimate-template-agentic.html +917 -0
- package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +430 -13
- package/plugins/solution-architect/skills/estimate/references/agentic-estimation.md +148 -0
- package/plugins/solution-architect/skills/estimate/references/ai-multipliers.md +10 -0
- package/plugins/solution-architect/skills/estimate/references/interview.md +20 -1
- package/plugins/solution-architect/skills/estimate/references/task-shapes.md +173 -0
- package/plugins/solution-architect/skills/estimate/references/writing.md +31 -0
- package/plugins/solution-architect/skills/estimate/scripts/compute.mjs +5 -1
- package/plugins/solution-architect/skills/estimate/scripts/lib/agentic-checks.mjs +65 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/baselines.mjs +107 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/checks.mjs +16 -7
- package/plugins/solution-architect/skills/estimate/scripts/lib/inline.mjs +14 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/measurements.mjs +59 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/redact.mjs +28 -5
- package/plugins/solution-architect/skills/estimate/scripts/lib/rollup.mjs +53 -22
- package/plugins/solution-architect/skills/estimate/scripts/lib/schema.mjs +52 -7
- package/plugins/solution-architect/skills/estimate/scripts/render.mjs +14 -3
- package/plugins/solution-architect/skills/estimate/scripts/test/baselines.test.mjs +120 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/browser.test.mjs +69 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/compute.test.mjs +44 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/e2e.test.mjs +28 -1
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-fail.md +55 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-pass.md +54 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-inputs.json +45 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/measurements.jsonl +20 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/measurements.test.mjs +54 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/references.test.mjs +25 -1
- package/plugins/solution-architect/skills/estimate/scripts/test/render.test.mjs +48 -1
- package/plugins/solution-architect/skills/estimate/scripts/test/schema.test.mjs +59 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/validate.test.mjs +37 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +168 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/zip.mjs +41 -0
- package/plugins/solution-architect/skills/new-lead/SKILL.md +15 -10
- package/src/cli/agents.mjs +10 -10
- package/src/cli/args.mjs +22 -3
- package/src/cli/flow.mjs +85 -0
- package/src/cli/install.mjs +7 -8
- package/src/cli/main.mjs +30 -72
- package/src/cli/prompts.mjs +84 -0
- package/src/cli/report.mjs +26 -0
- package/src/cli/scope.mjs +34 -0
- package/src/cli/targets.mjs +45 -0
- package/src/cli/uninstall.mjs +9 -10
- package/src/cli/picker.mjs +0 -78
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0",
|
|
3
|
+
"lead": "acme-crm",
|
|
4
|
+
"status": "CLARIFICATION_REQUIRED",
|
|
5
|
+
"depth": "STANDARD",
|
|
6
|
+
"updated": "2026-08-27",
|
|
7
|
+
"mode": "existing",
|
|
8
|
+
"context": {
|
|
9
|
+
"problem": "Invoice approval is manual; finance spends 3 days per cycle chasing approvers.",
|
|
10
|
+
"goals": [
|
|
11
|
+
{ "id": "G-001", "goal": "Cut invoice approval cycle time", "metric": "median cycle < 1 day", "source": "kickoff call 2026-08-20" }
|
|
12
|
+
],
|
|
13
|
+
"successMetrics": ["median approval cycle time under 1 day within 3 months"]
|
|
14
|
+
},
|
|
15
|
+
"actors": [
|
|
16
|
+
{ "id": "ACT-001", "name": "Finance Officer", "type": "human", "goal": "process invoices without chasing approvers", "painPoints": ["chasing approvers by email"] },
|
|
17
|
+
{ "id": "ACT-002", "name": "Manager", "type": "human", "goal": "approve high-value invoices", "painPoints": ["no visibility of the pending queue"] }
|
|
18
|
+
],
|
|
19
|
+
"workflows": [
|
|
20
|
+
{ "id": "WF-001", "name": "Invoice approval", "state": "as-is", "trigger": "invoice received by email", "steps": ["finance officer logs invoice", "emails manager for approval", "manager replies", "officer pays"], "exceptions": ["manager on leave: invoice waits"] }
|
|
21
|
+
],
|
|
22
|
+
"requirements": [
|
|
23
|
+
{ "id": "FR-001", "text": "The system must route invoices above the approval threshold to a manager for approval.", "label": "confirmed", "source": "kickoff call 2026-08-20", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": ["BR-001"] }, "scope": "in", "acceptance": ["SC-001", "SC-002"] },
|
|
24
|
+
{ "id": "FR-002", "text": "The system must record an audit trail of every approval decision.", "label": "assumed", "source": "compliance mention in meeting notes 2026-08-21", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": [] }, "scope": "in", "acceptance": [] }
|
|
25
|
+
],
|
|
26
|
+
"businessRules": [
|
|
27
|
+
{ "id": "BR-001", "rule": "Invoices above $10,000 require manager approval.", "source": "kickoff call 2026-08-20", "examples": ["$8,000 -> no approval", "$15,000 -> approval required"], "openQuestion": "Q-001" }
|
|
28
|
+
],
|
|
29
|
+
"scenarios": [
|
|
30
|
+
{ "id": "SC-001", "requirement": "FR-001", "type": "happy", "given": "an invoice of $15,000", "when": "the invoice is submitted", "then": "manager approval is requested" },
|
|
31
|
+
{ "id": "SC-002", "requirement": "FR-001", "type": "edge", "given": "an invoice of exactly $10,000", "when": "the invoice is submitted", "then": "no approval is requested" }
|
|
32
|
+
],
|
|
33
|
+
"nfrs": [
|
|
34
|
+
{ "id": "NFR-001", "area": "auditability", "text": "Approval decisions must be retained for 7 years.", "label": "assumed" }
|
|
35
|
+
],
|
|
36
|
+
"integrations": [
|
|
37
|
+
{ "id": "INT-001", "system": "Xero", "direction": "read", "label": "confirmed" }
|
|
38
|
+
],
|
|
39
|
+
"data": [
|
|
40
|
+
{ "id": "DAT-001", "entity": "Invoice", "sensitivity": "financial", "volume": "about 400 per month", "label": "confirmed" }
|
|
41
|
+
],
|
|
42
|
+
"constraints": [
|
|
43
|
+
{ "id": "CON-001", "text": "Must run inside the client's existing Microsoft 365 tenant.", "source": "client IT policy document" }
|
|
44
|
+
],
|
|
45
|
+
"assumptions": [
|
|
46
|
+
{ "id": "ASM-001", "text": "Managers authenticate through Microsoft Entra.", "impact": "high", "status": "unconfirmed" }
|
|
47
|
+
],
|
|
48
|
+
"openQuestions": [
|
|
49
|
+
{ "id": "Q-001", "question": "Is the $10,000 threshold in local currency or USD equivalent?", "priority": "P1", "reason": "changes the approval rule for multi-currency invoices", "affects": ["BR-001", "FR-001"], "status": "open", "answer": null, "architectureBlocker": true }
|
|
50
|
+
],
|
|
51
|
+
"conflicts": [],
|
|
52
|
+
"scope": { "out": ["payment execution"], "future": ["mobile approvals"], "unconfirmed": ["multi-entity support"] },
|
|
53
|
+
"ai": null,
|
|
54
|
+
"readiness": {
|
|
55
|
+
"overall": 73,
|
|
56
|
+
"areas": { "businessContext": 90, "workflows": 80, "rules": 70, "integrations": 60, "data": 70, "nfrs": 70 },
|
|
57
|
+
"blockers": ["Q-001", "ASM-001"]
|
|
58
|
+
}
|
|
59
|
+
}
|
package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-pass.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
lead: acme-crm
|
|
3
|
+
status: CLARIFICATION_REQUIRED
|
|
4
|
+
depth: STANDARD
|
|
5
|
+
updated: 2026-08-27
|
|
6
|
+
readiness: 73
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Requirements — Acme CRM invoice approval
|
|
10
|
+
|
|
11
|
+
## Part 1 — Discovery Brief
|
|
12
|
+
|
|
13
|
+
Problem: invoice approval is manual; finance spends 3 days per cycle chasing approvers.
|
|
14
|
+
|
|
15
|
+
| ID | Goal | Metric |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| G-001 | Cut invoice approval cycle time | median cycle < 1 day |
|
|
18
|
+
|
|
19
|
+
Benefit hypothesis: we believe automated approval routing (FR-001) will cut cycle
|
|
20
|
+
time, measured by a median approval cycle under 1 day within 3 months.
|
|
21
|
+
|
|
22
|
+
Constraints: CON-001 — must run inside the client's existing Microsoft 365 tenant.
|
|
23
|
+
|
|
24
|
+
## Part 2 — Process & Domain
|
|
25
|
+
|
|
26
|
+
As-is workflow WF-001 (invoice approval): invoice received by email → finance
|
|
27
|
+
officer (ACT-001) logs the invoice → emails the manager (ACT-002) for approval →
|
|
28
|
+
manager replies → officer pays. Exception: manager on leave — the invoice waits.
|
|
29
|
+
|
|
30
|
+
| ID | Rule | Examples |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| BR-001 | Invoices above $10,000 require manager approval | $8,000 → no approval; $15,000 → approval required |
|
|
33
|
+
|
|
34
|
+
## Part 3 — Requirements
|
|
35
|
+
|
|
36
|
+
Scope — out: payment execution. Future: mobile approvals. Unconfirmed: multi-entity support.
|
|
37
|
+
|
|
38
|
+
| ID | Requirement | Label | Scope |
|
|
39
|
+
| --- | --- | --- | --- |
|
|
40
|
+
| FR-001 | Route invoices above the approval threshold to a manager | confirmed | in |
|
|
41
|
+
| FR-002 | Record an audit trail of every approval decision | assumed | in |
|
|
42
|
+
|
|
43
|
+
NFR-001 (auditability, assumed): approval decisions retained for 7 years.
|
|
44
|
+
INT-001: read invoices from Xero (confirmed).
|
|
45
|
+
DAT-001: Invoice — financial sensitivity, about 400 per month (confirmed).
|
|
46
|
+
|
|
47
|
+
## Part 4 — Acceptance Scenarios
|
|
48
|
+
|
|
49
|
+
| ID | Given | When | Then |
|
|
50
|
+
| --- | --- | --- | --- |
|
|
51
|
+
| SC-001 | an invoice of $15,000 | the invoice is submitted | manager approval is requested |
|
|
52
|
+
| SC-002 | an invoice of exactly $10,000 | the invoice is submitted | no approval is requested |
|
|
53
|
+
|
|
54
|
+
## Part 5 — Readiness Report
|
|
55
|
+
|
|
56
|
+
Readiness: 73%. Areas — businessContext 90, workflows 80, rules 70,
|
|
57
|
+
integrations 60, data 70, nfrs 70.
|
|
58
|
+
|
|
59
|
+
Open questions: Q-001 (P1, architecture blocker) — is the $10,000 threshold in
|
|
60
|
+
local currency or USD equivalent?
|
|
61
|
+
Assumptions: ASM-001 (high impact, unconfirmed) — managers authenticate through
|
|
62
|
+
Microsoft Entra.
|
|
63
|
+
Blockers: Q-001, ASM-001. Conflicts: none.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { test } from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { readFileSync } from 'node:fs';
|
|
4
|
+
import { checkSchema } from '../lib/schema.mjs';
|
|
5
|
+
|
|
6
|
+
const load = () =>
|
|
7
|
+
JSON.parse(readFileSync(new URL('./fixtures/requirements-pass.json', import.meta.url), 'utf8'));
|
|
8
|
+
|
|
9
|
+
test('the pass fixture has no schema findings', () => {
|
|
10
|
+
assert.deepEqual(checkSchema(load()), []);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
test('a missing top-level field is named', () => {
|
|
14
|
+
const pkg = load();
|
|
15
|
+
delete pkg.readiness;
|
|
16
|
+
assert.ok(checkSchema(pkg).some((f) => f.includes('readiness')));
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
test('an illegal status is refused', () => {
|
|
20
|
+
const pkg = load();
|
|
21
|
+
pkg.status = 'FINISHED';
|
|
22
|
+
assert.ok(checkSchema(pkg).some((f) => f.includes('illegal status')));
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
test('a bad id format is refused', () => {
|
|
26
|
+
const pkg = load();
|
|
27
|
+
pkg.requirements[0].id = 'REQ-1';
|
|
28
|
+
assert.ok(checkSchema(pkg).some((f) => f.includes('bad id REQ-1')));
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
test('a bad goal id format is refused', () => {
|
|
32
|
+
const pkg = load();
|
|
33
|
+
pkg.context.goals[0].id = 'GOAL-1';
|
|
34
|
+
assert.ok(checkSchema(pkg).some((f) => f.includes('bad id GOAL-1')));
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
test('an illegal row enum is refused', () => {
|
|
38
|
+
const pkg = load();
|
|
39
|
+
pkg.requirements[0].label = 'definite';
|
|
40
|
+
assert.ok(checkSchema(pkg).some((f) => f.includes('illegal label')));
|
|
41
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { checkPackage } from './lib/checks.mjs';
|
|
3
|
+
|
|
4
|
+
function parseArgs(argv) {
|
|
5
|
+
const args = {};
|
|
6
|
+
for (let i = 0; i < argv.length; i += 1) {
|
|
7
|
+
if (argv[i].startsWith('--')) args[argv[i].slice(2)] = argv[++i];
|
|
8
|
+
}
|
|
9
|
+
return args;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const args = parseArgs(process.argv.slice(2));
|
|
13
|
+
const md = readFileSync(args.md, 'utf8');
|
|
14
|
+
const pkg = JSON.parse(readFileSync(args.json, 'utf8'));
|
|
15
|
+
const findings = checkPackage({ pkg, md });
|
|
16
|
+
if (findings.length) {
|
|
17
|
+
console.error(findings.join('\n'));
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
console.log('requirements package valid');
|
|
@@ -19,19 +19,25 @@ interactive what-if page served on localhost.
|
|
|
19
19
|
4. Never apply one blanket AI multiplier to a whole project — per-task
|
|
20
20
|
category only (`references/ai-multipliers.md`).
|
|
21
21
|
5. `node scripts/validate.mjs` must exit 0 before the page renders.
|
|
22
|
+
6. Agentic estimates: baselines and confidence come from scripts reading
|
|
23
|
+
measurements.jsonl — the agent never writes a duration, confidence, or
|
|
24
|
+
evidence row.
|
|
22
25
|
|
|
23
26
|
## Flow
|
|
24
27
|
|
|
25
28
|
1. **Detect evidence**: requirements/RFP? ARCHITECTURE.md? codebase? none?
|
|
26
29
|
State findings; the user can override. (`references/interview.md` §1)
|
|
27
|
-
2. **Depth**: ask QUICK / STANDARD / DEEP
|
|
30
|
+
2. **Depth and delivery mode**: ask QUICK / STANDARD / DEEP, then TRADITIONAL
|
|
31
|
+
/ AGENTIC (`references/interview.md` §2b). Delivery mode decides step 4.
|
|
28
32
|
3. **Interview**: follow `references/interview.md` — pre-fill from evidence,
|
|
29
33
|
ask only holes, run the clear-vs-assumed gate before sizing. Before
|
|
30
34
|
proposing milestones, read `references/slicing.md` — slices are judged
|
|
31
35
|
there, not computed.
|
|
32
|
-
4. **Technique**: recommend from `references/techniques.md`,
|
|
33
|
-
cite the method's sources (its §Sources — attribution + link,
|
|
34
|
-
quoted text), confirm.
|
|
36
|
+
4. **Technique**: TRADITIONAL-only — recommend from `references/techniques.md`,
|
|
37
|
+
state why, cite the method's sources (its §Sources — attribution + link,
|
|
38
|
+
never quoted text), confirm. AGENTIC reads
|
|
39
|
+
`references/agentic-estimation.md` and `references/task-shapes.md`
|
|
40
|
+
instead: no technique to recommend, shape + scope + seed minutes per task.
|
|
35
41
|
5. **Size**: write judgments to `estimation-inputs.json`
|
|
36
42
|
(`references/writing.md` — the booking fixture is the canonical shape).
|
|
37
43
|
6. **Compute**: `node scripts/compute.mjs --inputs estimation-inputs.json --out estimation.json`
|
|
@@ -42,7 +48,9 @@ interactive what-if page served on localhost.
|
|
|
42
48
|
`node scripts/render.mjs --json estimation.json --md estimation.md --out <dir>`
|
|
43
49
|
(add `--client-only` for a client-safe file) — render re-runs the validation
|
|
44
50
|
checks itself and refuses on findings, so an unvalidated page cannot ship.
|
|
45
|
-
|
|
51
|
+
`deliveryMode: "agentic"` routes rendering to the agentic HTML template
|
|
52
|
+
automatically; nothing to choose here. Then serve with the
|
|
53
|
+
analyze-requirements skill's `serve.mjs`; report the URL.
|
|
46
54
|
|
|
47
55
|
## Companion mode
|
|
48
56
|
|