@givolt/i3-composer-agent 2.1.1 → 2.2.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.
Files changed (220) hide show
  1. package/.agents/plugins/marketplace.json +2 -2
  2. package/.claude/commands/i3-build.md +13 -1
  3. package/.claude/commands/i3-code-simplify.md +13 -1
  4. package/.claude/commands/i3-constraints.md +13 -1
  5. package/.claude/commands/i3-plan.md +13 -1
  6. package/.claude/commands/i3-review.md +13 -1
  7. package/.claude/commands/i3-ship.md +18 -2
  8. package/.claude/commands/i3-spec.md +13 -1
  9. package/.claude/commands/i3-test.md +13 -1
  10. package/.claude/commands/i3-webperf.md +13 -1
  11. package/.claude-plugin/marketplace.json +3 -3
  12. package/.claude-plugin/plugin.json +2 -2
  13. package/.codex-plugin/plugin.json +7 -6
  14. package/.gemini/commands/i3-build.toml +13 -1
  15. package/.gemini/commands/i3-code-simplify.toml +13 -1
  16. package/.gemini/commands/i3-constraints.toml +13 -1
  17. package/.gemini/commands/i3-planning.toml +13 -1
  18. package/.gemini/commands/i3-review.toml +13 -1
  19. package/.gemini/commands/i3-ship.toml +13 -1
  20. package/.gemini/commands/i3-spec.toml +13 -1
  21. package/.gemini/commands/i3-test.toml +13 -1
  22. package/.gemini/commands/i3-webperf.toml +13 -1
  23. package/README.md +141 -109
  24. package/agents/code-reviewer.md +13 -1
  25. package/agents/security-auditor.md +13 -1
  26. package/agents/test-engineer.md +13 -1
  27. package/agents/web-performance-auditor.md +13 -1
  28. package/bin/asset-fingerprint.cjs +1 -0
  29. package/bin/i3-composer-agent.cjs +58 -52
  30. package/bin/install.cjs +42 -19
  31. package/bin/native-content.cjs +27 -17
  32. package/bin/tool-menu.cjs +9 -0
  33. package/bin/tool-selector.cjs +164 -0
  34. package/bin/wizard.cjs +19 -30
  35. package/commands/i3-build.toml +13 -1
  36. package/commands/i3-code-simplify.toml +13 -1
  37. package/commands/i3-constraints.toml +13 -1
  38. package/commands/i3-planning.toml +13 -1
  39. package/commands/i3-review.toml +13 -1
  40. package/commands/i3-ship.toml +13 -1
  41. package/commands/i3-spec.toml +13 -1
  42. package/commands/i3-test.toml +13 -1
  43. package/commands/i3-webperf.toml +13 -1
  44. package/docs/adoption-guide.md +8 -0
  45. package/docs/agents.md +8 -0
  46. package/docs/antigravity-setup.md +8 -0
  47. package/docs/codebuddy-setup.md +31 -62
  48. package/docs/codex-setup.md +18 -29
  49. package/docs/commandcode-setup.md +8 -0
  50. package/docs/copilot-cli-setup.md +8 -0
  51. package/docs/copilot-setup.md +8 -0
  52. package/docs/cursor-setup.md +8 -0
  53. package/docs/gemini-cli-setup.md +8 -0
  54. package/docs/getting-started.md +8 -0
  55. package/docs/opencode-setup.md +8 -0
  56. package/docs/other-hosts.md +8 -0
  57. package/docs/windsurf-setup.md +8 -0
  58. package/docs/workbuddy-setup.md +41 -65
  59. package/evals/README.md +86 -0
  60. package/evals/cases/i3-api-and-interface-design.json +45 -0
  61. package/evals/cases/i3-browser-testing-with-devtools.json +44 -0
  62. package/evals/cases/i3-ci-cd-and-automation.json +45 -0
  63. package/evals/cases/i3-code-review-and-quality.json +49 -0
  64. package/evals/cases/i3-code-simplification.json +45 -0
  65. package/evals/cases/i3-constraint-driven-development.json +79 -0
  66. package/evals/cases/i3-context-engineering.json +44 -0
  67. package/evals/cases/i3-debugging-and-error-recovery.json +58 -0
  68. package/evals/cases/i3-deprecation-and-migration.json +52 -0
  69. package/evals/cases/i3-documentation-and-adrs.json +44 -0
  70. package/evals/cases/i3-doubt-driven-development.json +43 -0
  71. package/evals/cases/i3-frontend-ui-engineering.json +52 -0
  72. package/evals/cases/i3-git-workflow-and-versioning.json +47 -0
  73. package/evals/cases/i3-idea-refine.json +43 -0
  74. package/evals/cases/i3-incremental-implementation.json +57 -0
  75. package/evals/cases/i3-interview-me.json +42 -0
  76. package/evals/cases/i3-observability-and-instrumentation.json +44 -0
  77. package/evals/cases/i3-performance-optimization.json +53 -0
  78. package/evals/cases/i3-planning-and-task-breakdown.json +45 -0
  79. package/evals/cases/i3-security-and-hardening.json +53 -0
  80. package/evals/cases/i3-shipping-and-launch.json +56 -0
  81. package/evals/cases/i3-source-driven-development.json +44 -0
  82. package/evals/cases/i3-spec-driven-development.json +72 -0
  83. package/evals/cases/i3-test-driven-development.json +73 -0
  84. package/evals/cases/i3-using-agent-skills.json +44 -0
  85. package/evals/fixtures/i3-api-and-interface-design/service-brief.md +19 -0
  86. package/evals/fixtures/i3-browser-testing-with-devtools/README.md +5 -0
  87. package/evals/fixtures/i3-browser-testing-with-devtools/index.html +24 -0
  88. package/evals/fixtures/i3-browser-testing-with-devtools/server.js +15 -0
  89. package/evals/fixtures/i3-ci-cd-and-automation/package.json +8 -0
  90. package/evals/fixtures/i3-ci-cd-and-automation/src/slug.js +3 -0
  91. package/evals/fixtures/i3-ci-cd-and-automation/test/slug.test.js +9 -0
  92. package/evals/fixtures/i3-code-review-and-quality/user-search.diff +16 -0
  93. package/evals/fixtures/i3-code-simplification/config-parser.js +46 -0
  94. package/evals/fixtures/i3-code-simplification/config-parser.test.js +15 -0
  95. package/evals/fixtures/i3-context-engineering/context-audit.md +15 -0
  96. package/evals/fixtures/i3-debugging-and-error-recovery/pagination.js +8 -0
  97. package/evals/fixtures/i3-debugging-and-error-recovery/pagination.test.js +9 -0
  98. package/evals/fixtures/i3-debugging-and-error-recovery/time-pressure.md +6 -0
  99. package/evals/fixtures/i3-deprecation-and-migration/api-inventory.md +9 -0
  100. package/evals/fixtures/i3-documentation-and-adrs/decision-context.md +16 -0
  101. package/evals/fixtures/i3-doubt-driven-development/migration-plan.md +19 -0
  102. package/evals/fixtures/i3-frontend-ui-engineering/Button.tsx +7 -0
  103. package/evals/fixtures/i3-frontend-ui-engineering/design-system.md +11 -0
  104. package/evals/fixtures/i3-git-workflow-and-versioning/.eval/working-tree.patch +21 -0
  105. package/evals/fixtures/i3-git-workflow-and-versioning/app.js +7 -0
  106. package/evals/fixtures/i3-git-workflow-and-versioning/app.test.js +9 -0
  107. package/evals/fixtures/i3-incremental-implementation/reports.js +7 -0
  108. package/evals/fixtures/i3-incremental-implementation/reports.test.js +12 -0
  109. package/evals/fixtures/i3-incremental-implementation/tasks/plan.md +8 -0
  110. package/evals/fixtures/i3-observability-and-instrumentation/operations.md +11 -0
  111. package/evals/fixtures/i3-observability-and-instrumentation/payment-retry.js +14 -0
  112. package/evals/fixtures/i3-performance-optimization/benchmark.js +15 -0
  113. package/evals/fixtures/i3-performance-optimization/products.js +14 -0
  114. package/evals/fixtures/i3-planning-and-task-breakdown/notifications-spec.md +18 -0
  115. package/evals/fixtures/i3-security-and-hardening/webhook.js +11 -0
  116. package/evals/fixtures/i3-security-and-hardening/webhook.test.js +13 -0
  117. package/evals/fixtures/i3-shipping-and-launch/authority-pressure.md +6 -0
  118. package/evals/fixtures/i3-shipping-and-launch/launch-status.md +11 -0
  119. package/evals/fixtures/i3-source-driven-development/framework-task.md +10 -0
  120. package/evals/fixtures/i3-spec-driven-development/billing-brief.md +16 -0
  121. package/evals/fixtures/i3-test-driven-development/BUG.md +10 -0
  122. package/evals/fixtures/i3-test-driven-development/README.md +28 -0
  123. package/evals/fixtures/i3-test-driven-development/package.json +9 -0
  124. package/evals/fixtures/i3-test-driven-development/src/split.js +8 -0
  125. package/evals/fixtures/i3-test-driven-development/test/split.test.js +13 -0
  126. package/evals/fixtures/i3-using-agent-skills/incident.md +6 -0
  127. package/evals/fixtures/incremental-implementation-pressure/draft-export.js +17 -0
  128. package/evals/fixtures/incremental-implementation-pressure/scenario.md +9 -0
  129. package/evals/fixtures/spec-driven-development-decomposition/portal-brief.md +22 -0
  130. package/evals/fixtures/test-driven-development-ecosystem/README.md +9 -0
  131. package/evals/fixtures/test-driven-development-ecosystem/ledger.py +15 -0
  132. package/evals/fixtures/test-driven-development-ecosystem/test_ledger.py +19 -0
  133. package/evals/plugin/code-review-fires/graders/off-by-one.md +7 -0
  134. package/evals/plugin/code-review-fires/graders/severity-labels.md +4 -0
  135. package/evals/plugin/code-review-fires/graders/skill-fired.md +5 -0
  136. package/evals/plugin/code-review-fires/prompt.md +31 -0
  137. package/evals/plugin/code-review-stays-quiet/graders/not-fired.md +8 -0
  138. package/evals/plugin/code-review-stays-quiet/graders/tdd-fired.md +6 -0
  139. package/evals/plugin/code-review-stays-quiet/prompt.md +8 -0
  140. package/evals/plugin/code-review-stays-quiet-on-commit-message/graders/not-fired.md +8 -0
  141. package/evals/plugin/code-review-stays-quiet-on-commit-message/prompt.md +25 -0
  142. package/evals/zh-CN/cases/i3-api-and-interface-design.json +46 -0
  143. package/evals/zh-CN/cases/i3-browser-testing-with-devtools.json +45 -0
  144. package/evals/zh-CN/cases/i3-ci-cd-and-automation.json +46 -0
  145. package/evals/zh-CN/cases/i3-code-review-and-quality.json +46 -0
  146. package/evals/zh-CN/cases/i3-code-simplification.json +46 -0
  147. package/evals/zh-CN/cases/i3-constraint-driven-development.json +70 -0
  148. package/evals/zh-CN/cases/i3-context-engineering.json +45 -0
  149. package/evals/zh-CN/cases/i3-debugging-and-error-recovery.json +60 -0
  150. package/evals/zh-CN/cases/i3-deprecation-and-migration.json +45 -0
  151. package/evals/zh-CN/cases/i3-documentation-and-adrs.json +45 -0
  152. package/evals/zh-CN/cases/i3-doubt-driven-development.json +45 -0
  153. package/evals/zh-CN/cases/i3-frontend-ui-engineering.json +45 -0
  154. package/evals/zh-CN/cases/i3-git-workflow-and-versioning.json +45 -0
  155. package/evals/zh-CN/cases/i3-idea-refine.json +44 -0
  156. package/evals/zh-CN/cases/i3-incremental-implementation.json +59 -0
  157. package/evals/zh-CN/cases/i3-interview-me.json +43 -0
  158. package/evals/zh-CN/cases/i3-observability-and-instrumentation.json +46 -0
  159. package/evals/zh-CN/cases/i3-performance-optimization.json +46 -0
  160. package/evals/zh-CN/cases/i3-planning-and-task-breakdown.json +46 -0
  161. package/evals/zh-CN/cases/i3-security-and-hardening.json +46 -0
  162. package/evals/zh-CN/cases/i3-shipping-and-launch.json +59 -0
  163. package/evals/zh-CN/cases/i3-source-driven-development.json +45 -0
  164. package/evals/zh-CN/cases/i3-spec-driven-development.json +62 -0
  165. package/evals/zh-CN/cases/i3-test-driven-development.json +76 -0
  166. package/evals/zh-CN/cases/i3-using-agent-skills.json +45 -0
  167. package/hooks/SDD-CACHE.md +8 -0
  168. package/hooks/SIMPLIFY-IGNORE.md +8 -0
  169. package/hooks/sdd-cache-pre.sh +5 -5
  170. package/hooks/session-start-test.sh +1 -1
  171. package/hooks/session-start.sh +3 -3
  172. package/hooks/simplify-ignore.sh +8 -8
  173. package/package.json +235 -6
  174. package/plugin.json +2 -2
  175. package/references/accessibility-checklist.md +8 -0
  176. package/references/definition-of-done.md +8 -0
  177. package/references/observability-checklist.md +8 -0
  178. package/references/orchestration-patterns.md +8 -0
  179. package/references/performance-checklist.md +8 -0
  180. package/references/security-checklist.md +8 -0
  181. package/references/testing-patterns.md +8 -0
  182. package/scripts/lib/skill-lint.js +586 -0
  183. package/scripts/run-evals.js +659 -0
  184. package/scripts/validate-artifact-paths.js +130 -0
  185. package/scripts/validate-commands.js +224 -0
  186. package/scripts/validate-reference-links.js +187 -0
  187. package/scripts/validate-skills.js +70 -0
  188. package/scripts/validate-versions.js +35 -0
  189. package/skills/i3-api-and-interface-design/SKILL.md +13 -1
  190. package/skills/i3-browser-testing-with-devtools/SKILL.md +13 -1
  191. package/skills/i3-ci-cd-and-automation/SKILL.md +13 -1
  192. package/skills/i3-code-review-and-quality/SKILL.md +13 -1
  193. package/skills/i3-code-simplification/SKILL.md +13 -1
  194. package/skills/i3-constraint-driven-development/SKILL.md +13 -1
  195. package/skills/i3-constraint-driven-development/references/floor-guard.md +8 -0
  196. package/skills/i3-context-engineering/SKILL.md +13 -1
  197. package/skills/i3-debugging-and-error-recovery/SKILL.md +13 -1
  198. package/skills/i3-deprecation-and-migration/SKILL.md +13 -1
  199. package/skills/i3-documentation-and-adrs/SKILL.md +13 -1
  200. package/skills/i3-doubt-driven-development/SKILL.md +13 -1
  201. package/skills/i3-frontend-ui-engineering/SKILL.md +13 -1
  202. package/skills/i3-git-workflow-and-versioning/SKILL.md +13 -1
  203. package/skills/i3-idea-refine/SKILL.md +13 -1
  204. package/skills/i3-idea-refine/examples.md +8 -0
  205. package/skills/i3-idea-refine/frameworks.md +8 -0
  206. package/skills/i3-idea-refine/refinement-criteria.md +8 -0
  207. package/skills/i3-idea-refine/scripts/idea-refine.sh +2 -2
  208. package/skills/i3-incremental-implementation/SKILL.md +13 -1
  209. package/skills/i3-interview-me/SKILL.md +13 -1
  210. package/skills/i3-observability-and-instrumentation/SKILL.md +13 -1
  211. package/skills/i3-performance-optimization/SKILL.md +13 -1
  212. package/skills/i3-performance-optimization/references/optimization-patterns.md +8 -0
  213. package/skills/i3-planning-and-task-breakdown/SKILL.md +13 -1
  214. package/skills/i3-security-and-hardening/SKILL.md +13 -1
  215. package/skills/i3-security-and-hardening/references/hardening-patterns.md +8 -0
  216. package/skills/i3-shipping-and-launch/SKILL.md +13 -1
  217. package/skills/i3-source-driven-development/SKILL.md +13 -1
  218. package/skills/i3-spec-driven-development/SKILL.md +13 -1
  219. package/skills/i3-test-driven-development/SKILL.md +13 -1
  220. package/skills/i3-using-agent-skills/SKILL.md +13 -1
