@harness-engineering/cli 1.14.0 → 1.16.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 (499) hide show
  1. package/dist/agents/commands/codex/AGENTS.md +39 -0
  2. package/dist/agents/commands/codex/harness/add-harness-component/SKILL.md +195 -0
  3. package/dist/agents/commands/codex/harness/add-harness-component/agents/openai.yaml +3 -0
  4. package/dist/agents/commands/codex/harness/cleanup-dead-code/SKILL.md +248 -0
  5. package/dist/agents/commands/codex/harness/cleanup-dead-code/agents/openai.yaml +3 -0
  6. package/dist/agents/commands/codex/harness/detect-doc-drift/SKILL.md +182 -0
  7. package/dist/agents/commands/codex/harness/detect-doc-drift/agents/openai.yaml +3 -0
  8. package/dist/agents/commands/codex/harness/enforce-architecture/SKILL.md +299 -0
  9. package/dist/agents/commands/codex/harness/enforce-architecture/agents/openai.yaml +3 -0
  10. package/dist/agents/commands/codex/harness/harness-architecture-advisor/SKILL.md +452 -0
  11. package/dist/agents/commands/codex/harness/harness-architecture-advisor/agents/openai.yaml +3 -0
  12. package/dist/agents/commands/codex/harness/harness-autopilot/SKILL.md +919 -0
  13. package/dist/agents/commands/codex/harness/harness-autopilot/agents/openai.yaml +3 -0
  14. package/dist/agents/commands/codex/harness/harness-brainstorming/SKILL.md +409 -0
  15. package/dist/agents/commands/codex/harness/harness-brainstorming/agents/openai.yaml +3 -0
  16. package/dist/agents/commands/codex/harness/harness-code-review/SKILL.md +860 -0
  17. package/dist/agents/commands/codex/harness/harness-code-review/agents/openai.yaml +3 -0
  18. package/dist/agents/commands/codex/harness/harness-codebase-cleanup/SKILL.md +227 -0
  19. package/dist/agents/commands/codex/harness/harness-codebase-cleanup/agents/openai.yaml +3 -0
  20. package/dist/agents/commands/codex/harness/harness-debugging/SKILL.md +369 -0
  21. package/dist/agents/commands/codex/harness/harness-debugging/agents/openai.yaml +3 -0
  22. package/dist/agents/commands/codex/harness/harness-dependency-health/SKILL.md +182 -0
  23. package/dist/agents/commands/codex/harness/harness-dependency-health/agents/openai.yaml +3 -0
  24. package/dist/agents/commands/codex/harness/harness-docs-pipeline/SKILL.md +463 -0
  25. package/dist/agents/commands/codex/harness/harness-docs-pipeline/agents/openai.yaml +3 -0
  26. package/dist/agents/commands/codex/harness/harness-execution/SKILL.md +513 -0
  27. package/dist/agents/commands/codex/harness/harness-execution/agents/openai.yaml +3 -0
  28. package/dist/agents/commands/codex/harness/harness-hotspot-detector/SKILL.md +164 -0
  29. package/dist/agents/commands/codex/harness/harness-hotspot-detector/agents/openai.yaml +3 -0
  30. package/dist/agents/commands/codex/harness/harness-impact-analysis/SKILL.md +187 -0
  31. package/dist/agents/commands/codex/harness/harness-impact-analysis/agents/openai.yaml +3 -0
  32. package/dist/agents/commands/codex/harness/harness-integrity/SKILL.md +170 -0
  33. package/dist/agents/commands/codex/harness/harness-integrity/agents/openai.yaml +3 -0
  34. package/dist/agents/commands/codex/harness/harness-onboarding/SKILL.md +291 -0
  35. package/dist/agents/commands/codex/harness/harness-onboarding/agents/openai.yaml +3 -0
  36. package/dist/agents/commands/codex/harness/harness-perf/SKILL.md +263 -0
  37. package/dist/agents/commands/codex/harness/harness-perf/agents/openai.yaml +3 -0
  38. package/dist/agents/commands/codex/harness/harness-planning/SKILL.md +582 -0
  39. package/dist/agents/commands/codex/harness/harness-planning/agents/openai.yaml +3 -0
  40. package/dist/agents/commands/codex/harness/harness-refactoring/SKILL.md +172 -0
  41. package/dist/agents/commands/codex/harness/harness-refactoring/agents/openai.yaml +3 -0
  42. package/dist/agents/commands/codex/harness/harness-release-readiness/SKILL.md +692 -0
  43. package/dist/agents/commands/codex/harness/harness-release-readiness/agents/openai.yaml +3 -0
  44. package/dist/agents/commands/codex/harness/harness-roadmap/SKILL.md +598 -0
  45. package/dist/agents/commands/codex/harness/harness-roadmap/agents/openai.yaml +3 -0
  46. package/dist/agents/commands/codex/harness/harness-security-scan/SKILL.md +157 -0
  47. package/dist/agents/commands/codex/harness/harness-security-scan/agents/openai.yaml +3 -0
  48. package/dist/agents/commands/codex/harness/harness-skill-authoring/SKILL.md +295 -0
  49. package/dist/agents/commands/codex/harness/harness-skill-authoring/agents/openai.yaml +3 -0
  50. package/dist/agents/commands/codex/harness/harness-soundness-review/SKILL.md +1270 -0
  51. package/dist/agents/commands/codex/harness/harness-soundness-review/agents/openai.yaml +3 -0
  52. package/dist/agents/commands/codex/harness/harness-supply-chain-audit/SKILL.md +247 -0
  53. package/dist/agents/commands/codex/harness/harness-supply-chain-audit/agents/openai.yaml +3 -0
  54. package/dist/agents/commands/codex/harness/harness-tdd/SKILL.md +180 -0
  55. package/dist/agents/commands/codex/harness/harness-tdd/agents/openai.yaml +3 -0
  56. package/dist/agents/commands/codex/harness/harness-test-advisor/SKILL.md +163 -0
  57. package/dist/agents/commands/codex/harness/harness-test-advisor/agents/openai.yaml +3 -0
  58. package/dist/agents/commands/codex/harness/harness-verification/SKILL.md +424 -0
  59. package/dist/agents/commands/codex/harness/harness-verification/agents/openai.yaml +3 -0
  60. package/dist/agents/commands/codex/harness/harness-verify/SKILL.md +162 -0
  61. package/dist/agents/commands/codex/harness/harness-verify/agents/openai.yaml +3 -0
  62. package/dist/agents/commands/codex/harness/initialize-harness-project/SKILL.md +235 -0
  63. package/dist/agents/commands/codex/harness/initialize-harness-project/agents/openai.yaml +3 -0
  64. package/dist/agents/commands/cursor/harness/add-harness-component.mdc +200 -0
  65. package/dist/agents/commands/cursor/harness/cleanup-dead-code.mdc +253 -0
  66. package/dist/agents/commands/cursor/harness/detect-doc-drift.mdc +187 -0
  67. package/dist/agents/commands/cursor/harness/enforce-architecture.mdc +304 -0
  68. package/dist/agents/commands/cursor/harness/harness-architecture-advisor.mdc +457 -0
  69. package/dist/agents/commands/cursor/harness/harness-autopilot.mdc +924 -0
  70. package/dist/agents/commands/cursor/harness/harness-brainstorming.mdc +414 -0
  71. package/dist/agents/commands/cursor/harness/harness-code-review.mdc +865 -0
  72. package/dist/agents/commands/cursor/harness/harness-codebase-cleanup.mdc +232 -0
  73. package/dist/agents/commands/cursor/harness/harness-debugging.mdc +374 -0
  74. package/dist/agents/commands/cursor/harness/harness-dependency-health.mdc +187 -0
  75. package/dist/agents/commands/cursor/harness/harness-docs-pipeline.mdc +468 -0
  76. package/dist/agents/commands/cursor/harness/harness-execution.mdc +518 -0
  77. package/dist/agents/commands/cursor/harness/harness-hotspot-detector.mdc +169 -0
  78. package/dist/agents/commands/cursor/harness/harness-impact-analysis.mdc +192 -0
  79. package/dist/agents/commands/cursor/harness/harness-integrity.mdc +175 -0
  80. package/dist/agents/commands/cursor/harness/harness-onboarding.mdc +296 -0
  81. package/dist/agents/commands/cursor/harness/harness-perf.mdc +268 -0
  82. package/dist/agents/commands/cursor/harness/harness-planning.mdc +587 -0
  83. package/dist/agents/commands/cursor/harness/harness-refactoring.mdc +177 -0
  84. package/dist/agents/commands/cursor/harness/harness-release-readiness.mdc +697 -0
  85. package/dist/agents/commands/cursor/harness/harness-roadmap.mdc +603 -0
  86. package/dist/agents/commands/cursor/harness/harness-security-scan.mdc +162 -0
  87. package/dist/agents/commands/cursor/harness/harness-skill-authoring.mdc +300 -0
  88. package/dist/agents/commands/cursor/harness/harness-soundness-review.mdc +1275 -0
  89. package/dist/agents/commands/cursor/harness/harness-supply-chain-audit.mdc +252 -0
  90. package/dist/agents/commands/cursor/harness/harness-tdd.mdc +185 -0
  91. package/dist/agents/commands/cursor/harness/harness-test-advisor.mdc +168 -0
  92. package/dist/agents/commands/cursor/harness/harness-verification.mdc +429 -0
  93. package/dist/agents/commands/cursor/harness/harness-verify.mdc +167 -0
  94. package/dist/agents/commands/cursor/harness/initialize-harness-project.mdc +240 -0
  95. package/dist/agents/skills/claude-code/enforce-architecture/SKILL.md +52 -0
  96. package/dist/agents/skills/claude-code/harness-api-design/SKILL.md +52 -0
  97. package/dist/agents/skills/claude-code/harness-architecture-advisor/SKILL.md +52 -0
  98. package/dist/agents/skills/claude-code/harness-auth/SKILL.md +52 -0
  99. package/dist/agents/skills/claude-code/harness-autopilot/SKILL.md +355 -45
  100. package/dist/agents/skills/claude-code/harness-autopilot/skill.yaml +12 -0
  101. package/dist/agents/skills/claude-code/harness-code-review/SKILL.md +97 -3
  102. package/dist/agents/skills/claude-code/harness-code-review/skill.yaml +6 -0
  103. package/dist/agents/skills/claude-code/harness-codebase-cleanup/SKILL.md +2 -4
  104. package/dist/agents/skills/claude-code/harness-database/SKILL.md +52 -0
  105. package/dist/agents/skills/claude-code/harness-deployment/SKILL.md +52 -0
  106. package/dist/agents/skills/claude-code/harness-planning/SKILL.md +99 -3
  107. package/dist/agents/skills/claude-code/harness-planning/skill.yaml +6 -0
  108. package/dist/agents/skills/claude-code/harness-pre-commit-review/SKILL.md +1 -1
  109. package/dist/agents/skills/claude-code/harness-product-spec/SKILL.md +5 -5
  110. package/dist/agents/skills/claude-code/harness-security-review/SKILL.md +27 -7
  111. package/dist/agents/skills/claude-code/harness-security-scan/SKILL.md +52 -0
  112. package/dist/agents/skills/claude-code/harness-supply-chain-audit/SKILL.md +281 -0
  113. package/dist/agents/skills/claude-code/harness-supply-chain-audit/skill.yaml +51 -0
  114. package/dist/agents/skills/codex/add-harness-component/SKILL.md +192 -0
  115. package/dist/agents/skills/codex/add-harness-component/skill.yaml +33 -0
  116. package/dist/agents/skills/codex/align-documentation/SKILL.md +213 -0
  117. package/dist/agents/skills/codex/align-documentation/skill.yaml +32 -0
  118. package/dist/agents/skills/codex/check-mechanical-constraints/SKILL.md +191 -0
  119. package/dist/agents/skills/codex/check-mechanical-constraints/skill.yaml +33 -0
  120. package/dist/agents/skills/codex/cleanup-dead-code/SKILL.md +245 -0
  121. package/dist/agents/skills/codex/cleanup-dead-code/skill.yaml +34 -0
  122. package/dist/agents/skills/codex/detect-doc-drift/SKILL.md +179 -0
  123. package/dist/agents/skills/codex/detect-doc-drift/skill.yaml +31 -0
  124. package/dist/agents/skills/codex/enforce-architecture/SKILL.md +296 -0
  125. package/dist/agents/skills/codex/enforce-architecture/skill.yaml +35 -0
  126. package/dist/agents/skills/codex/harness-accessibility/SKILL.md +281 -0
  127. package/dist/agents/skills/codex/harness-accessibility/skill.yaml +52 -0
  128. package/dist/agents/skills/codex/harness-api-design/SKILL.md +356 -0
  129. package/dist/agents/skills/codex/harness-api-design/skill.yaml +74 -0
  130. package/dist/agents/skills/codex/harness-architecture-advisor/SKILL.md +449 -0
  131. package/dist/agents/skills/codex/harness-architecture-advisor/skill.yaml +49 -0
  132. package/dist/agents/skills/codex/harness-auth/SKILL.md +331 -0
  133. package/dist/agents/skills/codex/harness-auth/skill.yaml +81 -0
  134. package/dist/agents/skills/codex/harness-autopilot/SKILL.md +916 -0
  135. package/dist/agents/skills/codex/harness-autopilot/skill.yaml +67 -0
  136. package/dist/agents/skills/codex/harness-brainstorming/SKILL.md +406 -0
  137. package/dist/agents/skills/codex/harness-brainstorming/skill.yaml +50 -0
  138. package/dist/agents/skills/codex/harness-caching/SKILL.md +309 -0
  139. package/dist/agents/skills/codex/harness-caching/skill.yaml +73 -0
  140. package/dist/agents/skills/codex/harness-chaos/SKILL.md +295 -0
  141. package/dist/agents/skills/codex/harness-chaos/skill.yaml +72 -0
  142. package/dist/agents/skills/codex/harness-code-review/SKILL.md +857 -0
  143. package/dist/agents/skills/codex/harness-code-review/skill.yaml +52 -0
  144. package/dist/agents/skills/codex/harness-codebase-cleanup/SKILL.md +224 -0
  145. package/dist/agents/skills/codex/harness-codebase-cleanup/skill.yaml +65 -0
  146. package/dist/agents/skills/codex/harness-compliance/SKILL.md +303 -0
  147. package/dist/agents/skills/codex/harness-compliance/skill.yaml +78 -0
  148. package/dist/agents/skills/codex/harness-containerization/SKILL.md +284 -0
  149. package/dist/agents/skills/codex/harness-containerization/skill.yaml +80 -0
  150. package/dist/agents/skills/codex/harness-data-pipeline/SKILL.md +274 -0
  151. package/dist/agents/skills/codex/harness-data-pipeline/skill.yaml +81 -0
  152. package/dist/agents/skills/codex/harness-data-validation/SKILL.md +343 -0
  153. package/dist/agents/skills/codex/harness-data-validation/skill.yaml +75 -0
  154. package/dist/agents/skills/codex/harness-database/SKILL.md +310 -0
  155. package/dist/agents/skills/codex/harness-database/skill.yaml +80 -0
  156. package/dist/agents/skills/codex/harness-debugging/SKILL.md +366 -0
  157. package/dist/agents/skills/codex/harness-debugging/skill.yaml +48 -0
  158. package/dist/agents/skills/codex/harness-dependency-health/SKILL.md +179 -0
  159. package/dist/agents/skills/codex/harness-dependency-health/skill.yaml +42 -0
  160. package/dist/agents/skills/codex/harness-deployment/SKILL.md +307 -0
  161. package/dist/agents/skills/codex/harness-deployment/skill.yaml +77 -0
  162. package/dist/agents/skills/codex/harness-design/SKILL.md +265 -0
  163. package/dist/agents/skills/codex/harness-design/skill.yaml +54 -0
  164. package/dist/agents/skills/codex/harness-design-mobile/SKILL.md +336 -0
  165. package/dist/agents/skills/codex/harness-design-mobile/skill.yaml +50 -0
  166. package/dist/agents/skills/codex/harness-design-system/SKILL.md +282 -0
  167. package/dist/agents/skills/codex/harness-design-system/skill.yaml +51 -0
  168. package/dist/agents/skills/codex/harness-design-web/SKILL.md +360 -0
  169. package/dist/agents/skills/codex/harness-design-web/skill.yaml +53 -0
  170. package/dist/agents/skills/codex/harness-diagnostics/SKILL.md +318 -0
  171. package/dist/agents/skills/codex/harness-diagnostics/skill.yaml +51 -0
  172. package/dist/agents/skills/codex/harness-docs-pipeline/SKILL.md +460 -0
  173. package/dist/agents/skills/codex/harness-docs-pipeline/skill.yaml +70 -0
  174. package/dist/agents/skills/codex/harness-dx/SKILL.md +276 -0
  175. package/dist/agents/skills/codex/harness-dx/skill.yaml +76 -0
  176. package/dist/agents/skills/codex/harness-e2e/SKILL.md +245 -0
  177. package/dist/agents/skills/codex/harness-e2e/skill.yaml +78 -0
  178. package/dist/agents/skills/codex/harness-event-driven/SKILL.md +280 -0
  179. package/dist/agents/skills/codex/harness-event-driven/skill.yaml +77 -0
  180. package/dist/agents/skills/codex/harness-execution/SKILL.md +510 -0
  181. package/dist/agents/skills/codex/harness-execution/skill.yaml +52 -0
  182. package/dist/agents/skills/codex/harness-feature-flags/SKILL.md +287 -0
  183. package/dist/agents/skills/codex/harness-feature-flags/skill.yaml +74 -0
  184. package/dist/agents/skills/codex/harness-git-workflow/SKILL.md +268 -0
  185. package/dist/agents/skills/codex/harness-git-workflow/skill.yaml +32 -0
  186. package/dist/agents/skills/codex/harness-hotspot-detector/SKILL.md +161 -0
  187. package/dist/agents/skills/codex/harness-hotspot-detector/skill.yaml +45 -0
  188. package/dist/agents/skills/codex/harness-i18n/SKILL.md +484 -0
  189. package/dist/agents/skills/codex/harness-i18n/skill.yaml +55 -0
  190. package/dist/agents/skills/codex/harness-i18n-process/SKILL.md +388 -0
  191. package/dist/agents/skills/codex/harness-i18n-process/skill.yaml +44 -0
  192. package/dist/agents/skills/codex/harness-i18n-workflow/SKILL.md +512 -0
  193. package/dist/agents/skills/codex/harness-i18n-workflow/skill.yaml +54 -0
  194. package/dist/agents/skills/codex/harness-impact-analysis/SKILL.md +184 -0
  195. package/dist/agents/skills/codex/harness-impact-analysis/skill.yaml +45 -0
  196. package/dist/agents/skills/codex/harness-incident-response/SKILL.md +223 -0
  197. package/dist/agents/skills/codex/harness-incident-response/skill.yaml +78 -0
  198. package/dist/agents/skills/codex/harness-infrastructure-as-code/SKILL.md +279 -0
  199. package/dist/agents/skills/codex/harness-infrastructure-as-code/skill.yaml +80 -0
  200. package/dist/agents/skills/codex/harness-integration-test/SKILL.md +271 -0
  201. package/dist/agents/skills/codex/harness-integration-test/skill.yaml +73 -0
  202. package/dist/agents/skills/codex/harness-integrity/SKILL.md +167 -0
  203. package/dist/agents/skills/codex/harness-integrity/skill.yaml +48 -0
  204. package/dist/agents/skills/codex/harness-knowledge-mapper/SKILL.md +195 -0
  205. package/dist/agents/skills/codex/harness-knowledge-mapper/skill.yaml +50 -0
  206. package/dist/agents/skills/codex/harness-load-testing/SKILL.md +274 -0
  207. package/dist/agents/skills/codex/harness-load-testing/skill.yaml +79 -0
  208. package/dist/agents/skills/codex/harness-ml-ops/SKILL.md +341 -0
  209. package/dist/agents/skills/codex/harness-ml-ops/skill.yaml +79 -0
  210. package/dist/agents/skills/codex/harness-mobile-patterns/SKILL.md +326 -0
  211. package/dist/agents/skills/codex/harness-mobile-patterns/skill.yaml +82 -0
  212. package/dist/agents/skills/codex/harness-mutation-test/SKILL.md +251 -0
  213. package/dist/agents/skills/codex/harness-mutation-test/skill.yaml +70 -0
  214. package/dist/agents/skills/codex/harness-observability/SKILL.md +283 -0
  215. package/dist/agents/skills/codex/harness-observability/skill.yaml +78 -0
  216. package/dist/agents/skills/codex/harness-onboarding/SKILL.md +288 -0
  217. package/dist/agents/skills/codex/harness-onboarding/skill.yaml +31 -0
  218. package/dist/agents/skills/codex/harness-parallel-agents/SKILL.md +256 -0
  219. package/dist/agents/skills/codex/harness-parallel-agents/skill.yaml +34 -0
  220. package/dist/agents/skills/codex/harness-perf/SKILL.md +260 -0
  221. package/dist/agents/skills/codex/harness-perf/skill.yaml +51 -0
  222. package/dist/agents/skills/codex/harness-perf-tdd/SKILL.md +249 -0
  223. package/dist/agents/skills/codex/harness-perf-tdd/skill.yaml +48 -0
  224. package/dist/agents/skills/codex/harness-planning/SKILL.md +579 -0
  225. package/dist/agents/skills/codex/harness-planning/skill.yaml +56 -0
  226. package/dist/agents/skills/codex/harness-pre-commit-review/SKILL.md +324 -0
  227. package/dist/agents/skills/codex/harness-pre-commit-review/skill.yaml +34 -0
  228. package/dist/agents/skills/codex/harness-product-spec/SKILL.md +285 -0
  229. package/dist/agents/skills/codex/harness-product-spec/skill.yaml +72 -0
  230. package/dist/agents/skills/codex/harness-property-test/SKILL.md +281 -0
  231. package/dist/agents/skills/codex/harness-property-test/skill.yaml +71 -0
  232. package/dist/agents/skills/codex/harness-refactoring/SKILL.md +169 -0
  233. package/dist/agents/skills/codex/harness-refactoring/skill.yaml +34 -0
  234. package/dist/agents/skills/codex/harness-release-readiness/SKILL.md +689 -0
  235. package/dist/agents/skills/codex/harness-release-readiness/skill.yaml +58 -0
  236. package/dist/agents/skills/codex/harness-resilience/SKILL.md +255 -0
  237. package/dist/agents/skills/codex/harness-resilience/skill.yaml +76 -0
  238. package/dist/agents/skills/codex/harness-roadmap/SKILL.md +595 -0
  239. package/dist/agents/skills/codex/harness-roadmap/skill.yaml +44 -0
  240. package/dist/agents/skills/codex/harness-secrets/SKILL.md +293 -0
  241. package/dist/agents/skills/codex/harness-secrets/skill.yaml +76 -0
  242. package/dist/agents/skills/codex/harness-security-review/SKILL.md +260 -0
  243. package/dist/agents/skills/codex/harness-security-review/skill.yaml +53 -0
  244. package/dist/agents/skills/codex/harness-security-scan/SKILL.md +154 -0
  245. package/dist/agents/skills/codex/harness-security-scan/skill.yaml +42 -0
  246. package/dist/agents/skills/codex/harness-skill-authoring/SKILL.md +292 -0
  247. package/dist/agents/skills/codex/harness-skill-authoring/skill.yaml +33 -0
  248. package/dist/agents/skills/codex/harness-soundness-review/SKILL.md +1267 -0
  249. package/dist/agents/skills/codex/harness-soundness-review/skill.yaml +49 -0
  250. package/dist/agents/skills/codex/harness-sql-review/SKILL.md +315 -0
  251. package/dist/agents/skills/codex/harness-sql-review/skill.yaml +74 -0
  252. package/dist/agents/skills/codex/harness-state-management/SKILL.md +309 -0
  253. package/dist/agents/skills/codex/harness-state-management/skill.yaml +33 -0
  254. package/dist/agents/skills/codex/harness-supply-chain-audit/SKILL.md +281 -0
  255. package/dist/agents/skills/codex/harness-supply-chain-audit/skill.yaml +51 -0
  256. package/dist/agents/skills/codex/harness-tdd/SKILL.md +177 -0
  257. package/dist/agents/skills/codex/harness-tdd/skill.yaml +49 -0
  258. package/dist/agents/skills/codex/harness-test-advisor/SKILL.md +160 -0
  259. package/dist/agents/skills/codex/harness-test-advisor/skill.yaml +45 -0
  260. package/dist/agents/skills/codex/harness-test-data/SKILL.md +268 -0
  261. package/dist/agents/skills/codex/harness-test-data/skill.yaml +74 -0
  262. package/dist/agents/skills/codex/harness-ux-copy/SKILL.md +271 -0
  263. package/dist/agents/skills/codex/harness-ux-copy/skill.yaml +77 -0
  264. package/dist/agents/skills/codex/harness-verification/SKILL.md +421 -0
  265. package/dist/agents/skills/codex/harness-verification/skill.yaml +43 -0
  266. package/dist/agents/skills/codex/harness-verify/SKILL.md +159 -0
  267. package/dist/agents/skills/codex/harness-verify/skill.yaml +41 -0
  268. package/dist/agents/skills/codex/harness-visual-regression/SKILL.md +257 -0
  269. package/dist/agents/skills/codex/harness-visual-regression/skill.yaml +74 -0
  270. package/dist/agents/skills/codex/initialize-harness-project/SKILL.md +232 -0
  271. package/dist/agents/skills/codex/initialize-harness-project/skill.yaml +32 -0
  272. package/dist/agents/skills/codex/validate-context-engineering/SKILL.md +150 -0
  273. package/dist/agents/skills/codex/validate-context-engineering/skill.yaml +32 -0
  274. package/dist/agents/skills/cursor/add-harness-component/SKILL.md +192 -0
  275. package/dist/agents/skills/cursor/add-harness-component/skill.yaml +33 -0
  276. package/dist/agents/skills/cursor/align-documentation/SKILL.md +213 -0
  277. package/dist/agents/skills/cursor/align-documentation/skill.yaml +32 -0
  278. package/dist/agents/skills/cursor/check-mechanical-constraints/SKILL.md +191 -0
  279. package/dist/agents/skills/cursor/check-mechanical-constraints/skill.yaml +33 -0
  280. package/dist/agents/skills/cursor/cleanup-dead-code/SKILL.md +245 -0
  281. package/dist/agents/skills/cursor/cleanup-dead-code/skill.yaml +34 -0
  282. package/dist/agents/skills/cursor/detect-doc-drift/SKILL.md +179 -0
  283. package/dist/agents/skills/cursor/detect-doc-drift/skill.yaml +31 -0
  284. package/dist/agents/skills/cursor/enforce-architecture/SKILL.md +296 -0
  285. package/dist/agents/skills/cursor/enforce-architecture/skill.yaml +35 -0
  286. package/dist/agents/skills/cursor/harness-accessibility/SKILL.md +281 -0
  287. package/dist/agents/skills/cursor/harness-accessibility/skill.yaml +52 -0
  288. package/dist/agents/skills/cursor/harness-api-design/SKILL.md +356 -0
  289. package/dist/agents/skills/cursor/harness-api-design/skill.yaml +74 -0
  290. package/dist/agents/skills/cursor/harness-architecture-advisor/SKILL.md +449 -0
  291. package/dist/agents/skills/cursor/harness-architecture-advisor/skill.yaml +49 -0
  292. package/dist/agents/skills/cursor/harness-auth/SKILL.md +331 -0
  293. package/dist/agents/skills/cursor/harness-auth/skill.yaml +81 -0
  294. package/dist/agents/skills/cursor/harness-autopilot/SKILL.md +916 -0
  295. package/dist/agents/skills/cursor/harness-autopilot/skill.yaml +67 -0
  296. package/dist/agents/skills/cursor/harness-brainstorming/SKILL.md +406 -0
  297. package/dist/agents/skills/cursor/harness-brainstorming/skill.yaml +50 -0
  298. package/dist/agents/skills/cursor/harness-caching/SKILL.md +309 -0
  299. package/dist/agents/skills/cursor/harness-caching/skill.yaml +73 -0
  300. package/dist/agents/skills/cursor/harness-chaos/SKILL.md +295 -0
  301. package/dist/agents/skills/cursor/harness-chaos/skill.yaml +72 -0
  302. package/dist/agents/skills/cursor/harness-code-review/SKILL.md +857 -0
  303. package/dist/agents/skills/cursor/harness-code-review/skill.yaml +52 -0
  304. package/dist/agents/skills/cursor/harness-codebase-cleanup/SKILL.md +224 -0
  305. package/dist/agents/skills/cursor/harness-codebase-cleanup/skill.yaml +65 -0
  306. package/dist/agents/skills/cursor/harness-compliance/SKILL.md +303 -0
  307. package/dist/agents/skills/cursor/harness-compliance/skill.yaml +78 -0
  308. package/dist/agents/skills/cursor/harness-containerization/SKILL.md +284 -0
  309. package/dist/agents/skills/cursor/harness-containerization/skill.yaml +80 -0
  310. package/dist/agents/skills/cursor/harness-data-pipeline/SKILL.md +274 -0
  311. package/dist/agents/skills/cursor/harness-data-pipeline/skill.yaml +81 -0
  312. package/dist/agents/skills/cursor/harness-data-validation/SKILL.md +343 -0
  313. package/dist/agents/skills/cursor/harness-data-validation/skill.yaml +75 -0
  314. package/dist/agents/skills/cursor/harness-database/SKILL.md +310 -0
  315. package/dist/agents/skills/cursor/harness-database/skill.yaml +80 -0
  316. package/dist/agents/skills/cursor/harness-debugging/SKILL.md +366 -0
  317. package/dist/agents/skills/cursor/harness-debugging/skill.yaml +48 -0
  318. package/dist/agents/skills/cursor/harness-dependency-health/SKILL.md +179 -0
  319. package/dist/agents/skills/cursor/harness-dependency-health/skill.yaml +42 -0
  320. package/dist/agents/skills/cursor/harness-deployment/SKILL.md +307 -0
  321. package/dist/agents/skills/cursor/harness-deployment/skill.yaml +77 -0
  322. package/dist/agents/skills/cursor/harness-design/SKILL.md +265 -0
  323. package/dist/agents/skills/cursor/harness-design/skill.yaml +54 -0
  324. package/dist/agents/skills/cursor/harness-design-mobile/SKILL.md +336 -0
  325. package/dist/agents/skills/cursor/harness-design-mobile/skill.yaml +50 -0
  326. package/dist/agents/skills/cursor/harness-design-system/SKILL.md +282 -0
  327. package/dist/agents/skills/cursor/harness-design-system/skill.yaml +51 -0
  328. package/dist/agents/skills/cursor/harness-design-web/SKILL.md +360 -0
  329. package/dist/agents/skills/cursor/harness-design-web/skill.yaml +53 -0
  330. package/dist/agents/skills/cursor/harness-diagnostics/SKILL.md +318 -0
  331. package/dist/agents/skills/cursor/harness-diagnostics/skill.yaml +51 -0
  332. package/dist/agents/skills/cursor/harness-docs-pipeline/SKILL.md +460 -0
  333. package/dist/agents/skills/cursor/harness-docs-pipeline/skill.yaml +70 -0
  334. package/dist/agents/skills/cursor/harness-dx/SKILL.md +276 -0
  335. package/dist/agents/skills/cursor/harness-dx/skill.yaml +76 -0
  336. package/dist/agents/skills/cursor/harness-e2e/SKILL.md +245 -0
  337. package/dist/agents/skills/cursor/harness-e2e/skill.yaml +78 -0
  338. package/dist/agents/skills/cursor/harness-event-driven/SKILL.md +280 -0
  339. package/dist/agents/skills/cursor/harness-event-driven/skill.yaml +77 -0
  340. package/dist/agents/skills/cursor/harness-execution/SKILL.md +510 -0
  341. package/dist/agents/skills/cursor/harness-execution/skill.yaml +52 -0
  342. package/dist/agents/skills/cursor/harness-feature-flags/SKILL.md +287 -0
  343. package/dist/agents/skills/cursor/harness-feature-flags/skill.yaml +74 -0
  344. package/dist/agents/skills/cursor/harness-git-workflow/SKILL.md +268 -0
  345. package/dist/agents/skills/cursor/harness-git-workflow/skill.yaml +32 -0
  346. package/dist/agents/skills/cursor/harness-hotspot-detector/SKILL.md +161 -0
  347. package/dist/agents/skills/cursor/harness-hotspot-detector/skill.yaml +45 -0
  348. package/dist/agents/skills/cursor/harness-i18n/SKILL.md +484 -0
  349. package/dist/agents/skills/cursor/harness-i18n/skill.yaml +55 -0
  350. package/dist/agents/skills/cursor/harness-i18n-process/SKILL.md +388 -0
  351. package/dist/agents/skills/cursor/harness-i18n-process/skill.yaml +44 -0
  352. package/dist/agents/skills/cursor/harness-i18n-workflow/SKILL.md +512 -0
  353. package/dist/agents/skills/cursor/harness-i18n-workflow/skill.yaml +54 -0
  354. package/dist/agents/skills/cursor/harness-impact-analysis/SKILL.md +184 -0
  355. package/dist/agents/skills/cursor/harness-impact-analysis/skill.yaml +45 -0
  356. package/dist/agents/skills/cursor/harness-incident-response/SKILL.md +223 -0
  357. package/dist/agents/skills/cursor/harness-incident-response/skill.yaml +78 -0
  358. package/dist/agents/skills/cursor/harness-infrastructure-as-code/SKILL.md +279 -0
  359. package/dist/agents/skills/cursor/harness-infrastructure-as-code/skill.yaml +80 -0
  360. package/dist/agents/skills/cursor/harness-integration-test/SKILL.md +271 -0
  361. package/dist/agents/skills/cursor/harness-integration-test/skill.yaml +73 -0
  362. package/dist/agents/skills/cursor/harness-integrity/SKILL.md +167 -0
  363. package/dist/agents/skills/cursor/harness-integrity/skill.yaml +48 -0
  364. package/dist/agents/skills/cursor/harness-knowledge-mapper/SKILL.md +195 -0
  365. package/dist/agents/skills/cursor/harness-knowledge-mapper/skill.yaml +50 -0
  366. package/dist/agents/skills/cursor/harness-load-testing/SKILL.md +274 -0
  367. package/dist/agents/skills/cursor/harness-load-testing/skill.yaml +79 -0
  368. package/dist/agents/skills/cursor/harness-ml-ops/SKILL.md +341 -0
  369. package/dist/agents/skills/cursor/harness-ml-ops/skill.yaml +79 -0
  370. package/dist/agents/skills/cursor/harness-mobile-patterns/SKILL.md +326 -0
  371. package/dist/agents/skills/cursor/harness-mobile-patterns/skill.yaml +82 -0
  372. package/dist/agents/skills/cursor/harness-mutation-test/SKILL.md +251 -0
  373. package/dist/agents/skills/cursor/harness-mutation-test/skill.yaml +70 -0
  374. package/dist/agents/skills/cursor/harness-observability/SKILL.md +283 -0
  375. package/dist/agents/skills/cursor/harness-observability/skill.yaml +78 -0
  376. package/dist/agents/skills/cursor/harness-onboarding/SKILL.md +288 -0
  377. package/dist/agents/skills/cursor/harness-onboarding/skill.yaml +31 -0
  378. package/dist/agents/skills/cursor/harness-parallel-agents/SKILL.md +256 -0
  379. package/dist/agents/skills/cursor/harness-parallel-agents/skill.yaml +34 -0
  380. package/dist/agents/skills/cursor/harness-perf/SKILL.md +260 -0
  381. package/dist/agents/skills/cursor/harness-perf/skill.yaml +51 -0
  382. package/dist/agents/skills/cursor/harness-perf-tdd/SKILL.md +249 -0
  383. package/dist/agents/skills/cursor/harness-perf-tdd/skill.yaml +48 -0
  384. package/dist/agents/skills/cursor/harness-planning/SKILL.md +579 -0
  385. package/dist/agents/skills/cursor/harness-planning/skill.yaml +56 -0
  386. package/dist/agents/skills/cursor/harness-pre-commit-review/SKILL.md +324 -0
  387. package/dist/agents/skills/cursor/harness-pre-commit-review/skill.yaml +34 -0
  388. package/dist/agents/skills/cursor/harness-product-spec/SKILL.md +285 -0
  389. package/dist/agents/skills/cursor/harness-product-spec/skill.yaml +72 -0
  390. package/dist/agents/skills/cursor/harness-property-test/SKILL.md +281 -0
  391. package/dist/agents/skills/cursor/harness-property-test/skill.yaml +71 -0
  392. package/dist/agents/skills/cursor/harness-refactoring/SKILL.md +169 -0
  393. package/dist/agents/skills/cursor/harness-refactoring/skill.yaml +34 -0
  394. package/dist/agents/skills/cursor/harness-release-readiness/SKILL.md +689 -0
  395. package/dist/agents/skills/cursor/harness-release-readiness/skill.yaml +58 -0
  396. package/dist/agents/skills/cursor/harness-resilience/SKILL.md +255 -0
  397. package/dist/agents/skills/cursor/harness-resilience/skill.yaml +76 -0
  398. package/dist/agents/skills/cursor/harness-roadmap/SKILL.md +595 -0
  399. package/dist/agents/skills/cursor/harness-roadmap/skill.yaml +44 -0
  400. package/dist/agents/skills/cursor/harness-secrets/SKILL.md +293 -0
  401. package/dist/agents/skills/cursor/harness-secrets/skill.yaml +76 -0
  402. package/dist/agents/skills/cursor/harness-security-review/SKILL.md +260 -0
  403. package/dist/agents/skills/cursor/harness-security-review/skill.yaml +53 -0
  404. package/dist/agents/skills/cursor/harness-security-scan/SKILL.md +154 -0
  405. package/dist/agents/skills/cursor/harness-security-scan/skill.yaml +42 -0
  406. package/dist/agents/skills/cursor/harness-skill-authoring/SKILL.md +292 -0
  407. package/dist/agents/skills/cursor/harness-skill-authoring/skill.yaml +33 -0
  408. package/dist/agents/skills/cursor/harness-soundness-review/SKILL.md +1267 -0
  409. package/dist/agents/skills/cursor/harness-soundness-review/skill.yaml +49 -0
  410. package/dist/agents/skills/cursor/harness-sql-review/SKILL.md +315 -0
  411. package/dist/agents/skills/cursor/harness-sql-review/skill.yaml +74 -0
  412. package/dist/agents/skills/cursor/harness-state-management/SKILL.md +309 -0
  413. package/dist/agents/skills/cursor/harness-state-management/skill.yaml +33 -0
  414. package/dist/agents/skills/cursor/harness-supply-chain-audit/SKILL.md +281 -0
  415. package/dist/agents/skills/cursor/harness-supply-chain-audit/skill.yaml +51 -0
  416. package/dist/agents/skills/cursor/harness-tdd/SKILL.md +177 -0
  417. package/dist/agents/skills/cursor/harness-tdd/skill.yaml +49 -0
  418. package/dist/agents/skills/cursor/harness-test-advisor/SKILL.md +160 -0
  419. package/dist/agents/skills/cursor/harness-test-advisor/skill.yaml +45 -0
  420. package/dist/agents/skills/cursor/harness-test-data/SKILL.md +268 -0
  421. package/dist/agents/skills/cursor/harness-test-data/skill.yaml +74 -0
  422. package/dist/agents/skills/cursor/harness-ux-copy/SKILL.md +271 -0
  423. package/dist/agents/skills/cursor/harness-ux-copy/skill.yaml +77 -0
  424. package/dist/agents/skills/cursor/harness-verification/SKILL.md +421 -0
  425. package/dist/agents/skills/cursor/harness-verification/skill.yaml +43 -0
  426. package/dist/agents/skills/cursor/harness-verify/SKILL.md +159 -0
  427. package/dist/agents/skills/cursor/harness-verify/skill.yaml +41 -0
  428. package/dist/agents/skills/cursor/harness-visual-regression/SKILL.md +257 -0
  429. package/dist/agents/skills/cursor/harness-visual-regression/skill.yaml +74 -0
  430. package/dist/agents/skills/cursor/initialize-harness-project/SKILL.md +232 -0
  431. package/dist/agents/skills/cursor/initialize-harness-project/skill.yaml +32 -0
  432. package/dist/agents/skills/cursor/validate-context-engineering/SKILL.md +150 -0
  433. package/dist/agents/skills/cursor/validate-context-engineering/skill.yaml +32 -0
  434. package/dist/agents/skills/gemini-cli/enforce-architecture/SKILL.md +52 -0
  435. package/dist/agents/skills/gemini-cli/harness-api-design/SKILL.md +52 -0
  436. package/dist/agents/skills/gemini-cli/harness-architecture-advisor/SKILL.md +52 -0
  437. package/dist/agents/skills/gemini-cli/harness-auth/SKILL.md +52 -0
  438. package/dist/agents/skills/gemini-cli/harness-autopilot/SKILL.md +355 -45
  439. package/dist/agents/skills/gemini-cli/harness-autopilot/skill.yaml +12 -0
  440. package/dist/agents/skills/gemini-cli/harness-code-review/SKILL.md +97 -3
  441. package/dist/agents/skills/gemini-cli/harness-code-review/skill.yaml +6 -0
  442. package/dist/agents/skills/gemini-cli/harness-codebase-cleanup/SKILL.md +2 -4
  443. package/dist/agents/skills/gemini-cli/harness-database/SKILL.md +52 -0
  444. package/dist/agents/skills/gemini-cli/harness-deployment/SKILL.md +52 -0
  445. package/dist/agents/skills/gemini-cli/harness-planning/SKILL.md +99 -3
  446. package/dist/agents/skills/gemini-cli/harness-planning/skill.yaml +6 -0
  447. package/dist/agents/skills/gemini-cli/harness-pre-commit-review/SKILL.md +1 -1
  448. package/dist/agents/skills/gemini-cli/harness-product-spec/SKILL.md +5 -5
  449. package/dist/agents/skills/gemini-cli/harness-security-review/SKILL.md +27 -7
  450. package/dist/agents/skills/gemini-cli/harness-security-scan/SKILL.md +52 -0
  451. package/dist/agents/skills/gemini-cli/harness-supply-chain-audit/SKILL.md +281 -0
  452. package/dist/agents/skills/gemini-cli/harness-supply-chain-audit/skill.yaml +51 -0
  453. package/dist/agents/skills/package.json +1 -0
  454. package/dist/agents/skills/templates/discipline-template.md +49 -0
  455. package/dist/agents/skills/tests/schema.ts +1 -1
  456. package/dist/agents/skills/vitest.config.mts +5 -0
  457. package/dist/{agents-md-YTYQDA3P.js → agents-md-VYDFPIRW.js} +1 -1
  458. package/dist/{architecture-JQZYM4US.js → architecture-K5HSRBGB.js} +2 -2
  459. package/dist/bin/harness-mcp.js +13 -13
  460. package/dist/bin/harness.js +21 -19
  461. package/dist/{check-phase-gate-L3RADYWO.js → check-phase-gate-5AS6SXL6.js} +3 -3
  462. package/dist/{chunk-6KTUUFRN.js → chunk-5ZXHMCPL.js} +1 -1
  463. package/dist/{chunk-RCWZBSK5.js → chunk-6KWBH4EO.js} +1 -1
  464. package/dist/{chunk-ABQHQ6I5.js → chunk-ALFKNAZW.js} +2436 -233
  465. package/dist/{chunk-OXLLOSSR.js → chunk-AV6KMDO5.js} +2 -2
  466. package/dist/{chunk-7IP4JIFL.js → chunk-C7DTKLPW.js} +4 -4
  467. package/dist/{chunk-ZOAWBDWU.js → chunk-CJDVBBPB.js} +5 -1
  468. package/dist/{chunk-YPYGXRDR.js → chunk-DNDBFIZN.js} +18 -4
  469. package/dist/{chunk-XYLGHKG6.js → chunk-HKUX2X7O.js} +11 -2
  470. package/dist/{chunk-YZD2MRNQ.js → chunk-JOP2NDNB.js} +684 -142
  471. package/dist/{chunk-YBJ262QL.js → chunk-LRG3B43J.js} +1 -1
  472. package/dist/{chunk-AOZRDOIP.js → chunk-M6TIO6NF.js} +1 -1
  473. package/dist/{chunk-O5OJVPL6.js → chunk-OCDDCGDE.js} +9 -1
  474. package/dist/{chunk-OSXBPAMK.js → chunk-QDF7COPQ.js} +1 -1
  475. package/dist/{chunk-TPOTOBR7.js → chunk-RWZPHW4H.js} +3 -3
  476. package/dist/{chunk-3C2MLBPJ.js → chunk-SFRGPAK6.js} +1 -1
  477. package/dist/{chunk-XKECDXJS.js → chunk-SHYWICGA.js} +2184 -456
  478. package/dist/{chunk-S2FXOWOR.js → chunk-TF6ZLHJV.js} +2 -2
  479. package/dist/{chunk-NLVUVUGD.js → chunk-ZJMU7MEV.js} +1 -1
  480. package/dist/{ci-workflow-EQZFVX3P.js → ci-workflow-CRWU723U.js} +1 -1
  481. package/dist/{create-skill-XSWHMSM5.js → create-skill-NDXQSTIK.js} +2 -2
  482. package/dist/{dist-HWXF2C3R.js → dist-4LPXJYVZ.js} +105 -1
  483. package/dist/{docs-7ECGYMAV.js → docs-4JRHTLUZ.js} +3 -3
  484. package/dist/{engine-EG4EH4IX.js → engine-3G3VIM6L.js} +1 -1
  485. package/dist/{entropy-5USWKLVS.js → entropy-G6CZ2A6P.js} +2 -2
  486. package/dist/{feedback-UTBXZZHF.js → feedback-QYKQ65HB.js} +1 -1
  487. package/dist/{generate-agent-definitions-3PM5EU7V.js → generate-agent-definitions-SAAOAPT4.js} +3 -3
  488. package/dist/index.d.ts +25 -4
  489. package/dist/index.js +18 -18
  490. package/dist/{loader-ZPALXIVR.js → loader-VCOK3PF7.js} +1 -1
  491. package/dist/{mcp-362EZHF4.js → mcp-YENEPHBW.js} +13 -13
  492. package/dist/{performance-OQAFMJUD.js → performance-UBCFI2UP.js} +4 -2
  493. package/dist/{review-pipeline-C4GCFVGP.js → review-pipeline-IQAVCWAX.js} +1 -1
  494. package/dist/{runtime-7YLVK453.js → runtime-PYFFIESU.js} +1 -1
  495. package/dist/{security-PZOX7AQS.js → security-ZDADTPYW.js} +1 -1
  496. package/dist/{skill-executor-XZLYZYAK.js → skill-executor-XEVDGXUM.js} +2 -2
  497. package/dist/{validate-FD3Z6VJD.js → validate-VRTUHALQ.js} +2 -2
  498. package/dist/{validate-cross-check-WNJM6H2D.js → validate-cross-check-4Y6NHNK3.js} +1 -1
  499. package/package.json +8 -5
