@manhd_d/ai-harness 0.0.0-stage → 0.6.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.
Files changed (231) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/CONTRIBUTING.md +13 -0
  3. package/LICENSE +21 -0
  4. package/README.md +328 -2
  5. package/SECURITY.md +10 -0
  6. package/adapters/ai-python/adapter.yaml +46 -0
  7. package/adapters/ai-python/checks/verification.yaml +32 -0
  8. package/adapters/ai-python/evals/cases.json +25 -0
  9. package/adapters/ai-python/rules/architecture.md +3 -0
  10. package/adapters/ai-python/rules/database.md +3 -0
  11. package/adapters/ai-python/rules/performance.md +3 -0
  12. package/adapters/ai-python/rules/security.md +3 -0
  13. package/adapters/ai-python/rules.md +29 -0
  14. package/adapters/ai-python/skills/harness-ai-python-rag-access/SKILL.md +23 -0
  15. package/adapters/ai-python/skills/harness-ai-python-tool-safety/SKILL.md +23 -0
  16. package/adapters/astro/README.md +23 -0
  17. package/adapters/astro/adapter.yaml +31 -0
  18. package/adapters/astro/checks/verification.yaml +59 -0
  19. package/adapters/astro/evals/cases.json +45 -0
  20. package/adapters/astro/rules/architecture.md +9 -0
  21. package/adapters/astro/rules/deployment.md +9 -0
  22. package/adapters/astro/rules/performance.md +8 -0
  23. package/adapters/astro/rules/security.md +9 -0
  24. package/adapters/astro/rules.md +17 -0
  25. package/adapters/astro/skills/harness-astro-cloudflare/SKILL.md +27 -0
  26. package/adapters/astro/skills/harness-astro-islands/SKILL.md +28 -0
  27. package/adapters/astro/skills/harness-astro-microfrontend/SKILL.md +27 -0
  28. package/adapters/astro/skills/harness-astro-performance/SKILL.md +27 -0
  29. package/adapters/astro/skills/harness-astro-project-architecture/SKILL.md +28 -0
  30. package/adapters/astro/skills/harness-astro-seo/SKILL.md +28 -0
  31. package/adapters/java-spring/adapter.yaml +42 -0
  32. package/adapters/java-spring/checks/verification.yaml +33 -0
  33. package/adapters/java-spring/evals/cases.json +25 -0
  34. package/adapters/java-spring/rules/architecture.md +3 -0
  35. package/adapters/java-spring/rules/database.md +3 -0
  36. package/adapters/java-spring/rules/performance.md +3 -0
  37. package/adapters/java-spring/rules/security.md +3 -0
  38. package/adapters/java-spring/rules.md +34 -0
  39. package/adapters/java-spring/skills/harness-java-spring-database-migration/SKILL.md +23 -0
  40. package/adapters/java-spring/skills/harness-java-spring-kafka-outbox/SKILL.md +23 -0
  41. package/adapters/java-spring/skills/harness-java-spring-spring-api/SKILL.md +23 -0
  42. package/adapters/kubernetes/adapter.yaml +58 -0
  43. package/adapters/kubernetes/checks/verification.yaml +63 -0
  44. package/adapters/kubernetes/evals/cases.json +25 -0
  45. package/adapters/kubernetes/rules/architecture.md +5 -0
  46. package/adapters/kubernetes/rules/reliability.md +5 -0
  47. package/adapters/kubernetes/rules/security.md +5 -0
  48. package/adapters/kubernetes/rules.md +9 -0
  49. package/adapters/kubernetes/skills/harness-kubernetes-helm-release/SKILL.md +26 -0
  50. package/adapters/kubernetes/skills/harness-kubernetes-rollout-safety/SKILL.md +27 -0
  51. package/adapters/kubernetes/skills/harness-kubernetes-workload-review/SKILL.md +27 -0
  52. package/adapters/react-native/adapter.yaml +28 -0
  53. package/adapters/react-native/checks/verification.yaml +30 -0
  54. package/adapters/react-native/evals/cases.json +25 -0
  55. package/adapters/react-native/rules/architecture.md +3 -0
  56. package/adapters/react-native/rules/database.md +3 -0
  57. package/adapters/react-native/rules/performance.md +3 -0
  58. package/adapters/react-native/rules/security.md +3 -0
  59. package/adapters/react-native/rules.md +23 -0
  60. package/adapters/react-native/skills/harness-react-native-device-permissions/SKILL.md +23 -0
  61. package/adapters/react-native/skills/harness-react-native-offline-sync/SKILL.md +23 -0
  62. package/adapters/react-nextjs/adapter.yaml +28 -0
  63. package/adapters/react-nextjs/checks/verification.yaml +49 -0
  64. package/adapters/react-nextjs/evals/cases.json +25 -0
  65. package/adapters/react-nextjs/rules/architecture.md +3 -0
  66. package/adapters/react-nextjs/rules/database.md +3 -0
  67. package/adapters/react-nextjs/rules/performance.md +3 -0
  68. package/adapters/react-nextjs/rules/security.md +3 -0
  69. package/adapters/react-nextjs/rules.md +27 -0
  70. package/adapters/react-nextjs/skills/harness-react-nextjs-accessible-ui/SKILL.md +23 -0
  71. package/adapters/react-nextjs/skills/harness-react-nextjs-server-boundaries/SKILL.md +23 -0
  72. package/bin/aih.js +4 -0
  73. package/capabilities/devops/README.md +24 -0
  74. package/capabilities/devops/capability.json +20 -0
  75. package/capabilities/devops/checks/verification.json +17 -0
  76. package/capabilities/devops/evals/cases.json +25 -0
  77. package/capabilities/devops/skills/harness-devops-ci-cd/SKILL.md +27 -0
  78. package/capabilities/devops/skills/harness-devops-deployment/SKILL.md +27 -0
  79. package/capabilities/devops/skills/harness-devops-docker/SKILL.md +25 -0
  80. package/capabilities/devops/skills/harness-devops-incident-response/SKILL.md +27 -0
  81. package/capabilities/devops/skills/harness-devops-infrastructure/SKILL.md +28 -0
  82. package/capabilities/devops/skills/harness-devops-observability/SKILL.md +25 -0
  83. package/capabilities/devops/workflows/incident-recovery.md +12 -0
  84. package/capabilities/devops/workflows/pr-to-production.md +16 -0
  85. package/capabilities/monetization/README.md +40 -0
  86. package/capabilities/monetization/capability.json +25 -0
  87. package/capabilities/monetization/checks/verification.json +53 -0
  88. package/capabilities/monetization/evals/cases.json +45 -0
  89. package/capabilities/monetization/skills/harness-monetization-ad-placement-ux/SKILL.md +28 -0
  90. package/capabilities/monetization/skills/harness-monetization-adsense-integration/SKILL.md +29 -0
  91. package/capabilities/monetization/skills/harness-monetization-analytics-revenue/SKILL.md +28 -0
  92. package/capabilities/monetization/skills/harness-monetization-publisher-compliance/SKILL.md +28 -0
  93. package/capabilities/monetization/skills/harness-monetization-seo-growth/SKILL.md +28 -0
  94. package/capabilities/monetization/templates/ad-placement-review.md +31 -0
  95. package/capabilities/monetization/templates/analytics-report.md +38 -0
  96. package/capabilities/monetization/templates/privacy-consent-checklist.md +39 -0
  97. package/capabilities/monetization/templates/site-monetization-plan.md +46 -0
  98. package/capabilities/monetization/workflows/site-to-adsense.md +19 -0
  99. package/capabilities/monetization/workflows/traffic-to-revenue-review.md +14 -0
  100. package/capabilities/product/README.md +78 -0
  101. package/capabilities/product/agents/business-analyst.md +15 -0
  102. package/capabilities/product/agents/product-manager.md +15 -0
  103. package/capabilities/product/agents/product-owner.md +15 -0
  104. package/capabilities/product/agents/project-manager.md +15 -0
  105. package/capabilities/product/agents/requirements-reviewer.md +15 -0
  106. package/capabilities/product/capability.json +55 -0
  107. package/capabilities/product/checks/verification.json +41 -0
  108. package/capabilities/product/evals/cases.json +35 -0
  109. package/capabilities/product/skills/harness-product-acceptance-criteria/SKILL.md +25 -0
  110. package/capabilities/product/skills/harness-product-backlog-prioritization/SKILL.md +25 -0
  111. package/capabilities/product/skills/harness-product-brd-generation/SKILL.md +25 -0
  112. package/capabilities/product/skills/harness-product-business-analysis/SKILL.md +26 -0
  113. package/capabilities/product/skills/harness-product-document-review/SKILL.md +26 -0
  114. package/capabilities/product/skills/harness-product-idea-discovery/SKILL.md +27 -0
  115. package/capabilities/product/skills/harness-product-knowledge-analysis/SKILL.md +28 -0
  116. package/capabilities/product/skills/harness-product-prd-generation/SKILL.md +26 -0
  117. package/capabilities/product/skills/harness-product-product-research/SKILL.md +27 -0
  118. package/capabilities/product/skills/harness-product-srs-generation/SKILL.md +28 -0
  119. package/capabilities/product/skills/harness-product-traceability/SKILL.md +24 -0
  120. package/capabilities/product/skills/harness-product-use-case-generation/SKILL.md +26 -0
  121. package/capabilities/product/skills/harness-product-user-stories/SKILL.md +25 -0
  122. package/capabilities/product/templates/acceptance-criteria.md +27 -0
  123. package/capabilities/product/templates/backlog.md +23 -0
  124. package/capabilities/product/templates/brd.md +43 -0
  125. package/capabilities/product/templates/business-rules.md +27 -0
  126. package/capabilities/product/templates/decision-log.md +7 -0
  127. package/capabilities/product/templates/delivery-plan.md +18 -0
  128. package/capabilities/product/templates/idea.md +38 -0
  129. package/capabilities/product/templates/prd-lite.md +39 -0
  130. package/capabilities/product/templates/prd.md +36 -0
  131. package/capabilities/product/templates/product-brief.md +27 -0
  132. package/capabilities/product/templates/research.md +31 -0
  133. package/capabilities/product/templates/review-report.md +26 -0
  134. package/capabilities/product/templates/source-register.md +19 -0
  135. package/capabilities/product/templates/srs.md +46 -0
  136. package/capabilities/product/templates/traceability.md +23 -0
  137. package/capabilities/product/templates/use-cases.md +34 -0
  138. package/capabilities/product/workflows/change-impact-analysis.md +15 -0
  139. package/capabilities/product/workflows/confluence-to-spec.md +21 -0
  140. package/capabilities/product/workflows/document-driven.md +13 -0
  141. package/capabilities/product/workflows/idea-driven.md +13 -0
  142. package/capabilities/product/workflows/idea-to-prd.md +20 -0
  143. package/capabilities/uiux/README.md +21 -0
  144. package/capabilities/uiux/capability.json +23 -0
  145. package/capabilities/uiux/checks/verification.json +17 -0
  146. package/capabilities/uiux/design-system/tokens.example.json +21 -0
  147. package/capabilities/uiux/evals/cases.json +15 -0
  148. package/capabilities/uiux/integrations/confluence.md +10 -0
  149. package/capabilities/uiux/integrations/figma.md +10 -0
  150. package/capabilities/uiux/skills/harness-uiux-design-review/SKILL.md +24 -0
  151. package/capabilities/uiux/skills/harness-uiux-design-system/SKILL.md +24 -0
  152. package/capabilities/uiux/skills/harness-uiux-figma-design/SKILL.md +26 -0
  153. package/capabilities/uiux/skills/harness-uiux-requirements-analysis/SKILL.md +26 -0
  154. package/capabilities/uiux/skills/harness-uiux-screen-planning/SKILL.md +24 -0
  155. package/capabilities/uiux/skills/harness-uiux-user-flow/SKILL.md +25 -0
  156. package/capabilities/uiux/templates/requirements.md +7 -0
  157. package/capabilities/uiux/templates/screen-spec.md +15 -0
  158. package/capabilities/uiux/workflows/docs-to-figma.md +22 -0
  159. package/capabilities/uiux/workflows/idea-to-figma.md +11 -0
  160. package/cli/adapter-schema.js +42 -0
  161. package/cli/adapters.js +149 -0
  162. package/cli/capabilities.js +93 -0
  163. package/cli/composition.js +96 -0
  164. package/cli/evaluation-contract.js +40 -0
  165. package/cli/files.js +125 -0
  166. package/cli/harness.js +255 -0
  167. package/cli/main.js +114 -0
  168. package/cli/module-contract.js +29 -0
  169. package/core/agents/implementer.md +16 -0
  170. package/core/agents/planner.md +16 -0
  171. package/core/agents/reviewer.md +16 -0
  172. package/core/agents/security-reviewer.md +16 -0
  173. package/core/agents/test-engineer.md +16 -0
  174. package/core/checks/verification.json +28 -0
  175. package/core/evals/cases.json +25 -0
  176. package/core/evals/composition.json +33 -0
  177. package/core/policies/permissions.md +17 -0
  178. package/core/policies/security.md +15 -0
  179. package/core/rules/context.md +15 -0
  180. package/core/rules/foundations.md +24 -0
  181. package/core/skills/harness-ai-evaluation/SKILL.md +21 -0
  182. package/core/skills/harness-debugging/SKILL.md +20 -0
  183. package/core/skills/harness-review/SKILL.md +20 -0
  184. package/core/skills/harness-spec/SKILL.md +21 -0
  185. package/core/skills/harness-tdd/SKILL.md +20 -0
  186. package/core/workflows/bugfix.md +9 -0
  187. package/core/workflows/spec-to-code.md +19 -0
  188. package/core/workflows/upgrade.md +10 -0
  189. package/docs/adapters.md +83 -0
  190. package/docs/agent-handoffs.md +79 -0
  191. package/docs/architecture.md +107 -0
  192. package/docs/cli.md +104 -0
  193. package/docs/documentation-workflows.md +71 -0
  194. package/docs/end-to-end-workflow.md +116 -0
  195. package/docs/examples/ai-rag-service.md +60 -0
  196. package/docs/examples/astro-adsense-microtools.md +80 -0
  197. package/docs/examples/astro-micro-tools.md +125 -0
  198. package/docs/examples/document-driven-project.md +62 -0
  199. package/docs/examples/fullstack-web.md +80 -0
  200. package/docs/examples/idea-driven-project.md +71 -0
  201. package/docs/examples/react-native-app.md +57 -0
  202. package/docs/examples/spring-boot-api.md +100 -0
  203. package/docs/getting-started.md +148 -0
  204. package/docs/monetization.md +53 -0
  205. package/docs/npm-release.md +70 -0
  206. package/docs/openspec.md +23 -0
  207. package/docs/pull-request.md +37 -0
  208. package/docs/reference-analysis.md +22 -0
  209. package/docs/release-policy.md +17 -0
  210. package/docs/skill-matrix.md +134 -0
  211. package/docs/verification.md +20 -0
  212. package/docs/versioning.md +89 -0
  213. package/evals/README.md +45 -0
  214. package/evals/cases.json +41 -0
  215. package/harness.yaml +24 -0
  216. package/integrations/confluence/README.md +31 -0
  217. package/integrations/github/README.md +17 -0
  218. package/integrations/github/pull_request_template.md +22 -0
  219. package/integrations/gitlab/README.md +9 -0
  220. package/integrations/gitlab/harness-ci.yml +10 -0
  221. package/integrations/mcp/README.md +16 -0
  222. package/integrations/mcp/server-inventory.example.json +16 -0
  223. package/package.json +42 -4
  224. package/scripts/score-eval.js +40 -0
  225. package/templates/AGENTS.md +18 -0
  226. package/templates/openspec/.openspec.yaml +1 -0
  227. package/templates/openspec/config.yaml +14 -0
  228. package/templates/openspec/design.md +14 -0
  229. package/templates/openspec/proposal.md +19 -0
  230. package/templates/openspec/spec.md +8 -0
  231. package/templates/openspec/tasks.md +11 -0