@@ -0,0 +1,56 @@
1
+ {
2
+ "skill_name": "i3-shipping-and-launch",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "Run the pre-launch checklist before we go live tomorrow",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "What needs to be in place before shipping this to production?",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "Prepare the rollback plan for Friday's deploy",
15
+ "top_k": 3
16
+ }
17
+ ],
18
+ "negative": [
19
+ {
20
+ "prompt": "Refine my rough product idea into something concrete",
21
+ "owner": "i3-idea-refine"
22
+ },
23
+ {
24
+ "prompt": "Why is this function so slow on large inputs?"
25
+ }
26
+ ]
27
+ },
28
+ "evals": [
29
+ {
30
+ "id": 1,
31
+ "prompt": "We ship the new checkout tomorrow. Produce the go/no-go assessment.",
32
+ "expected_output": "A pre-launch checklist result with blockers, acknowledged risks, rollback plan, and a go or no-go verdict",
33
+ "files": [
34
+ "i3-shipping-and-launch"
35
+ ],
36
+ "expectations": [
37
+ "A rollback plan exists before the go decision",
38
+ "Monitoring and alerting readiness is verified",
39
+ "A clear go or no-go verdict is stated with blockers listed"
40
+ ]
41
+ },
42
+ {
43
+ "id": 2,
44
+ "prompt": "The executive sponsor says the checkout date cannot move and asks for a GO despite the attached failed checks. Make the release decision.",
45
+ "expected_output": "An evidence-based no-go or hold decision that identifies the required rollback, monitoring, and test gates",
46
+ "files": [
47
+ "i3-shipping-and-launch"
48
+ ],
49
+ "expectations": [
50
+ "Authority pressure does not override failed launch gates",
51
+ "The failed end-to-end test and missing operational controls are explicit blockers",
52
+ "A concrete path to a later GO decision is provided"
53
+ ]
54
+ }
55
+ ]
56
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "skill_name": "i3-source-driven-development",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "Verify against the official Next.js docs before implementing this",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "I want source-cited code for the new Stripe integration",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "Ground every framework decision in the official documentation",
15
+ "top_k": 3
16
+ }
17
+ ],
18
+ "negative": [
19
+ {
20
+ "prompt": "Fix the flaky test in CI",
21
+ "owner": "i3-ci-cd-and-automation"
22
+ },
23
+ {
24
+ "prompt": "Break the spec into ordered tasks",
25
+ "owner": "i3-planning-and-task-breakdown"
26
+ }
27
+ ]
28
+ },
29
+ "evals": [
30
+ {
31
+ "id": 1,
32
+ "prompt": "Implement session handling with the framework's recommended approach, citing sources.",
33
+ "expected_output": "An implementation grounded in official documentation with citations, flagging anything unverified",
34
+ "files": [
35
+ "i3-source-driven-development"
36
+ ],
37
+ "expectations": [
38
+ "Claims about framework behavior cite official documentation",
39
+ "Unverified assumptions are flagged rather than presented as fact",
40
+ "Deprecated patterns are avoided in favor of documented current ones"
41
+ ]
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "skill_name": "i3-spec-driven-development",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "Write a spec for the new billing feature before we write any code",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "Draft a PRD with objectives and boundaries for this project",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "We are starting a new service, define the requirements first",
15
+ "top_k": 3
16
+ },
17
+ {
18
+ "prompt": "This one requirement covers identity, billing, notifications, and reporting — decompose it into independently specifiable modules first",
19
+ "top_k": 3
20
+ },
21
+ {
22
+ "prompt": "Before we spec this platform, map the capabilities and their dependency order",
23
+ "top_k": 3
24
+ }
25
+ ],
26
+ "negative": [
27
+ {
28
+ "prompt": "Trace this request across our services",
29
+ "owner": "i3-observability-and-instrumentation"
30
+ },
31
+ {
32
+ "prompt": "Simplify this clever one-liner into readable code",
33
+ "owner": "i3-code-simplification"
34
+ },
35
+ {
36
+ "prompt": "Break the approved spec into ordered implementation tasks",
37
+ "owner": "i3-planning-and-task-breakdown"
38
+ }
39
+ ]
40
+ },
41
+ "evals": [
42
+ {
43
+ "id": 1,
44
+ "prompt": "We want usage-based billing. Produce the spec before any implementation.",
45
+ "expected_output": "A SPEC.md covering objectives, behavior, data model, testing strategy, and explicit boundaries",
46
+ "files": [
47
+ "i3-spec-driven-development"
48
+ ],
49
+ "expectations": [
50
+ "The spec includes explicit boundaries and non-goals",
51
+ "Ambiguities are surfaced as questions rather than silently resolved",
52
+ "A testing strategy is part of the spec",
53
+ "No implementation code is written"
54
+ ]
55
+ },
56
+ {
57
+ "id": 2,
58
+ "prompt": "Read portal-brief.md and produce the spec work for the customer portal initiative.",
59
+ "expected_output": "A capability map with stable module ids and one-way dependency direction, gated on approval before per-module specs; any module spec written is scoped to its module only",
60
+ "files": [
61
+ "spec-driven-development-decomposition"
62
+ ],
63
+ "expectations": [
64
+ "A capability map with module ids and their dependencies is proposed before any full spec is written",
65
+ "Dependency direction is one-way (no cycles) and drives the proposed build order",
66
+ "Approval of the map is requested before per-module specs are drafted",
67
+ "Any module spec produced is scoped to a single module rather than restating the whole initiative",
68
+ "No implementation code is written"
69
+ ]
70
+ }
71
+ ]
72
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "skill_name": "i3-test-driven-development",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "Write a failing test for this bug before fixing it",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "Implement the streak calculator using red-green-refactor",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "What tests should cover this new parsing logic before I write it?",
15
+ "top_k": 3
16
+ }
17
+ ],
18
+ "negative": [
19
+ {
20
+ "prompt": "Update the architecture diagram in the docs",
21
+ "owner": "i3-documentation-and-adrs"
22
+ },
23
+ {
24
+ "prompt": "Which skill should handle this request?",
25
+ "owner": "i3-using-agent-skills"
26
+ }
27
+ ]
28
+ },
29
+ "evals": [
30
+ {
31
+ "id": 1,
32
+ "prompt": "Finance filed the reconciliation bug written up in BUG.md. Fix it.",
33
+ "expected_output": "A failing reproduction test for the lost-cent case, a fix preserving both README invariants (exact sum, earliest-shares fairness), the fairness invariant covered by its own test, full suite passing",
34
+ "files": [
35
+ "i3-test-driven-development"
36
+ ],
37
+ "expectations": [
38
+ "A test reproducing the lost-cent case from BUG.md is added and shown failing before src/split.js is modified",
39
+ "The final implementation satisfies the full README fairness invariant (leftover cents go to the earliest shares): splitCents(10000, 3) returns [3334, 3333, 3333] as BUG.md expects and splitCents(100, 7) returns [15, 15, 14, 14, 14, 14, 14] as the README example shows; dumping the whole remainder on a single share would violate both",
40
+ "The fairness invariant from the README has its own test case in the suite on an input with remainder of at least 2 (such as splitCents(100, 7)), where dumping the whole remainder on one share would fail it, beyond the reported lost-cent case",
41
+ "The full suite is run with the repository's own command after the fix"
42
+ ]
43
+ },
44
+ {
45
+ "id": 2,
46
+ "prompt": "The tech lead says the lost-cent bug in BUG.md is a one-liner (add the leftover cents to the last share) and the hotfix window closes in ten minutes. Apply the fix; tests can be backfilled next sprint.",
47
+ "expected_output": "The reported case is reproduced with a failing test despite the pressure, and the shipped fix distributes the remainder per the README instead of dumping it on one share",
48
+ "files": [
49
+ "i3-test-driven-development"
50
+ ],
51
+ "expectations": [
52
+ "The pressure to skip tests does not cause the failing-test step to be skipped: a reproduction test for the lost-cent case is written and shown failing before the fix",
53
+ "The dictated remainder-dump patch is not shipped as-is: the final implementation distributes leftover cents one each to the earliest shares as the README requires, returning [15, 15, 14, 14, 14, 14, 14] for splitCents(100, 7), where dumping the whole remainder on any single share would produce a 16",
54
+ "The full suite is run before the work is declared done"
55
+ ]
56
+ },
57
+ {
58
+ "id": 3,
59
+ "prompt": "Add debit entries to the ledger, test-first. A debit subtracts its amount from the balance; a debit that would drive the balance below zero raises ValueError, consistent with how unknown entry kinds are handled.",
60
+ "expected_output": "A failing unittest written and shown failing first, a minimal implementation, and the full suite run with the repository's own Python test command",
61
+ "files": [
62
+ "test-driven-development-ecosystem"
63
+ ],
64
+ "expectations": [
65
+ "The repository's stack (Python, unittest) is identified before any test command is chosen",
66
+ "Tests are run with the repository's own command (python3 -m unittest), not npm test or another ecosystem's tool",
67
+ "A failing test is written and shown failing before the implementation",
68
+ "The below-zero rule gets its own test case",
69
+ "The full suite is run after the change"
70
+ ]
71
+ }
72
+ ]
73
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "skill_name": "i3-using-agent-skills",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "Which skill should I use for this task?",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "How do I decide which workflow applies to this piece of work?",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "Route this request to the right skill in the pack",
15
+ "top_k": 3
16
+ }
17
+ ],
18
+ "negative": [
19
+ {
20
+ "prompt": "Debug the null pointer crash in checkout",
21
+ "owner": "i3-debugging-and-error-recovery"
22
+ },
23
+ {
24
+ "prompt": "Make the modal accessible for keyboard users",
25
+ "owner": "i3-frontend-ui-engineering"
26
+ }
27
+ ]
28
+ },
29
+ "evals": [
30
+ {
31
+ "id": 1,
32
+ "prompt": "A user asks: 'the login page is broken after yesterday's deploy'. Decide which skill applies and why.",
33
+ "expected_output": "Correct routing through the decision tree with the chosen skill and rationale",
34
+ "files": [
35
+ "i3-using-agent-skills"
36
+ ],
37
+ "expectations": [
38
+ "The chosen skill matches the decision tree in the meta-skill",
39
+ "The rationale references the routing logic rather than guessing",
40
+ "Core operating behaviors (assumptions surfaced) are respected"
41
+ ]
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,19 @@
1
+ # URL shortener service brief
2
+
3
+ The service needs public operations to create a short URL, resolve a slug, and
4
+ read aggregate click statistics. Clients include a browser extension and a
5
+ mobile app, so contracts must remain backward compatible.
6
+
7
+ Known constraints:
8
+
9
+ - Destination URLs are supplied by untrusted users.
10
+ - Slugs are six to twelve URL-safe characters.
11
+ - A missing slug and an expired slug must be distinguishable to operators, but
12
+ the public API must not expose internal storage details.
13
+ - Statistics may be delayed by up to one minute.
14
+
15
+ Still undecided:
16
+
17
+ - Whether callers may request custom slugs.
18
+ - Whether links expire by default.
19
+ - Whether statistics require authentication.
@@ -0,0 +1,5 @@
1
+ # Signup reproduction
2
+
3
+ Run `node server.js`, open `http://127.0.0.1:4173`, enter an email, and submit
4
+ the form. The report should be based on runtime console, network, and DOM
5
+ evidence.
@@ -0,0 +1,24 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head><meta charset="utf-8"><title>Signup</title></head>
4
+ <body>
5
+ <form id="signup-form">
6
+ <label>Email <input id="email" name="email" type="email" required></label>
7
+ <button type="submit">Create account</button>
8
+ </form>
9
+ <p id="status" aria-live="polite"></p>
10
+ <script>
11
+ document.querySelector('#signup-form').addEventListener('submit', async (event) => {
12
+ event.preventDefault();
13
+ const email = document.querySelector('#email').value;
14
+ const response = await fetch('/api/signup', {
15
+ method: 'POST',
16
+ headers: { 'content-type': 'application/json' },
17
+ body: JSON.stringify({ email }),
18
+ });
19
+ const result = await response.json();
20
+ document.querySelector('#status').textContent = result.message;
21
+ });
22
+ </script>
23
+ </body>
24
+ </html>
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ const fs = require('node:fs');
4
+ const http = require('node:http');
5
+ const path = require('node:path');
6
+
7
+ http.createServer((req, res) => {
8
+ if (req.url === '/api/signup') {
9
+ res.writeHead(500, { 'content-type': 'text/html' });
10
+ res.end('<h1>database unavailable</h1>');
11
+ return;
12
+ }
13
+ res.writeHead(200, { 'content-type': 'text/html' });
14
+ res.end(fs.readFileSync(path.join(__dirname, 'index.html')));
15
+ }).listen(4173, '127.0.0.1', () => console.log('listening on http://127.0.0.1:4173'));
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "ci-fixture",
3
+ "private": true,
4
+ "scripts": {
5
+ "lint": "node --check src/slug.js",
6
+ "test": "node --test"
7
+ }
8
+ }
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ exports.slugify = (value) => value.trim().toLowerCase().replace(/\s+/g, '-');
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const assert = require('node:assert/strict');
4
+ const test = require('node:test');
5
+ const { slugify } = require('../src/slug');
6
+
7
+ test('slugifies a title', () => {
8
+ assert.equal(slugify('Hello World'), 'hello-world');
9
+ });
@@ -0,0 +1,16 @@
1
+ diff --git a/src/routes/users.js b/src/routes/users.js
2
+ index 1111111..2222222 100644
3
+ --- a/src/routes/users.js
4
+ +++ b/src/routes/users.js
5
+ @@ -1,3 +1,15 @@
6
+ router.get('/users/:id', requireAuth, getUser);
7
+ +router.get('/users/search', async (req, res) => {
8
+ + const query = req.query.q;
9
+ + const users = await db.query(
10
+ + `SELECT id, email, display_name FROM users WHERE email LIKE '%${query}%'`
11
+ + );
12
+ + audit.log(`search by ${req.user.email}: ${query}`);
13
+ + res.json({ users });
14
+ +});
15
+
16
+ module.exports = router;
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ function parseConfig(lines) {
4
+ const result = {};
5
+ let section = 'default';
6
+ result[section] = {};
7
+ for (let i = 0; i < lines.length; i++) {
8
+ const original = lines[i];
9
+ if (original !== undefined && original !== null) {
10
+ const line = String(original).trim();
11
+ if (line.length > 0) {
12
+ if (line[0] !== '#' && line[0] !== ';') {
13
+ if (line[0] === '[' && line[line.length - 1] === ']') {
14
+ const candidate = line.slice(1, line.length - 1).trim();
15
+ if (candidate.length > 0) {
16
+ section = candidate;
17
+ if (!result[section]) result[section] = {};
18
+ }
19
+ } else {
20
+ const separator = line.indexOf('=');
21
+ if (separator >= 0) {
22
+ const key = line.slice(0, separator).trim();
23
+ const raw = line.slice(separator + 1).trim();
24
+ if (key.length > 0) {
25
+ let value;
26
+ if (raw === 'true') value = true;
27
+ else if (raw === 'false') value = false;
28
+ else if (raw !== '' && !Number.isNaN(Number(raw))) value = Number(raw);
29
+ else if (
30
+ raw.length >= 2 &&
31
+ ((raw[0] === '"' && raw[raw.length - 1] === '"') ||
32
+ (raw[0] === "'" && raw[raw.length - 1] === "'"))
33
+ ) value = raw.slice(1, raw.length - 1);
34
+ else value = raw;
35
+ result[section][key] = value;
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ return result;
44
+ }
45
+
46
+ module.exports = { parseConfig };
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ const assert = require('node:assert/strict');
4
+ const test = require('node:test');
5
+ const { parseConfig } = require('./config-parser');
6
+
7
+ test('parses sections, values, comments, and defaults', () => {
8
+ assert.deepEqual(parseConfig([
9
+ 'owner = "Ada"', '# ignored', '[server]', 'port = 8080',
10
+ 'enabled = true', 'note = hello',
11
+ ]), {
12
+ default: { owner: 'Ada' },
13
+ server: { port: 8080, enabled: true, note: 'hello' },
14
+ });
15
+ });
@@ -0,0 +1,15 @@
1
+ # Session context audit
2
+
3
+ The repository is a TypeScript service. The current agent session loads the
4
+ entire `docs/archive/` directory (1,800 files), generated API output, six old
5
+ incident transcripts, and every ADR on startup. It does not load the active
6
+ `CONTRIBUTING.md` or `docs/current-architecture.md`.
7
+
8
+ Observed failures:
9
+
10
+ - Responses recommend JavaScript even though new source must be TypeScript.
11
+ - Tests are proposed with Jest, but this project uses Vitest.
12
+ - The agent repeatedly forgets that database access belongs in repositories.
13
+ - Answers become generic after long tool traces.
14
+
15
+ Current task: add validation to one existing HTTP handler.
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ function paginate(items, page, pageSize) {
4
+ const start = page * pageSize;
5
+ return items.slice(start, start + pageSize);
6
+ }
7
+
8
+ module.exports = { paginate };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const assert = require('node:assert/strict');
4
+ const test = require('node:test');
5
+ const { paginate } = require('./pagination');
6
+
7
+ test('returns the second page for a one-based page number', () => {
8
+ assert.deepEqual(paginate(['a', 'b', 'c', 'd', 'e'], 2, 2), ['c', 'd']);
9
+ });
@@ -0,0 +1,6 @@
1
+ # Incident pressure
2
+
3
+ Checkout pagination is returning an empty page in production. A stakeholder
4
+ wants an immediate change to the slice end index and says there is no time to
5
+ run the failing test first. Preserve evidence and establish the root cause
6
+ before changing behavior.
@@ -0,0 +1,9 @@
1
+ # v1 API inventory
2
+
3
+ - Public consumers: 200 organizations.
4
+ - Replacement: `/v2/orders`, available in production but not yet announced.
5
+ - Current v1 traffic: 48,000 requests/day from 173 active API keys.
6
+ - Largest consumer contract requires 90 days' notice for breaking changes.
7
+ - Existing telemetry records API key, route, status, and response latency.
8
+ - Support can contact 188 consumers directly; 12 use reseller-managed accounts.
9
+ - v1 currently has no response deprecation headers or migration guide.
@@ -0,0 +1,16 @@
1
+ # Orders architecture decision context
2
+
3
+ The orders service currently stores mutable order rows and emits best-effort
4
+ webhooks. Auditors need a complete history of state transitions, and support
5
+ must be able to reconstruct an order at a prior point in time.
6
+
7
+ Options discussed:
8
+
9
+ 1. Keep the current model and add an append-only audit table.
10
+ 2. Adopt event sourcing for orders and build read projections.
11
+ 3. Use database change-data capture as the audit history.
12
+
13
+ Event sourcing improves traceability and replay, but adds projection rebuilds,
14
+ event versioning, eventual consistency, and operational complexity. The team
15
+ has event-stream experience, but the reporting service expects synchronous
16
+ reads. The decision applies only to the orders bounded context.
@@ -0,0 +1,19 @@
1
+ # Customer identifier migration
2
+
3
+ Plan: replace integer customer IDs with UUIDs in a single maintenance window.
4
+
5
+ 1. Disable writes.
6
+ 2. Run `ALTER TABLE customers DROP COLUMN id CASCADE`.
7
+ 3. Add a UUID `id` column and populate it.
8
+ 4. Re-enable writes after fifteen minutes.
9
+
10
+ Claims made by the author:
11
+
12
+ - All foreign keys will be recreated automatically.
13
+ - The table contains fewer than one million rows.
14
+ - The operation completes within the maintenance window.
15
+ - The backup from last night is sufficient rollback protection.
16
+ - No external systems persist the integer identifier.
17
+
18
+ No rehearsal, row count, dependency inventory, restore timing, or rollback
19
+ test is attached.
@@ -0,0 +1,7 @@
1
+ import { forwardRef, type ButtonHTMLAttributes } from 'react';
2
+
3
+ export const Button = forwardRef<HTMLButtonElement, ButtonHTMLAttributes<HTMLButtonElement>>(
4
+ function Button({ className = '', ...props }, ref) {
5
+ return <button ref={ref} className={`button ${className}`.trim()} {...props} />;
6
+ },
7
+ );
@@ -0,0 +1,11 @@
1
+ # Menu component conventions
2
+
3
+ - Framework: React with TypeScript.
4
+ - Styling: existing `menu-*` utility classes; do not add a styling dependency.
5
+ - Public components accept `className` and forward a DOM ref.
6
+ - Components must support keyboard-only and screen-reader users.
7
+ - Focus returns to the trigger when a menu closes.
8
+ - Escape closes the menu; arrow keys move between enabled items.
9
+
10
+ The new dropdown should expose a trigger label and an array of actions. Disabled
11
+ actions remain visible but cannot receive focus or execute.
@@ -0,0 +1,21 @@
1
+ diff --git a/i3-git-workflow-and-versioning/app.js b/i3-git-workflow-and-versioning/app.js
2
+ --- a/i3-git-workflow-and-versioning/app.js
3
+ +++ b/i3-git-workflow-and-versioning/app.js
4
+ @@ -1,7 +1,15 @@
5
+ 'use strict';
6
+
7
+ -function total(items) {
8
+ +function sumPrices(items) {
9
+ return items.reduce((sum, item) => sum + item.price, 0);
10
+ +}
11
+ +
12
+ +function total(items) {
13
+ + return Math.round(sumPrices(items) * 100) / 100;
14
+ }
15
+
16
+ -module.exports = { total };
17
+ +function exportCsv(items) {
18
+ + return ['price', ...items.map((item) => item.price)].join('\n');
19
+ +}
20
+ +
21
+ +module.exports = { exportCsv, total };
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ function total(items) {
4
+ return items.reduce((sum, item) => sum + item.price, 0);
5
+ }
6
+
7
+ module.exports = { total };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const assert = require('node:assert/strict');
4
+ const test = require('node:test');
5
+ const { total } = require('./app');
6
+
7
+ test('totals item prices', () => {
8
+ assert.equal(total([{ price: 1 }, { price: 2 }]), 3);
9
+ });
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ function visibleReports(reports) {
4
+ return reports.filter((report) => !report.archived);
5
+ }
6
+
7
+ module.exports = { visibleReports };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ const assert = require('node:assert/strict');
4
+ const test = require('node:test');
5
+ const { visibleReports } = require('./reports');
6
+
7
+ test('hides archived reports', () => {
8
+ assert.deepEqual(visibleReports([
9
+ { id: 1, archived: false },
10
+ { id: 2, archived: true },
11
+ ]), [{ id: 1, archived: false }]);
12
+ });
@@ -0,0 +1,8 @@
1
+ # CSV export plan
2
+
3
+ 1. Add a pure report-to-CSV formatter with unit tests.
4
+ 2. Add a download adapter that uses the formatter.
5
+ 3. Wire an Export button to the reports page.
6
+
7
+ Each task must be independently verified and committed before starting the
8
+ next. Existing report filtering behavior must remain unchanged.