@vpxa/aikit 0.1.186 → 0.1.188
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/package.json +1 -1
- package/packages/blocks-core/dist/index.js +112 -31
- package/packages/embeddings/dist/index.d.ts +5 -0
- package/packages/embeddings/dist/index.js +1 -1
- package/packages/present/dist/index.html +135 -54
- package/packages/server/dist/index.js +1 -1
- package/packages/server/dist/{server-BCnhTdUy.js → server-BvVBHkFD.js} +121 -121
- package/packages/server/viewers/canvas.html +164 -67
- package/scaffold/dist/definitions/skills/adr-skill.mjs +73 -155
- package/scaffold/dist/definitions/skills/aikit.mjs +291 -318
- package/scaffold/dist/definitions/skills/brainstorming.mjs +107 -242
- package/scaffold/dist/definitions/skills/browser-use.mjs +213 -1
- package/scaffold/dist/definitions/skills/c4-architecture.mjs +213 -2257
- package/scaffold/dist/definitions/skills/docs.mjs +395 -755
- package/scaffold/dist/definitions/skills/lesson-learned.mjs +61 -21
- package/scaffold/dist/definitions/skills/present.mjs +1 -1
- package/scaffold/dist/definitions/skills/react.mjs +104 -137
- package/scaffold/dist/definitions/skills/requirements-clarity.mjs +55 -2
- package/scaffold/dist/definitions/skills/session-handoff.mjs +127 -177
- package/scaffold/dist/definitions/skills/typescript.mjs +16 -0
|
@@ -1371,7 +1371,7 @@ function main() {
|
|
|
1371
1371
|
main();
|
|
1372
1372
|
`},{file:`SKILL.md`,content:`---
|
|
1373
1373
|
name: adr-skill
|
|
1374
|
-
description: Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept/reject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.
|
|
1374
|
+
description: Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept/reject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. Trigger on: architecture decisions, technology choices, significant design tradeoffs, decisions that affect >3 files or >1 team, irreversible choices. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.
|
|
1375
1375
|
metadata:
|
|
1376
1376
|
category: cross-cutting
|
|
1377
1377
|
domain: general
|
|
@@ -1400,23 +1400,26 @@ metadata:
|
|
|
1400
1400
|
- **Simple** (≤3 options, single-team) — Context → Decision → Consequences → Implementation Plan → Alternatives
|
|
1401
1401
|
- **MADR** (complex, multi-team) — Full template with Decision Drivers, Pros/Cons matrix, detailed Implementation Plan
|
|
1402
1402
|
|
|
1403
|
-
**Commands:**
|
|
1404
|
-
| Action | What to do |
|
|
1405
|
-
|--------|-----------|
|
|
1406
|
-
| Create | Run 4-phase workflow → save to \`docs/decisions/NNNN-slug.md\` |
|
|
1407
|
-
| Consult | \`search({ query: "ADR <topic>" })\` before implementing |
|
|
1408
|
-
| Update | Edit content, change status in YAML frontmatter |
|
|
1409
|
-
| Deprecate | Set \`status: deprecated\`, add superseded-by link |
|
|
1410
|
-
| Bootstrap | Create \`docs/decisions/\` + \`index.md\` if missing |
|
|
1403
|
+
**Commands:** Create → run 4-phase workflow and save to \`docs/decisions/NNNN-slug.md\`. Consult → \`search({ query: "ADR <topic>" })\` before implementing. Update → edit content and YAML status. Deprecate → set \`status: deprecated\` and add a superseded-by link. Bootstrap → create \`docs/decisions/\` plus \`index.md\` if missing.
|
|
1411
1404
|
|
|
1412
1405
|
**Agent-readiness gate:** Every ADR scores ≥ 80% on: Specificity, Testability, Completeness, Independence, Actionability.
|
|
1413
1406
|
|
|
1407
|
+
## Mindset
|
|
1408
|
+
|
|
1409
|
+
ADRs serve two audiences separated by time: the CURRENT team making the decision, and the FUTURE team wondering "why the hell did they do it this way?"
|
|
1410
|
+
|
|
1411
|
+
The future audience is more important. They have zero context about your constraints, discussions, and tradeoffs. Write for them.
|
|
1412
|
+
|
|
1413
|
+
An ADR is NOT meeting minutes. It captures:
|
|
1414
|
+
- The FORCES that drove the decision (constraints, requirements, team skills)
|
|
1415
|
+
- The ALTERNATIVES genuinely considered (with honest evaluation)
|
|
1416
|
+
- The IRREVERSIBILITY assessment (one-way door vs two-way door)
|
|
1417
|
+
- The CONSEQUENCES acknowledged upfront (technical debt accepted, capability traded)
|
|
1418
|
+
|
|
1414
1419
|
## Philosophy
|
|
1415
1420
|
|
|
1416
1421
|
ADRs created with this skill are **executable specifications for coding agents**. A human approves the decision; an agent implements it. The ADR must contain everything the agent needs to write correct code without asking follow-up questions.
|
|
1417
1422
|
|
|
1418
|
-
This means:
|
|
1419
|
-
|
|
1420
1423
|
- Constraints must be explicit and measurable, not vibes
|
|
1421
1424
|
- Decisions must be specific enough to act on ("use PostgreSQL 16 with pgvector" not "use a database")
|
|
1422
1425
|
- Consequences must map to concrete follow-up tasks
|
|
@@ -1424,6 +1427,16 @@ This means:
|
|
|
1424
1427
|
- The ADR must be self-contained — no tribal knowledge assumptions
|
|
1425
1428
|
- **The ADR must include an implementation plan** — which files to touch, which patterns to follow, which tests to write, and how to verify the decision was implemented correctly
|
|
1426
1429
|
|
|
1430
|
+
## ADR Quality Criteria
|
|
1431
|
+
|
|
1432
|
+
An ADR is agent-ready when it passes:
|
|
1433
|
+
- [ ] **Context is self-contained** — a reader unfamiliar with the project can understand the problem
|
|
1434
|
+
- [ ] **Options include at least 2 genuine alternatives** (no strawmen)
|
|
1435
|
+
- [ ] **Decision rationale cites concrete evidence** — performance numbers, blast radius, team constraints
|
|
1436
|
+
- [ ] **Consequences are bidirectional** — both benefits AND costs/risks
|
|
1437
|
+
- [ ] **Status is explicit** — proposed/accepted/deprecated/superseded with date
|
|
1438
|
+
- [ ] **Superseded ADRs link to their replacement** — no orphans
|
|
1439
|
+
|
|
1427
1440
|
## When to Write an ADR
|
|
1428
1441
|
|
|
1429
1442
|
Write an ADR when a decision:
|
|
@@ -1433,12 +1446,15 @@ Write an ADR when a decision:
|
|
|
1433
1446
|
- **Affects other people or agents** who will work in this codebase later
|
|
1434
1447
|
- **Has real alternatives** that were considered and rejected
|
|
1435
1448
|
|
|
1436
|
-
|
|
1449
|
+
## NEVER
|
|
1437
1450
|
|
|
1438
|
-
-
|
|
1439
|
-
-
|
|
1440
|
-
-
|
|
1441
|
-
-
|
|
1451
|
+
- **NEVER write an ADR after implementation** unless documenting a discovery — ADRs capture the decision moment, not post-hoc rationalization. If the code already exists, you're writing documentation, not a decision record.
|
|
1452
|
+
- **NEVER include only one option** — a "decision" with one choice isn't a decision. If there's genuinely only one approach, you don't need an ADR.
|
|
1453
|
+
- **NEVER use vague consequences** like "improves maintainability" — cite specific metrics, affected files, or observable outcomes.
|
|
1454
|
+
- **NEVER let ADRs accumulate without review** — stale "proposed" ADRs that languish >2 weeks should be accepted or withdrawn.
|
|
1455
|
+
- **NEVER modify an accepted ADR** — if the decision changes, SUPERSEDE with a new ADR that links back. History matters.
|
|
1456
|
+
- **NEVER write an ADR for trivial decisions** — library version bumps, formatting changes, and routine maintenance don't warrant the ceremony. Reserve ADRs for decisions that are hard to reverse or have team-wide impact.
|
|
1457
|
+
- **NEVER skip the "rejected alternatives" section** — documenting WHY you didn't pick option B is often more valuable than explaining why you picked A.
|
|
1442
1458
|
|
|
1443
1459
|
When in doubt: if a future agent working in this codebase would benefit from knowing _why_ this choice was made, write the ADR.
|
|
1444
1460
|
|
|
@@ -1460,62 +1476,33 @@ Every ADR goes through four phases. Do not skip phases.
|
|
|
1460
1476
|
|
|
1461
1477
|
### Phase 0: Scan the Codebase
|
|
1462
1478
|
|
|
1463
|
-
Before asking
|
|
1479
|
+
Before asking questions, gather enough repo context to avoid contradictory ADRs:
|
|
1464
1480
|
|
|
1465
|
-
1. **Find existing ADRs.** Check \`contributing/decisions/\`, \`docs/decisions/\`, \`adr/\`, \`docs/adr/\`, \`decisions
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
- Any ADRs this new decision might supersede
|
|
1470
|
-
|
|
1471
|
-
2. **Check the tech stack.** Read \`package.json\`, \`go.mod\`, \`requirements.txt\`, \`Cargo.toml\`, or equivalent. Note relevant dependencies and versions.
|
|
1472
|
-
|
|
1473
|
-
3. **Find related code patterns.** If the decision involves a specific area (e.g., "how we handle auth"), scan for existing implementations. Identify the specific files, directories, and patterns that will be affected by the decision.
|
|
1474
|
-
|
|
1475
|
-
4. **Check for ADR references in code.** Look for ADR references in comments and docs (see "Code ↔ ADR Linking" below). This reveals which existing decisions govern which parts of the codebase.
|
|
1476
|
-
|
|
1477
|
-
5. **Note what you found.** Carry this context into Phase 1 — it will sharpen your questions and prevent the ADR from contradicting existing decisions.
|
|
1481
|
+
1. **Find existing ADRs.** Check \`contributing/decisions/\`, \`docs/decisions/\`, \`adr/\`, \`docs/adr/\`, \`decisions/\`. Note directory, naming, status style, related decisions, and anything this ADR might supersede.
|
|
1482
|
+
2. **Check the tech stack.** Read \`package.json\`, \`go.mod\`, \`requirements.txt\`, \`Cargo.toml\`, or equivalent for relevant dependencies and versions.
|
|
1483
|
+
3. **Find related code patterns.** Identify the files, directories, and implementation patterns this decision will affect.
|
|
1484
|
+
4. **Look for ADR references in code.** Comments and docs often reveal which decisions already govern an area.
|
|
1478
1485
|
|
|
1479
1486
|
### Phase 1: Capture Intent (Socratic)
|
|
1480
1487
|
|
|
1481
|
-
Interview the human to understand the decision space. Ask questions **one at a time**, building on previous answers.
|
|
1488
|
+
Interview the human to understand the decision space. Ask questions **one at a time**, building on previous answers.
|
|
1482
1489
|
|
|
1483
1490
|
**Core questions** (ask in roughly this order, skip what's already clear from context or Phase 0):
|
|
1484
1491
|
|
|
1485
|
-
1. **What are you deciding?**
|
|
1486
|
-
2. **Why now?**
|
|
1487
|
-
3. **What constraints exist?**
|
|
1488
|
-
4. **What does success look like?**
|
|
1489
|
-
5. **What options
|
|
1490
|
-
6. **What's
|
|
1491
|
-
7. **Who
|
|
1492
|
-
8. **What would an agent need to implement this?**
|
|
1493
|
-
|
|
1494
|
-
**Adaptive follow-ups**: Based on answers, probe deeper where the decision is fuzzy. Common follow-ups:
|
|
1495
|
-
|
|
1496
|
-
- "What's the worst-case outcome if this decision is wrong?"
|
|
1497
|
-
- "What would make you revisit this in 6 months?"
|
|
1498
|
-
- "Is there anything you're explicitly choosing NOT to do?"
|
|
1499
|
-
- "What prior art or existing patterns in the codebase does this relate to?"
|
|
1500
|
-
- "I found [existing ADR/pattern] — does this new decision interact with it?"
|
|
1492
|
+
1. **What are you deciding?** Push for a short verb phrase title ("Choose X", "Adopt Y", "Replace Z with W").
|
|
1493
|
+
2. **Why now?** What changed, broke, or will break if you do nothing?
|
|
1494
|
+
3. **What constraints exist?** Tech stack, timeline, budget, team skills, compliance, and existing decisions.
|
|
1495
|
+
4. **What does success look like?** Turn "it works" into measurable outcomes.
|
|
1496
|
+
5. **What options were considered?** At least two real alternatives, each with a core tradeoff.
|
|
1497
|
+
6. **What's the current lean?** Capture the instinct and the reason.
|
|
1498
|
+
7. **Who decides?** List decision-makers, consulted experts, and informed stakeholders.
|
|
1499
|
+
8. **What would an agent need to implement this?** Affected files, patterns to follow/avoid, config changes, and verification.
|
|
1501
1500
|
|
|
1502
|
-
**
|
|
1501
|
+
**Adaptive follow-ups**: probe where the decision is fuzzy. Useful prompts: "What's the worst-case outcome if this is wrong?", "What would make you revisit this in 6 months?", and "I found [existing ADR/pattern] — does this interact with it?"
|
|
1503
1502
|
|
|
1504
|
-
**
|
|
1503
|
+
**When to stop**: stop only when every ADR section, especially Implementation Plan and Verification, can be filled without guessing.
|
|
1505
1504
|
|
|
1506
|
-
|
|
1507
|
-
>
|
|
1508
|
-
> - **Title**: {title}
|
|
1509
|
-
> - **Trigger**: {why now}
|
|
1510
|
-
> - **Constraints**: {list}
|
|
1511
|
-
> - **Options**: {option 1} vs {option 2} [vs ...]
|
|
1512
|
-
> - **Lean**: {which option and why}
|
|
1513
|
-
> - **Non-goals**: {what's explicitly out of scope}
|
|
1514
|
-
> - **Related ADRs/code**: {what exists that this interacts with}
|
|
1515
|
-
> - **Affected files/areas**: {where in the codebase this lands}
|
|
1516
|
-
> - **Verification**: {how we'll know it's implemented correctly}
|
|
1517
|
-
>
|
|
1518
|
-
> **Does this capture your intent? Anything to add or correct?**
|
|
1505
|
+
**Intent Summary Gate**: Before moving to Phase 2, summarize the title, trigger, constraints, options, current lean, non-goals, related ADRs/code, affected files, and verification plan, then ask: **Does this capture your intent? Anything to add or correct?**
|
|
1519
1506
|
|
|
1520
1507
|
Do NOT proceed to Phase 2 until the human confirms the summary.
|
|
1521
1508
|
|
|
@@ -1535,7 +1522,7 @@ Do NOT proceed to Phase 2 until the human confirms the summary.
|
|
|
1535
1522
|
|
|
1536
1523
|
- Use \`assets/templates/adr-simple.md\` for straightforward decisions (one clear winner, minimal tradeoffs).
|
|
1537
1524
|
- Use \`assets/templates/adr-madr.md\` when you need to document multiple options with structured pros/cons/drivers.
|
|
1538
|
-
|
|
1525
|
+
- See \`references/template-variants.md\` if unsure.
|
|
1539
1526
|
|
|
1540
1527
|
4. **Fill every section from the confirmed intent summary.** Do not leave placeholder text. Every section should contain real content or be removed (optional sections only).
|
|
1541
1528
|
|
|
@@ -1549,7 +1536,7 @@ Do NOT proceed to Phase 2 until the human confirms the summary.
|
|
|
1549
1536
|
|
|
1550
1537
|
### Phase 3: Review Against Checklist
|
|
1551
1538
|
|
|
1552
|
-
After drafting, review the ADR against the
|
|
1539
|
+
After drafting, review the ADR against the inline quality criteria above, then use \`references/review-checklist.md\` for the full pass.
|
|
1553
1540
|
|
|
1554
1541
|
**Present the review as a summary**, not a raw checklist dump. Format:
|
|
1555
1542
|
|
|
@@ -1564,70 +1551,29 @@ After drafting, review the ADR against the agent-readiness checklist in \`refere
|
|
|
1564
1551
|
>
|
|
1565
1552
|
> **Recommendation**: {Ship it / Fix the gaps first / Needs more Phase 1 work}
|
|
1566
1553
|
|
|
1567
|
-
Only surface failures and notable strengths
|
|
1568
|
-
|
|
1569
|
-
If there are gaps, propose specific fixes. Do not just flag problems — offer solutions and ask the human to approve.
|
|
1570
|
-
|
|
1571
|
-
Do not finalize until the ADR passes the checklist or the human explicitly accepts the gaps.
|
|
1554
|
+
Only surface failures and notable strengths. If there are gaps, propose specific fixes. Do not finalize until the ADR passes the checklist or the human explicitly accepts the gaps.
|
|
1572
1555
|
|
|
1573
1556
|
## Consulting ADRs (Read Workflow)
|
|
1574
1557
|
|
|
1575
1558
|
Agents should read existing ADRs **before implementing changes** in a codebase that has them. This is not part of the create-an-ADR workflow — it's a standalone operation any agent should do.
|
|
1576
1559
|
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
- Before starting work on a feature that touches architecture (auth, data layer, API design, infrastructure)
|
|
1580
|
-
- When you encounter a pattern in the code and wonder "why is it done this way?"
|
|
1581
|
-
- Before proposing a change that might contradict an existing decision
|
|
1582
|
-
- When a human says "check the ADRs" or "there's a decision about this"
|
|
1583
|
-
- When you find an ADR reference in a code comment
|
|
1584
|
-
|
|
1585
|
-
### How to Consult ADRs
|
|
1586
|
-
|
|
1587
|
-
1. **Find the ADR directory.** Check \`contributing/decisions/\`, \`docs/decisions/\`, \`adr/\`, \`docs/adr/\`, \`decisions/\`. Also check for an index file (\`README.md\` or \`index.md\`).
|
|
1560
|
+
Consult ADRs:
|
|
1588
1561
|
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
3. **
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
6. **Reference ADRs in your work.** Add ADR references in code comments and PR descriptions (see "Code ↔ ADR Linking" below).
|
|
1562
|
+
1. **Before architecture work.** Especially auth, data layer, API design, infra, or any change that could contradict an existing decision.
|
|
1563
|
+
2. **Find the ADR directory and index.** Check \`contributing/decisions/\`, \`docs/decisions/\`, \`adr/\`, \`docs/adr/\`, \`decisions/\`, then read \`README.md\` or \`index.md\` if present.
|
|
1564
|
+
3. **Focus on accepted ADRs first.** Those are the active rules unless superseded.
|
|
1565
|
+
4. **Read the full ADR, not just the title.** Context, decision, consequences, non-goals, and Implementation Plan all matter.
|
|
1566
|
+
5. **Follow the Implementation Plan.** If an ADR says new queries go through \`src/db/\`, do that.
|
|
1567
|
+
6. **Escalate conflicts.** If code and ADR disagree, or a new change would contradict an accepted ADR, flag it or draft a superseding ADR.
|
|
1568
|
+
7. **Reference the ADR in your work.** Link it in code comments or PR notes when the decision directly governs the change.
|
|
1598
1569
|
|
|
1599
1570
|
## Code ↔ ADR Linking
|
|
1600
1571
|
|
|
1601
1572
|
ADRs should be bidirectionally linked to the code they govern.
|
|
1602
1573
|
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
\`\`\`markdown
|
|
1608
|
-
## Implementation Plan
|
|
1609
|
-
|
|
1610
|
-
- **Affected paths**: \`src/db/\`, \`src/config/database.ts\`, \`tests/integration/\`
|
|
1611
|
-
- **Pattern**: all database queries go through \`src/db/client.ts\`
|
|
1612
|
-
\`\`\`
|
|
1613
|
-
|
|
1614
|
-
### Code → ADR (in comments)
|
|
1615
|
-
|
|
1616
|
-
When implementing code guided by an ADR, add a comment referencing it:
|
|
1617
|
-
|
|
1618
|
-
\`\`\`typescript
|
|
1619
|
-
// ADR: Using sql.js for test database
|
|
1620
|
-
// See: docs/decisions/2025-06-15-use-sqlite-for-test-database.md
|
|
1621
|
-
import initSqlJs from 'sql.js';
|
|
1622
|
-
\`\`\`
|
|
1623
|
-
|
|
1624
|
-
Keep these lightweight — one comment at the entry point, not on every line. The goal is discoverability: when a future agent reads this code, they can find the reasoning.
|
|
1625
|
-
|
|
1626
|
-
### Why This Matters
|
|
1627
|
-
|
|
1628
|
-
- An agent working in \`src/db/\` can find which ADRs govern that area
|
|
1629
|
-
- An agent reading an ADR can find the code that implements it
|
|
1630
|
-
- When an ADR is superseded, the code references make it easy to find all code that needs updating
|
|
1574
|
+
- **ADR → Code**: the Implementation Plan should name affected paths, patterns, config changes, and verification commands.
|
|
1575
|
+
- **Code → ADR**: add one lightweight comment at the entry point that links back to the governing ADR.
|
|
1576
|
+
- **Why**: this makes the reasoning discoverable in both directions and makes superseded decisions easier to unwind.
|
|
1631
1577
|
|
|
1632
1578
|
## Other Operations
|
|
1633
1579
|
|
|
@@ -1650,7 +1596,7 @@ After an ADR is accepted:
|
|
|
1650
1596
|
2. **Reference the ADR in PRs.** Link to the ADR in PR descriptions, e.g. "Implements \`contributing/decisions/2025-06-15-use-sqlite-for-test-database.md\`."
|
|
1651
1597
|
3. **Add code references.** Add ADR path comments at key implementation points.
|
|
1652
1598
|
4. **Check verification criteria.** Once implementation is complete, walk through the Verification checkboxes. Update the ADR with results in \`## More Information\`.
|
|
1653
|
-
5. **Revisit when triggers fire.** If the ADR specified revisit conditions
|
|
1599
|
+
5. **Revisit when triggers fire.** If the ADR specified revisit conditions, monitor them.
|
|
1654
1600
|
|
|
1655
1601
|
### Index
|
|
1656
1602
|
|
|
@@ -1671,64 +1617,36 @@ node scripts/bootstrap_adr.js
|
|
|
1671
1617
|
|
|
1672
1618
|
This creates the directory, an index file, and a filled-out first ADR ("Adopt architecture decision records") with real content explaining why the team is using ADRs. Use \`--json\` for machine-readable output. Use \`--dir\` to override the directory name.
|
|
1673
1619
|
|
|
1674
|
-
### Categories (Large Projects)
|
|
1675
|
-
|
|
1676
|
-
For repos with many ADRs, organize by subdirectory:
|
|
1677
|
-
|
|
1678
|
-
\`\`\`
|
|
1679
|
-
docs/decisions/
|
|
1680
|
-
backend/
|
|
1681
|
-
2025-06-15-use-postgres.md
|
|
1682
|
-
frontend/
|
|
1683
|
-
2025-06-20-use-react.md
|
|
1684
|
-
infrastructure/
|
|
1685
|
-
2025-07-01-use-terraform.md
|
|
1686
|
-
\`\`\`
|
|
1687
|
-
|
|
1688
|
-
Date prefixes are local to each category. Choose a categorization scheme early (by layer, by domain, by team) and document it in the index.
|
|
1689
|
-
|
|
1690
1620
|
## Resources
|
|
1691
1621
|
|
|
1692
1622
|
### scripts/
|
|
1693
1623
|
|
|
1694
1624
|
- \`scripts/new_adr.js\` — create a new ADR file from a template, using repo conventions.
|
|
1695
|
-
- \`scripts/set_adr_status.js\` — update
|
|
1696
|
-
- \`scripts/bootstrap_adr.js\` — create ADR dir, \`README.md\`, and initial "Adopt ADRs" decision.
|
|
1625
|
+
- \`scripts/set_adr_status.js\` — update ADR status in-place. Use \`--json\` for machine output.
|
|
1626
|
+
- \`scripts/bootstrap_adr.js\` — create ADR dir, \`README.md\`, and an initial "Adopt ADRs" decision.
|
|
1697
1627
|
|
|
1698
1628
|
### references/
|
|
1699
1629
|
|
|
1700
|
-
- \`references/review-checklist.md\` —
|
|
1630
|
+
- \`references/review-checklist.md\` — full Phase 3 checklist.
|
|
1701
1631
|
- \`references/adr-conventions.md\` — directory, filename, status, and lifecycle conventions.
|
|
1702
|
-
- \`references/template-variants.md\` — when to use simple vs MADR
|
|
1703
|
-
- \`references/examples.md\` — filled-out
|
|
1632
|
+
- \`references/template-variants.md\` — when to use simple vs MADR.
|
|
1633
|
+
- \`references/examples.md\` — filled-out examples.
|
|
1704
1634
|
|
|
1705
1635
|
### assets/
|
|
1706
1636
|
|
|
1707
1637
|
- \`assets/templates/adr-simple.md\` — lean template for straightforward decisions.
|
|
1708
|
-
- \`assets/templates/adr-madr.md\` — MADR 4.0 template for
|
|
1709
|
-
- \`assets/templates/adr-readme.md\` — default ADR index scaffold
|
|
1638
|
+
- \`assets/templates/adr-madr.md\` — MADR 4.0 template for structured tradeoffs.
|
|
1639
|
+
- \`assets/templates/adr-readme.md\` — default ADR index scaffold.
|
|
1710
1640
|
|
|
1711
1641
|
### Script Usage
|
|
1712
1642
|
|
|
1713
|
-
From the directory that contains this skill's \`scripts/\` folder:
|
|
1714
|
-
|
|
1715
1643
|
\`\`\`bash
|
|
1716
|
-
# Simple ADR
|
|
1717
1644
|
node scripts/new_adr.js --title "Choose database" --status proposed
|
|
1718
1645
|
|
|
1719
|
-
# MADR-style with options
|
|
1720
|
-
node scripts/new_adr.js --title "Choose database" --template madr --status proposed
|
|
1721
|
-
|
|
1722
|
-
# With index update
|
|
1723
1646
|
node scripts/new_adr.js --title "Choose database" --status proposed --update-index
|
|
1724
|
-
|
|
1725
|
-
# Bootstrap a new repo
|
|
1647
|
+
node scripts/new_adr.js --title "Choose database" --template madr --status proposed
|
|
1726
1648
|
node scripts/bootstrap_adr.js --dir docs/decisions
|
|
1727
1649
|
\`\`\`
|
|
1728
1650
|
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
- Scripts auto-detect ADR directory and filename strategy.
|
|
1732
|
-
- Use \`--dir\` and \`--strategy\` to override.
|
|
1733
|
-
- Use \`--json\` to emit machine-readable output.
|
|
1651
|
+
Scripts auto-detect ADR directory and filename strategy. Use \`--dir\`, \`--strategy\`, and \`--json\` when you need overrides or machine-readable output.
|
|
1734
1652
|
`}];export{e as default};
|