@@ -0,0 +1,39 @@
1
+ <!-- Generated by harness generate-slash-commands. Do not edit. -->
2
+
3
+ # Harness Skills
4
+
5
+ This file bootstraps harness context for Codex CLI. Each skill is available as a structured workflow in the `harness/` directory.
6
+
7
+ ## Available Skills
8
+
9
+ - **add-harness-component** — Add a component to an existing harness project
10
+ - **cleanup-dead-code** — Detect and auto-fix dead code including dead exports, commented-out code, and orphaned dependencies
11
+ - **detect-doc-drift** — Detect documentation that has drifted from code
12
+ - **enforce-architecture** — Validate architectural layer boundaries, detect violations, and auto-fix import ordering and forbidden import replacement
13
+ - **harness-architecture-advisor** — Interactive architecture advisor that surfaces trade-offs and helps humans choose
14
+ - **harness-autopilot** — Autonomous phase execution loop — chains planning, execution, verification, and review, pausing only at human decision points
15
+ - **harness-brainstorming** — Structured ideation and exploration with harness methodology
16
+ - **harness-code-review** — Multi-phase code review pipeline with mechanical checks, graph-scoped context, and parallel review agents
17
+ - **harness-codebase-cleanup** — Orchestrate dead code removal and architecture violation fixes with shared convergence loop
18
+ - **harness-debugging** — Systematic debugging with harness validation and state tracking
19
+ - **harness-dependency-health** — Analyze structural health of the codebase using graph metrics
20
+ - **harness-docs-pipeline** — Orchestrator composing 4 documentation skills into a sequential pipeline with convergence-based remediation and qualitative health reporting
21
+ - **harness-execution** — Execute a planned set of tasks with harness validation and state tracking
22
+ - **harness-hotspot-detector** — Identify structural risk hotspots via co-change and churn analysis
23
+ - **harness-impact-analysis** — Graph-based impact analysis — answers "if I change X, what breaks?"
24
+ - **harness-integrity** — Unified integrity gate — chains verify (quick gate) with AI review into a single report
25
+ - **harness-onboarding** — Onboard a new developer to a harness-managed project
26
+ - **harness-perf** — Performance enforcement and benchmark management
27
+ - **harness-planning** — Structured project planning with harness constraints and validation
28
+ - **harness-refactoring** — Safe refactoring with validation before and after changes
29
+ - **harness-release-readiness** — Audit npm release readiness, run maintenance checks, offer auto-fixes, track progress across sessions
30
+ - **harness-roadmap** — Create and manage a unified project roadmap from existing specs and plans
31
+ - **harness-security-scan** — Lightweight mechanical security scan for health checks
32
+ - **harness-skill-authoring** — Create and maintain harness skills following the rich skill format
33
+ - **harness-soundness-review** — Deep soundness analysis of specs and plans with auto-fix and convergence loop
34
+ - **harness-supply-chain-audit** — 6-factor dependency risk evaluation for supply chain security
35
+ - **harness-tdd** — Test-driven development integrated with harness validation
36
+ - **harness-test-advisor** — Graph-based test selection — answers "what tests should I run?"
37
+ - **harness-verification** — Comprehensive harness verification of project health and compliance
38
+ - **harness-verify** — Binary pass/fail quick gate — runs test, lint, typecheck commands and returns structured result
39
+ - **initialize-harness-project** — Scaffold a new harness-compliant project
@@ -0,0 +1,195 @@
1
+ <!-- Generated by harness generate-slash-commands. Do not edit. -->
2
+
3
+ # Add Harness Component
4
+
5
+ > Add layers, documentation, components, or skills to an existing harness project with proper integration. Validate against existing constraints, wire into architecture, and verify the result.
6
+
7
+ ## When to Use
8
+
9
+ - Adding a new layer to the project's architecture
10
+ - Adding a new documentation file that harness should track
11
+ - Adding a new component (module, service, package) that must be wired into existing layer boundaries
12
+ - Adding a new skill to the project's skill library
13
+ - When a plan calls for introducing a new architectural boundary or module
14
+ - NOT when initializing a project from scratch (use initialize-harness-project)
15
+ - NOT when modifying an existing component (use standard editing workflows)
16
+ - NOT when removing components (manual process — removing requires careful dependency analysis)
17
+
18
+ ## Process
19
+
20
+ ### Phase 1: DETERMINE — Identify What to Add
21
+
22
+ 1. **Clarify the component type.** Ask if not obvious from context:
23
+ - **Layer:** A new architectural boundary (e.g., adding an "infrastructure" layer to a project that only has "business" and "data")
24
+ - **Document:** A documentation file that harness should track for drift detection (e.g., API docs, architecture decision records)
25
+ - **Component:** A code module, service, or package that lives within an existing layer
26
+ - **Skill:** A new harness skill definition for the project's workflow
27
+
28
+ 2. **Gather requirements.** For each type:
29
+ - **Layer:** Name, which directories belong to it, which layers it can import from, which layers can import from it
30
+ - **Document:** Path, what it documents, which code files it relates to
31
+ - **Component:** Name, which layer it belongs to, what it depends on, what will depend on it
32
+ - **Skill:** Name, purpose, type (rigid or flexible), triggers
33
+
34
+ 3. **Check prerequisites.** The project must already be initialized with harness. If `harness.yaml` does not exist, stop and run initialize-harness-project first.
35
+
36
+ ### Phase 2: VALIDATE — Check Against Existing Constraints
37
+
38
+ 1. **Read the current configuration.** Load `harness.yaml` and `AGENTS.md` to understand existing layers, constraints, and architecture.
39
+
40
+ 2. **Verify the new component does not conflict:**
41
+ - Does the layer name already exist?
42
+ - Does the component directory already exist?
43
+ - Would the new dependency relationships create circular imports?
44
+ - Does the component violate any existing forbidden-import rules?
45
+
46
+ 3. **If conflicts are found,** report them clearly: "Adding layer X would conflict with existing layer Y because [reason]. Options: [A] rename, [B] merge into existing layer, [C] restructure. Which do you prefer?"
47
+
48
+ 4. **Run `harness check-deps`** on the current state to establish a clean baseline. If it already fails, fix existing violations before adding new components.
49
+
50
+ ### Phase 3: ADD — Create the Component
51
+
52
+ 1. **Run `harness add` with appropriate arguments:**
53
+ - Layer: `harness add layer <name> --dirs <dir1,dir2> --imports <allowed-layers>`
54
+ - Document: `harness add doc <path> --tracks <related-code-paths>`
55
+ - Component: `harness add component <name> --layer <layer-name>`
56
+ - Skill: `harness add skill <name> --type <rigid|flexible>`
57
+
58
+ 2. **Review generated files and configuration changes.** `harness add` modifies `harness.yaml` and may generate template files. Check that the changes look correct.
59
+
60
+ 3. **Create the actual code or content.** `harness add` creates the configuration entry but not necessarily the implementation. Create the directories, files, and initial code as needed.
61
+
62
+ ### Phase 4: WIRE — Integrate into Architecture
63
+
64
+ 1. **Update imports and exports.** If the new component needs to be imported by existing code, add the imports. If existing code needs to be aware of the new layer, update barrel files or index modules.
65
+
66
+ 2. **Update `AGENTS.md`.** Add the new component to the architecture section. Document its purpose, boundaries, and relationships to other components. This keeps agent instructions accurate.
67
+
68
+ 3. **Update layer configuration** if the new component changes dependency relationships. Ensure `harness.yaml` reflects the actual import graph.
69
+
70
+ 4. **For new skills:** Write the `skill.yaml` and `SKILL.md` files following the harness skill format. Use harness-skill-authoring for guidance on writing good skill content.
71
+
72
+ ### Phase 5: VERIFY — Confirm Integration
73
+
74
+ 1. **Run `harness validate`** to verify the full project configuration is still valid after the addition.
75
+
76
+ 2. **Run `harness check-deps`** to verify no dependency violations were introduced. The new component's imports must respect layer boundaries.
77
+
78
+ ### Graph Refresh
79
+
80
+ If a knowledge graph exists at `.harness/graph/`, refresh it after code changes to keep graph queries accurate:
81
+
82
+ ```
83
+ harness scan [path]
84
+ ```
85
+
86
+ Skipping this step means subsequent graph queries (impact analysis, dependency health, test advisor) may return stale results.
87
+
88
+ 3. **If validation fails,** fix the issues before committing. Common causes:
89
+ - New layer not properly registered in `harness.yaml`
90
+ - Component placed in wrong directory for its declared layer
91
+ - Imports from forbidden layers
92
+ - `AGENTS.md` references outdated architecture
93
+
94
+ 4. **Commit the addition.** All new and modified files in a single atomic commit.
95
+
96
+ ## Harness Integration
97
+
98
+ - **`harness add layer <name>`** — Register a new architectural layer with directory mappings and import rules.
99
+ - **`harness add doc <path>`** — Register a documentation file for drift tracking.
100
+ - **`harness add component <name> --layer <layer>`** — Register a new code component within an existing layer.
101
+ - **`harness add skill <name> --type <type>`** — Scaffold a new skill definition.
102
+ - **`harness validate`** — Verify project configuration after the addition.
103
+ - **`harness check-deps`** — Verify dependency constraints are respected after the addition.
104
+
105
+ ## Success Criteria
106
+
107
+ - The new component is properly registered in `harness.yaml`
108
+ - The component's files exist in the correct directories for its declared layer
109
+ - `AGENTS.md` is updated to reflect the new component
110
+ - `harness validate` passes after the addition
111
+ - `harness check-deps` passes after the addition (no new violations)
112
+ - No circular dependencies were introduced
113
+ - The addition is committed as a single atomic commit
114
+
115
+ ## Examples
116
+
117
+ ### Example: Adding a New Layer
118
+
119
+ ```
120
+ Human: "We need an infrastructure layer for external API clients."
121
+
122
+ DETERMINE: Adding a layer. Name: infrastructure. Dirs: src/infrastructure/.
123
+ Imports from: (none — infrastructure is a leaf layer, no internal dependencies).
124
+ Imported by: business layer (services call external APIs through infrastructure).
125
+
126
+ VALIDATE:
127
+ Read harness.yaml — existing layers: presentation, business, data.
128
+ No conflict with "infrastructure" name.
129
+ Run: harness check-deps — passes (clean baseline).
130
+
131
+ ADD:
132
+ harness add layer infrastructure --dirs src/infrastructure --imports none
133
+ mkdir -p src/infrastructure
134
+
135
+ WIRE:
136
+ Update harness.yaml: allow business → infrastructure imports.
137
+ Update AGENTS.md: document infrastructure layer purpose and boundaries.
138
+
139
+ VERIFY:
140
+ harness validate # Pass
141
+ harness check-deps # Pass
142
+ git add harness.yaml AGENTS.md src/infrastructure/
143
+ git commit -m "feat: add infrastructure layer for external API clients"
144
+ ```
145
+
146
+ ### Example: Adding a Document for Drift Tracking
147
+
148
+ ```
149
+ Human: "Track our API specification for documentation drift."
150
+
151
+ DETERMINE: Adding a document. Path: docs/api-spec.md.
152
+ Tracks: src/routes/, src/models/response.ts.
153
+
154
+ ADD:
155
+ harness add doc docs/api-spec.md --tracks src/routes,src/models/response.ts
156
+
157
+ WIRE:
158
+ Update AGENTS.md: note that docs/api-spec.md is tracked for drift.
159
+
160
+ VERIFY:
161
+ harness validate # Pass
162
+ git add harness.yaml AGENTS.md
163
+ git commit -m "feat: track API spec for documentation drift detection"
164
+ ```
165
+
166
+ ### Example: Adding a Component to an Existing Layer
167
+
168
+ ```
169
+ Human: "Add a notification service to the business layer."
170
+
171
+ DETERMINE: Adding a component. Name: notification-service. Layer: business.
172
+ Depends on: data layer (notification repository). Depended on by: presentation layer (routes).
173
+
174
+ VALIDATE:
175
+ Read harness.yaml — business layer exists, maps to src/services/.
176
+ No existing notification-service directory.
177
+ business → data is an allowed import. Presentation → business is allowed.
178
+ Run: harness check-deps — passes.
179
+
180
+ ADD:
181
+ harness add component notification-service --layer business
182
+ Create src/services/notification-service.ts
183
+ Create src/services/notification-service.test.ts
184
+
185
+ WIRE:
186
+ Add export to src/services/index.ts (if barrel file exists).
187
+ Update AGENTS.md: add notification service to business layer component list.
188
+
189
+ VERIFY:
190
+ harness validate # Pass
191
+ harness check-deps # Pass
192
+ git add harness.yaml AGENTS.md src/services/notification-service.*
193
+ git commit -m "feat: add notification service to business layer"
194
+ ```
195
+
@@ -0,0 +1,3 @@
1
+ # Reserved for Phase B native integration
2
+ name: add-harness-component
3
+ version: "1.0.0"
@@ -0,0 +1,248 @@
1
+ <!-- Generated by harness generate-slash-commands. Do not edit. -->
2
+
3
+ # Cleanup Dead Code
4
+
5
+ > Entropy analysis and safe cleanup. Find unused exports, dead files, and pattern violations — then remove them without breaking anything.
6
+
7
+ ## When to Use
8
+
9
+ - After a major refactoring or feature removal
10
+ - When the codebase feels "heavy" — too many files, unclear what is used
11
+ - As a periodic hygiene task (monthly or per-quarter)
12
+ - When `on_entropy_check` triggers fire
13
+ - After deleting a feature flag and its associated code paths
14
+ - When `harness cleanup` reports growing entropy in the project health dashboard
15
+ - NOT during active feature development — dead code cleanup is a separate, focused task
16
+ - NOT when tests are failing — fix tests first, then clean up
17
+ - NOT under time pressure — dead code removal requires careful verification
18
+
19
+ ## Process
20
+
21
+ ### Phase 1: Analyze — Run Entropy Report
22
+
23
+ 1. **Run `harness cleanup`** to generate a full entropy report. This analyzes:
24
+ - **Dead exports** — functions, classes, and constants that are exported but never imported anywhere
25
+ - **Unused files** — files that are not imported by any other file in the project
26
+ - **Pattern violations** — code that violates established project patterns (e.g., a service file without a corresponding test file)
27
+ - **Orphaned dependencies** — npm packages listed in package.json but never imported
28
+
29
+ 2. **Run `harness cleanup --type dead-code --json`** for machine-readable output focused specifically on unused code.
30
+
31
+ 3. **Review the report summary.** Note the total count and distribution. A few dead exports are normal; dozens suggest accumulated entropy from incomplete refactorings.
32
+
33
+ ### Graph-Enhanced Context (when available)
34
+
35
+ When a knowledge graph exists at `.harness/graph/`, use graph queries for faster, more accurate dead code detection:
36
+
37
+ - `query_graph` — perform graph reachability analysis from entry point nodes to identify truly unreachable code
38
+ - `get_relationships` — distinguish dynamic imports from genuinely unused code by checking edge types
39
+
40
+ Graph reachability reduces false positives compared to static analysis alone, since it traces the full transitive import graph including re-exports. Fall back to file-based commands if no graph is available.
41
+
42
+ ### Phase 2: Categorize — Safe vs. Needs Review
43
+
44
+ **Safe to auto-fix (remove without further analysis):**
45
+
46
+ - Exports that are not imported anywhere AND not referenced in any config file
47
+ - Files that are not imported anywhere AND have no side effects (no top-level execution)
48
+ - Dead exports (non-public, zero importers) -- remove `export` keyword or delete entirely if zero internal callers
49
+ - Commented-out code blocks -- delete commented block (dead by definition, code is in git history)
50
+ - Orphaned npm dependencies -- remove from package.json (probably safe; needs install+test verification)
51
+ - Unused local variables and imports within a file (linter can catch these)
52
+
53
+ **Needs human review before removal:**
54
+
55
+ - Exports that APPEAR unused but might be consumed dynamically (see "What NOT to Delete" below)
56
+ - Files that appear unused but are entry points (CLI scripts, test fixtures, config files)
57
+ - Code that is only used in specific build configurations or environments
58
+ - Exports from a public package — external consumers may depend on them
59
+
60
+ ### Phase 3: Apply Safe Fixes
61
+
62
+ For each item categorized as safe:
63
+
64
+ 1. **Remove the dead code.** Delete the export, function, file, or import.
65
+
66
+ 2. **Run `harness fix-drift`** to update any documentation references that pointed to the deleted code.
67
+
68
+ 3. **Run the full test suite.** All tests must pass. If any test fails:
69
+ - **STOP.** The code was not actually dead — something depends on it.
70
+ - **Undo the deletion immediately.**
71
+ - **Reclassify** the item as "needs human review" and investigate the hidden dependency.
72
+
73
+ 4. **Run `harness validate` and `harness check-deps`.** Both must pass.
74
+
75
+ 5. **Commit the cleanup.** Group related removals into logical commits (e.g., "remove unused shipping utilities" not "delete dead code").
76
+
77
+ **New fix types:**
78
+
79
+ - **Dead exports (non-public):** Use `detect_entropy` with `autoFix: true, fixTypes: ['dead-exports']`. The tool removes the `export` keyword. If the function/class has zero internal callers too, delete the entire declaration.
80
+ - **Commented-out code:** Use `detect_entropy` with `autoFix: true, fixTypes: ['commented-code']`. The tool deletes commented-out code blocks. This is cosmetic and only needs lint verification.
81
+ - **Orphaned dependencies:** Use `detect_entropy` with `autoFix: true, fixTypes: ['orphaned-deps']`. The tool removes the dep from package.json. **Must run `pnpm install && pnpm test` after** to verify nothing breaks.
82
+
83
+ ### Phase 3.5: Convergence Loop (Standalone)
84
+
85
+ When running standalone (not through the orchestrator), apply a single-concern convergence loop:
86
+
87
+ 1. **Re-run detection.** After applying all safe fixes, run `harness cleanup --type dead-code` again.
88
+ 2. **Check if issue count decreased.** Compare the new count to the previous count.
89
+ 3. **If decreased: loop.** New dead code may have been exposed by the fixes (e.g., removing a dead export made a file fully unused). Go back to Phase 2 (Categorize) with the new report.
90
+ 4. **If unchanged: stop.** No more cascading fixes are possible. Proceed to Phase 4 (Report).
91
+ 5. **Maximum iterations: 5.** To prevent infinite loops, stop after 5 convergence cycles regardless.
92
+
93
+ **Why convergence matters:** Removing dead code can create more dead code. For example:
94
+
95
+ - Removing a dead export may make all remaining exports in a file dead, making the file itself dead.
96
+ - Removing a dead file removes its imports, which may make other files' exports dead.
97
+ - Removing an orphaned dep may cause lint warnings that reveal unused imports.
98
+
99
+ ### Phase 4: Report Remaining Items
100
+
101
+ ### Graph Refresh
102
+
103
+ If a knowledge graph exists at `.harness/graph/`, refresh it after code changes to keep graph queries accurate:
104
+
105
+ ```
106
+ harness scan [path]
107
+ ```
108
+
109
+ Dead code removal changes graph topology — skipping this step means subsequent graph queries (impact analysis, dependency health, test advisor) may return stale results.
110
+
111
+ For items that need human review, report:
112
+
113
+ 1. **What it is** — file path, export name, what it does
114
+ 2. **Why it appears dead** — no static imports found
115
+ 3. **Why it might not be dead** — dynamic import patterns, external consumers, test utilities
116
+ 4. **Recommended action** — delete with confidence, delete with caution, or keep
117
+
118
+ ## What NOT to Delete
119
+
120
+ These patterns make code APPEAR dead when it is actually in use:
121
+
122
+ ### Dynamically imported modules
123
+
124
+ ```typescript
125
+ // This import won't show up in static analysis
126
+ const module = await import(`./plugins/${pluginName}`);
127
+ ```
128
+
129
+ Files in a `plugins/` directory may appear unused but are loaded dynamically at runtime. Check for `import()` calls, `require()` with variables, and glob-based loading patterns.
130
+
131
+ ### Test utilities and fixtures
132
+
133
+ ```typescript
134
+ // test-helpers.ts — only imported by test files
135
+ export function createMockUser() { ... }
136
+ ```
137
+
138
+ Test utility files may appear unused if the analysis excludes test files. Verify that `harness cleanup` includes test files in its import graph.
139
+
140
+ ### Type-only exports
141
+
142
+ ```typescript
143
+ // Only used as a type, never as a value
144
+ export interface UserConfig { ... }
145
+ ```
146
+
147
+ Some analysis tools miss type-only imports (`import type { UserConfig }`). Verify before deleting any exported interface or type alias.
148
+
149
+ ### Package entry points
150
+
151
+ ```typescript
152
+ // index.ts — re-exports for external consumers
153
+ export { createClient } from './client';
154
+ ```
155
+
156
+ The entry point of a package re-exports things for external consumers. These exports may have zero internal imports but are the public API.
157
+
158
+ ### Side-effect files
159
+
160
+ ```typescript
161
+ // polyfills.ts — imported for side effects, not for exports
162
+ import './polyfills';
163
+ ```
164
+
165
+ Some files are imported for their side effects (polyfills, global registrations, CSS). They have no exports but are not dead.
166
+
167
+ ### Environment-specific code
168
+
169
+ ```typescript
170
+ // Only used when FEATURE_FLAG_X is enabled
171
+ if (process.env.FEATURE_FLAG_X) {
172
+ const handler = require('./experimental-handler');
173
+ }
174
+ ```
175
+
176
+ Code behind feature flags or environment checks may appear dead in the default configuration.
177
+
178
+ ## Harness Integration
179
+
180
+ - **`harness cleanup`** — Full entropy analysis. Reports dead exports, unused files, pattern violations, and orphaned dependencies.
181
+ - **`harness cleanup --type dead-code`** — Focused analysis on unused code specifically.
182
+ - **`harness cleanup --type dead-code --json`** — Machine-readable output for automation.
183
+ - **`harness fix-drift`** — Update documentation after removing dead code. Ensures deleted items are not still referenced in docs.
184
+ - **`harness validate`** — Run after cleanup to verify project structure remains valid.
185
+ - **`harness check-deps`** — Run after cleanup to verify no dependency violations were introduced.
186
+
187
+ ## Success Criteria
188
+
189
+ - `harness cleanup` reports zero dead exports and zero unused files (or all remaining items are documented as intentional)
190
+ - All tests pass after every deletion
191
+ - `harness validate` and `harness check-deps` pass after cleanup
192
+ - Documentation references to deleted code are updated or removed
193
+ - No dynamically-imported, type-only, or side-effect code was accidentally deleted
194
+ - Each cleanup commit is atomic and has a descriptive message explaining what was removed and why
195
+
196
+ ## Examples
197
+
198
+ ### Example: Removing unused utility functions
199
+
200
+ **Entropy report:**
201
+
202
+ ```
203
+ DEAD EXPORT: src/utils/string-helpers.ts
204
+ - capitalizeFirst() — 0 imports found
205
+ - truncateWithEllipsis() — 0 imports found
206
+ - slugify() — 3 imports found (ACTIVE, not dead)
207
+ ```
208
+
209
+ **Action:** Remove `capitalizeFirst` and `truncateWithEllipsis` from the file. Keep `slugify`. Run tests — all pass. Commit: "remove unused capitalizeFirst and truncateWithEllipsis from string-helpers"
210
+
211
+ ### Example: Detecting a false positive
212
+
213
+ **Entropy report:**
214
+
215
+ ```
216
+ UNUSED FILE: src/plugins/markdown-renderer.ts
217
+ - 0 static imports found
218
+ - File contains: export default class MarkdownRenderer
219
+ ```
220
+
221
+ **Investigation:** Check for dynamic imports:
222
+
223
+ ```typescript
224
+ // src/plugins/index.ts
225
+ const renderer = await import(`./${format}-renderer`);
226
+ ```
227
+
228
+ **Result:** False positive. The file is loaded dynamically based on the `format` variable. Mark as intentional and add a comment in the file explaining the dynamic loading pattern.
229
+
230
+ ### Example: Orphaned npm dependency
231
+
232
+ **Entropy report:**
233
+
234
+ ```
235
+ ORPHANED DEPENDENCY: moment (package.json)
236
+ - 0 imports of 'moment' found in src/
237
+ - Last imported in commit abc123 (removed 3 months ago)
238
+ ```
239
+
240
+ **Action:** Remove `moment` from package.json dependencies. Run `npm install` to update lockfile. Run tests — all pass. Commit: "remove unused moment dependency"
241
+
242
+ ## Escalation
243
+
244
+ - **When removing code causes unexpected test failures:** The code has a hidden dependency. Undo the deletion, investigate the dependency chain, and document the finding. The code is not dead — it is just hard to trace.
245
+ - **When the entropy report is very large (>50 items):** Do not attempt to clean everything at once. Pick the highest-confidence dead code (files with zero imports, no dynamic patterns) and clean those first. Schedule the rest across multiple sessions.
246
+ - **When you are unsure if an export is used externally:** Check if the code is in a published package. If so, removing an export is a breaking change. Deprecate first, then remove in a major version.
247
+ - **When dead code is tangled with live code in the same file:** Extract the live code first (using harness-refactoring), then delete the remaining dead code. Do not try to surgically remove dead code from a complex file in one step.
248
+
@@ -0,0 +1,3 @@
1
+ # Reserved for Phase B native integration
2
+ name: cleanup-dead-code
3
+ version: "1.0.0"
@@ -0,0 +1,182 @@
1
+ <!-- Generated by harness generate-slash-commands. Do not edit. -->
2
+
3
+ # Detect Doc Drift
4
+
5
+ > Detect documentation that has drifted from code. Find stale docs before they mislead developers and AI agents.
6
+
7
+ ## When to Use
8
+
9
+ - After completing a feature, bug fix, or refactoring
10
+ - During code review — check if the changed files have associated docs that need updating
11
+ - As a periodic hygiene check (weekly or per-sprint)
12
+ - When `on_post_feature` or `on_doc_check` triggers fire
13
+ - When onboarding reveals confusion caused by outdated documentation
14
+ - NOT during active development — wait until the code is stable before checking docs
15
+ - NOT for writing new documentation from scratch (use align-documentation instead)
16
+
17
+ ## Process
18
+
19
+ ### Phase 1: Scan — Run Drift Detection
20
+
21
+ 1. **Run `harness check-docs`** to identify all documentation issues. Capture the full output.
22
+
23
+ 2. **Run `harness cleanup --type drift`** for a deeper analysis that cross-references code changes against documentation references.
24
+
25
+ 3. **Optionally, run `git diff` against a baseline** (last release, last sprint, etc.) to identify which code files changed. This helps prioritize — docs for recently changed files are most likely to be drifted.
26
+
27
+ ### Graph-Enhanced Context (when available)
28
+
29
+ When a knowledge graph exists at `.harness/graph/`, use graph queries for faster, more accurate drift detection:
30
+
31
+ - `query_graph` — find `documents` edges where the target code node has changed since the doc node was last updated
32
+
33
+ When a graph is available, drift is simply stale edges: doc-to-code edges where the code side has been modified more recently than the doc side. This replaces regex pattern matching and catches semantic drift that text search misses. Fall back to file-based commands if no graph is available.
34
+
35
+ ### Pipeline Context (when orchestrated)
36
+
37
+ When invoked by `harness-docs-pipeline`, check for a `pipeline` field in `.harness/handoff.json`:
38
+
39
+ - If `pipeline` field exists: read `DocPipelineContext` from it
40
+ - Use `pipeline.exclusions` to skip findings that were already addressed in a previous phase
41
+ - Write `DriftFinding[]` results back to `pipeline.driftFindings` in handoff.json
42
+ - This enables the orchestrator to track findings across phases and avoid double-counting
43
+ - If `pipeline` field does not exist: behave exactly as today (standalone mode)
44
+
45
+ No changes to the skill's interface or output format — the pipeline field is purely additive.
46
+
47
+ ### Phase 2: Identify — Classify Drift Types
48
+
49
+ Categorize each finding into one of these drift types:
50
+
51
+ **Renamed but not updated:**
52
+ A function, class, variable, or file was renamed in code, but documentation still references the old name. This is the most common type of drift.
53
+
54
+ - Example: `calculateShipping()` was renamed to `computeShippingCost()`, but AGENTS.md and three inline comments still say `calculateShipping`.
55
+
56
+ **New code with no docs:**
57
+ A new module, function, or API was added but no documentation entry exists. This is not "drift" in the strict sense but a gap that grows into drift over time.
58
+
59
+ - Example: `src/services/notification-service.ts` was added two sprints ago. It has 5 public exports. No AGENTS.md section, no doc page, no inline doc comments beyond basic JSDoc.
60
+
61
+ **Deleted code still referenced:**
62
+ A file, function, or feature was removed, but documentation still describes it as if it exists. This actively misleads readers.
63
+
64
+ - Example: `src/utils/legacy-parser.ts` was deleted. The architecture doc still includes it in the data flow diagram. AGENTS.md still warns about its quirks.
65
+
66
+ **Changed behavior not reflected:**
67
+ A function's signature, return type, error handling, or side effects changed, but the documentation describes the old behavior.
68
+
69
+ - Example: `createUser()` now throws `ValidationError` instead of returning `null` on invalid input. The API docs still say "returns null if validation fails."
70
+
71
+ **Moved code with stale paths:**
72
+ A file or module was moved to a different directory, but documentation references the old path.
73
+
74
+ - Example: `src/helpers/format.ts` was moved to `src/utils/format.ts`. Three doc files and AGENTS.md reference the old path.
75
+
76
+ ### Phase 3: Prioritize — Rank by Impact
77
+
78
+ Not all drift is equally harmful. Prioritize fixes:
79
+
80
+ **Critical (fix immediately):**
81
+
82
+ - Public API documentation that describes wrong behavior — external consumers will write broken code
83
+ - AGENTS.md sections that reference deleted files — AI agents will hallucinate about non-existent code
84
+ - README getting-started guides with wrong commands — new developers cannot onboard
85
+
86
+ **High (fix before next release):**
87
+
88
+ - Internal API docs with wrong signatures — developers waste time debugging
89
+ - Architecture docs with stale diagrams — wrong mental models lead to wrong decisions
90
+ - Frequently accessed docs with broken links — high-traffic pages with dead ends
91
+
92
+ **Medium (fix in next sprint):**
93
+
94
+ - Internal docs for stable code — low change rate means low confusion rate
95
+ - Comments in rarely modified files — few people read them
96
+ - Edge case documentation — affects few users
97
+
98
+ **Low (fix when convenient):**
99
+
100
+ - Stylistic inconsistencies in docs (capitalization, formatting)
101
+ - Redundant documentation that says the same thing in multiple places
102
+ - Historical notes that are outdated but clearly marked as historical
103
+
104
+ ### Phase 4: Report — Generate Actionable Output
105
+
106
+ For each drift finding, provide:
107
+
108
+ 1. **File and line number** of the drifted documentation
109
+ 2. **The specific stale content** (quote the exact text that is wrong)
110
+ 3. **What changed in code** (the commit, file, and nature of the change)
111
+ 4. **Suggested fix** (the replacement text or action needed)
112
+ 5. **Priority tier** (Critical / High / Medium / Low)
113
+
114
+ Group findings by documentation file so that fixes can be applied file-by-file.
115
+
116
+ ## Harness Integration
117
+
118
+ - **`harness check-docs`** — Primary tool. Scans all documentation files for broken references, stale paths, and missing entries.
119
+ - **`harness cleanup --type drift`** — Deeper analysis that cross-references git history with documentation references to detect semantic drift.
120
+ - **`harness cleanup --type drift --json`** — Machine-readable output for automated pipelines.
121
+ - **`harness fix-drift`** — Auto-fix simple drift issues after review (use align-documentation skill for applying fixes).
122
+
123
+ ## Success Criteria
124
+
125
+ - `harness check-docs` reports zero errors
126
+ - All file paths referenced in documentation resolve to existing files
127
+ - All function/class names referenced in documentation match current code
128
+ - All API documentation matches current function signatures and behavior
129
+ - No documentation references deleted files, functions, or features
130
+ - Drift findings are prioritized and assigned to the appropriate fix cycle
131
+
132
+ ## Examples
133
+
134
+ ### Example: Renamed function detected
135
+
136
+ **Drift finding:**
137
+
138
+ ```
139
+ DRIFT: Renamed reference detected
140
+ Doc: AGENTS.md:47
141
+ Stale text: "Use `calculateShipping()` to compute shipping costs"
142
+ Code change: calculateShipping renamed to computeShippingCost (commit a1b2c3d)
143
+ File: src/services/shipping.ts:24
144
+ Priority: High
145
+ Suggested fix: Replace `calculateShipping()` with `computeShippingCost()`
146
+ ```
147
+
148
+ ### Example: Deleted file still documented
149
+
150
+ **Drift finding:**
151
+
152
+ ```
153
+ DRIFT: Reference to deleted file
154
+ Doc: docs/architecture.md:112
155
+ Stale text: "The legacy parser (src/utils/legacy-parser.ts) handles XML input"
156
+ Code change: File deleted in commit d4e5f6g, functionality merged into unified-parser.ts
157
+ Priority: Critical
158
+ Suggested fix: Update section to reference unified-parser.ts, remove legacy parser description
159
+ ```
160
+
161
+ ### Example: New module with no documentation
162
+
163
+ **Drift finding:**
164
+
165
+ ```
166
+ GAP: Undocumented module
167
+ File: src/services/notification-service.ts
168
+ Created: commit h7i8j9k (3 weeks ago)
169
+ Public exports: NotificationService, NotificationType, sendNotification
170
+ Imported by: 4 modules
171
+ Documentation references: 0
172
+ Priority: High
173
+ Suggested fix: Add AGENTS.md section describing purpose, constraints, and public API
174
+ ```
175
+
176
+ ## Escalation
177
+
178
+ - **When drift is extensive (>30 findings):** Do not try to fix everything. Focus on Critical and High priority items. Create a tracking issue for the remaining items and schedule them across sprints.
179
+ - **When you cannot determine the correct replacement text:** The code change may have been complex. Check the commit message and PR description for context. If still unclear, flag the finding for the original author to resolve.
180
+ - **When documentation is in a format you cannot parse:** Some docs may be in wiki pages, Confluence, or other external systems. Report the finding with a link and flag it for manual review.
181
+ - **When drift reveals a deeper problem (code changed but nobody knew):** This suggests a process gap. Recommend adding `harness check-docs` to the CI pipeline or pre-merge hooks to catch drift at the source.
182
+