@@ -0,0 +1,14 @@
1
+ # Design: {{change_id}}
2
+
3
+ ## Context
4
+ TODO: Verified constraints and current behavior.
5
+ ## Goals / Non-Goals
6
+ TODO: Scope boundaries.
7
+ ## Decisions
8
+ TODO: Chosen approach, alternatives and trade-offs.
9
+ ## Risks / Trade-offs
10
+ TODO: Authorization, failure modes, compatibility and mitigations.
11
+ ## Migration Plan
12
+ TODO: Rollout, observability and rollback.
13
+ ## Open Questions
14
+ TODO: Unresolved decisions and owner.
@@ -0,0 +1,19 @@
1
+ # {{change_id}}
2
+
3
+ ## Sources
4
+ TODO: Requirement links, repository paths and source revisions.
5
+
6
+ ## Why
7
+ TODO: Problem and user impact.
8
+
9
+ ## What Changes
10
+ TODO: Observable behavior, non-goals, risks and open questions.
11
+
12
+ ## Capabilities
13
+ ### New Capabilities
14
+ - `{{change_id}}`: TODO: Behavior introduced.
15
+ ### Modified Capabilities
16
+ - None until an existing capability is identified.
17
+
18
+ ## Impact
19
+ TODO: Affected repositories, APIs, data, dependencies and merge order.
@@ -0,0 +1,8 @@
1
+ ## ADDED Requirements
2
+
3
+ ### Requirement: {{change_id}} behavior
4
+ The system SHALL implement the agreed behavior described by TODO.
5
+
6
+ #### Scenario: Observable acceptance
7
+ - **WHEN** TODO: a defined actor performs an action under stated preconditions
8
+ - **THEN** TODO: an observable outcome occurs
@@ -0,0 +1,11 @@
1
+ # Tasks: {{change_id}}
2
+
3
+ ## 1. Acceptance and design
4
+ - [ ] 1.1 Replace draft placeholders and agree acceptance scenarios and test boundaries.
5
+ ## 2. Vertical implementation
6
+ - [ ] 2.1 Add one failing behavior test, implement the slice and record the green result.
7
+ ## 3. Verification and review
8
+ - [ ] 3.1 Run applicable quality gates; record commands, results and skipped checks.
9
+ - [ ] 3.2 Review standards, security and spec coverage; open a PR without merging.
10
+ ## 4. After merge
11
+ - [ ] 4.1 Verify all related PRs are merged, sync specs and archive using OpenSpec.