aidevops 2.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/.agent/AGENTS.md +614 -0
  2. package/.agent/accounts.md +65 -0
  3. package/.agent/aidevops/add-new-mcp-to-aidevops.md +456 -0
  4. package/.agent/aidevops/api-integrations.md +335 -0
  5. package/.agent/aidevops/architecture.md +510 -0
  6. package/.agent/aidevops/configs.md +274 -0
  7. package/.agent/aidevops/docs.md +244 -0
  8. package/.agent/aidevops/extension.md +311 -0
  9. package/.agent/aidevops/mcp-integrations.md +340 -0
  10. package/.agent/aidevops/mcp-troubleshooting.md +162 -0
  11. package/.agent/aidevops/memory-patterns.md +172 -0
  12. package/.agent/aidevops/providers.md +217 -0
  13. package/.agent/aidevops/recommendations.md +321 -0
  14. package/.agent/aidevops/requirements.md +301 -0
  15. package/.agent/aidevops/resources.md +214 -0
  16. package/.agent/aidevops/security-requirements.md +174 -0
  17. package/.agent/aidevops/security.md +350 -0
  18. package/.agent/aidevops/service-links.md +400 -0
  19. package/.agent/aidevops/services.md +357 -0
  20. package/.agent/aidevops/setup.md +153 -0
  21. package/.agent/aidevops/troubleshooting.md +389 -0
  22. package/.agent/aidevops.md +124 -0
  23. package/.agent/build-plus.md +244 -0
  24. package/.agent/content/guidelines.md +109 -0
  25. package/.agent/content.md +87 -0
  26. package/.agent/health.md +59 -0
  27. package/.agent/legal.md +59 -0
  28. package/.agent/loop-state/full-loop.local.md +16 -0
  29. package/.agent/loop-state/ralph-loop.local.md +10 -0
  30. package/.agent/marketing.md +440 -0
  31. package/.agent/memory/README.md +260 -0
  32. package/.agent/onboarding.md +796 -0
  33. package/.agent/plan-plus.md +245 -0
  34. package/.agent/research.md +100 -0
  35. package/.agent/sales.md +333 -0
  36. package/.agent/scripts/101domains-helper.sh +701 -0
  37. package/.agent/scripts/add-missing-returns.sh +140 -0
  38. package/.agent/scripts/agent-browser-helper.sh +311 -0
  39. package/.agent/scripts/agno-setup.sh +712 -0
  40. package/.agent/scripts/ahrefs-mcp-wrapper.js +168 -0
  41. package/.agent/scripts/aidevops-update-check.sh +71 -0
  42. package/.agent/scripts/ampcode-cli.sh +522 -0
  43. package/.agent/scripts/auto-version-bump.sh +156 -0
  44. package/.agent/scripts/autogen-helper.sh +512 -0
  45. package/.agent/scripts/beads-sync-helper.sh +596 -0
  46. package/.agent/scripts/closte-helper.sh +5 -0
  47. package/.agent/scripts/cloudron-helper.sh +321 -0
  48. package/.agent/scripts/codacy-cli-chunked.sh +581 -0
  49. package/.agent/scripts/codacy-cli.sh +442 -0
  50. package/.agent/scripts/code-audit-helper.sh +5 -0
  51. package/.agent/scripts/coderabbit-cli.sh +417 -0
  52. package/.agent/scripts/coderabbit-pro-analysis.sh +238 -0
  53. package/.agent/scripts/commands/code-simplifier.md +86 -0
  54. package/.agent/scripts/commands/full-loop.md +246 -0
  55. package/.agent/scripts/commands/postflight-loop.md +103 -0
  56. package/.agent/scripts/commands/recall.md +182 -0
  57. package/.agent/scripts/commands/remember.md +132 -0
  58. package/.agent/scripts/commands/save-todo.md +175 -0
  59. package/.agent/scripts/commands/session-review.md +154 -0
  60. package/.agent/scripts/comprehensive-quality-fix.sh +106 -0
  61. package/.agent/scripts/context-builder-helper.sh +522 -0
  62. package/.agent/scripts/coolify-cli-helper.sh +674 -0
  63. package/.agent/scripts/coolify-helper.sh +380 -0
  64. package/.agent/scripts/crawl4ai-examples.sh +401 -0
  65. package/.agent/scripts/crawl4ai-helper.sh +1078 -0
  66. package/.agent/scripts/crewai-helper.sh +681 -0
  67. package/.agent/scripts/dev-browser-helper.sh +513 -0
  68. package/.agent/scripts/dns-helper.sh +396 -0
  69. package/.agent/scripts/domain-research-helper.sh +917 -0
  70. package/.agent/scripts/dspy-helper.sh +285 -0
  71. package/.agent/scripts/dspyground-helper.sh +291 -0
  72. package/.agent/scripts/eeat-score-helper.sh +1242 -0
  73. package/.agent/scripts/efficient-return-fix.sh +92 -0
  74. package/.agent/scripts/extract-opencode-prompts.sh +128 -0
  75. package/.agent/scripts/find-missing-returns.sh +113 -0
  76. package/.agent/scripts/fix-auth-headers.sh +104 -0
  77. package/.agent/scripts/fix-common-strings.sh +254 -0
  78. package/.agent/scripts/fix-content-type.sh +100 -0
  79. package/.agent/scripts/fix-error-messages.sh +130 -0
  80. package/.agent/scripts/fix-misplaced-returns.sh +74 -0
  81. package/.agent/scripts/fix-remaining-literals.sh +152 -0
  82. package/.agent/scripts/fix-return-statements.sh +41 -0
  83. package/.agent/scripts/fix-s131-default-cases.sh +249 -0
  84. package/.agent/scripts/fix-sc2155-simple.sh +102 -0
  85. package/.agent/scripts/fix-shellcheck-critical.sh +187 -0
  86. package/.agent/scripts/fix-string-literals.sh +273 -0
  87. package/.agent/scripts/full-loop-helper.sh +773 -0
  88. package/.agent/scripts/generate-opencode-agents.sh +497 -0
  89. package/.agent/scripts/generate-opencode-commands.sh +1629 -0
  90. package/.agent/scripts/generate-skills.sh +366 -0
  91. package/.agent/scripts/git-platforms-helper.sh +640 -0
  92. package/.agent/scripts/gitea-cli-helper.sh +743 -0
  93. package/.agent/scripts/github-cli-helper.sh +702 -0
  94. package/.agent/scripts/gitlab-cli-helper.sh +682 -0
  95. package/.agent/scripts/gsc-add-user-helper.sh +325 -0
  96. package/.agent/scripts/gsc-sitemap-helper.sh +678 -0
  97. package/.agent/scripts/hetzner-helper.sh +485 -0
  98. package/.agent/scripts/hostinger-helper.sh +229 -0
  99. package/.agent/scripts/keyword-research-helper.sh +1815 -0
  100. package/.agent/scripts/langflow-helper.sh +544 -0
  101. package/.agent/scripts/linkedin-automation.py +241 -0
  102. package/.agent/scripts/linter-manager.sh +599 -0
  103. package/.agent/scripts/linters-local.sh +434 -0
  104. package/.agent/scripts/list-keys-helper.sh +488 -0
  105. package/.agent/scripts/local-browser-automation.py +339 -0
  106. package/.agent/scripts/localhost-helper.sh +744 -0
  107. package/.agent/scripts/loop-common.sh +806 -0
  108. package/.agent/scripts/mainwp-helper.sh +728 -0
  109. package/.agent/scripts/markdown-formatter.sh +338 -0
  110. package/.agent/scripts/markdown-lint-fix.sh +311 -0
  111. package/.agent/scripts/mass-fix-returns.sh +58 -0
  112. package/.agent/scripts/mcp-diagnose.sh +167 -0
  113. package/.agent/scripts/mcp-inspector-helper.sh +449 -0
  114. package/.agent/scripts/memory-helper.sh +650 -0
  115. package/.agent/scripts/monitor-code-review.sh +255 -0
  116. package/.agent/scripts/onboarding-helper.sh +706 -0
  117. package/.agent/scripts/opencode-github-setup-helper.sh +797 -0
  118. package/.agent/scripts/opencode-test-helper.sh +213 -0
  119. package/.agent/scripts/pagespeed-helper.sh +464 -0
  120. package/.agent/scripts/pandoc-helper.sh +362 -0
  121. package/.agent/scripts/postflight-check.sh +555 -0
  122. package/.agent/scripts/pre-commit-hook.sh +259 -0
  123. package/.agent/scripts/pre-edit-check.sh +169 -0
  124. package/.agent/scripts/qlty-cli.sh +356 -0
  125. package/.agent/scripts/quality-cli-manager.sh +525 -0
  126. package/.agent/scripts/quality-feedback-helper.sh +462 -0
  127. package/.agent/scripts/quality-fix.sh +263 -0
  128. package/.agent/scripts/quality-loop-helper.sh +1108 -0
  129. package/.agent/scripts/ralph-loop-helper.sh +836 -0
  130. package/.agent/scripts/ralph-upstream-check.sh +341 -0
  131. package/.agent/scripts/secretlint-helper.sh +847 -0
  132. package/.agent/scripts/servers-helper.sh +241 -0
  133. package/.agent/scripts/ses-helper.sh +619 -0
  134. package/.agent/scripts/session-review-helper.sh +404 -0
  135. package/.agent/scripts/setup-linters-wizard.sh +379 -0
  136. package/.agent/scripts/setup-local-api-keys.sh +330 -0
  137. package/.agent/scripts/setup-mcp-integrations.sh +472 -0
  138. package/.agent/scripts/shared-constants.sh +246 -0
  139. package/.agent/scripts/site-crawler-helper.sh +1487 -0
  140. package/.agent/scripts/snyk-helper.sh +940 -0
  141. package/.agent/scripts/sonarcloud-autofix.sh +193 -0
  142. package/.agent/scripts/sonarcloud-cli.sh +191 -0
  143. package/.agent/scripts/sonarscanner-cli.sh +455 -0
  144. package/.agent/scripts/spaceship-helper.sh +747 -0
  145. package/.agent/scripts/stagehand-helper.sh +321 -0
  146. package/.agent/scripts/stagehand-python-helper.sh +321 -0
  147. package/.agent/scripts/stagehand-python-setup.sh +441 -0
  148. package/.agent/scripts/stagehand-setup.sh +439 -0
  149. package/.agent/scripts/system-cleanup.sh +340 -0
  150. package/.agent/scripts/terminal-title-helper.sh +388 -0
  151. package/.agent/scripts/terminal-title-setup.sh +549 -0
  152. package/.agent/scripts/test-stagehand-both-integration.sh +317 -0
  153. package/.agent/scripts/test-stagehand-integration.sh +309 -0
  154. package/.agent/scripts/test-stagehand-python-integration.sh +341 -0
  155. package/.agent/scripts/todo-ready.sh +263 -0
  156. package/.agent/scripts/tool-version-check.sh +362 -0
  157. package/.agent/scripts/toon-helper.sh +469 -0
  158. package/.agent/scripts/twilio-helper.sh +917 -0
  159. package/.agent/scripts/updown-helper.sh +279 -0
  160. package/.agent/scripts/validate-mcp-integrations.sh +250 -0
  161. package/.agent/scripts/validate-version-consistency.sh +131 -0
  162. package/.agent/scripts/vaultwarden-helper.sh +597 -0
  163. package/.agent/scripts/vercel-cli-helper.sh +816 -0
  164. package/.agent/scripts/verify-mirrors.sh +169 -0
  165. package/.agent/scripts/version-manager.sh +831 -0
  166. package/.agent/scripts/webhosting-helper.sh +471 -0
  167. package/.agent/scripts/webhosting-verify.sh +238 -0
  168. package/.agent/scripts/wordpress-mcp-helper.sh +508 -0
  169. package/.agent/scripts/worktree-helper.sh +595 -0
  170. package/.agent/scripts/worktree-sessions.sh +577 -0
  171. package/.agent/seo/dataforseo.md +215 -0
  172. package/.agent/seo/domain-research.md +532 -0
  173. package/.agent/seo/eeat-score.md +659 -0
  174. package/.agent/seo/google-search-console.md +366 -0
  175. package/.agent/seo/gsc-sitemaps.md +282 -0
  176. package/.agent/seo/keyword-research.md +521 -0
  177. package/.agent/seo/serper.md +278 -0
  178. package/.agent/seo/site-crawler.md +387 -0
  179. package/.agent/seo.md +236 -0
  180. package/.agent/services/accounting/quickfile.md +159 -0
  181. package/.agent/services/communications/telfon.md +470 -0
  182. package/.agent/services/communications/twilio.md +569 -0
  183. package/.agent/services/crm/fluentcrm.md +449 -0
  184. package/.agent/services/email/ses.md +399 -0
  185. package/.agent/services/hosting/101domains.md +378 -0
  186. package/.agent/services/hosting/closte.md +177 -0
  187. package/.agent/services/hosting/cloudflare.md +251 -0
  188. package/.agent/services/hosting/cloudron.md +478 -0
  189. package/.agent/services/hosting/dns-providers.md +335 -0
  190. package/.agent/services/hosting/domain-purchasing.md +344 -0
  191. package/.agent/services/hosting/hetzner.md +327 -0
  192. package/.agent/services/hosting/hostinger.md +287 -0
  193. package/.agent/services/hosting/localhost.md +419 -0
  194. package/.agent/services/hosting/spaceship.md +353 -0
  195. package/.agent/services/hosting/webhosting.md +330 -0
  196. package/.agent/social-media.md +69 -0
  197. package/.agent/templates/plans-template.md +114 -0
  198. package/.agent/templates/prd-template.md +129 -0
  199. package/.agent/templates/tasks-template.md +108 -0
  200. package/.agent/templates/todo-template.md +89 -0
  201. package/.agent/tools/ai-assistants/agno.md +471 -0
  202. package/.agent/tools/ai-assistants/capsolver.md +326 -0
  203. package/.agent/tools/ai-assistants/configuration.md +221 -0
  204. package/.agent/tools/ai-assistants/overview.md +209 -0
  205. package/.agent/tools/ai-assistants/status.md +171 -0
  206. package/.agent/tools/ai-assistants/windsurf.md +193 -0
  207. package/.agent/tools/ai-orchestration/autogen.md +406 -0
  208. package/.agent/tools/ai-orchestration/crewai.md +445 -0
  209. package/.agent/tools/ai-orchestration/langflow.md +405 -0
  210. package/.agent/tools/ai-orchestration/openprose.md +487 -0
  211. package/.agent/tools/ai-orchestration/overview.md +362 -0
  212. package/.agent/tools/ai-orchestration/packaging.md +647 -0
  213. package/.agent/tools/browser/agent-browser.md +464 -0
  214. package/.agent/tools/browser/browser-automation.md +400 -0
  215. package/.agent/tools/browser/chrome-devtools.md +282 -0
  216. package/.agent/tools/browser/crawl4ai-integration.md +422 -0
  217. package/.agent/tools/browser/crawl4ai-resources.md +277 -0
  218. package/.agent/tools/browser/crawl4ai-usage.md +416 -0
  219. package/.agent/tools/browser/crawl4ai.md +585 -0
  220. package/.agent/tools/browser/dev-browser.md +341 -0
  221. package/.agent/tools/browser/pagespeed.md +260 -0
  222. package/.agent/tools/browser/playwright.md +266 -0
  223. package/.agent/tools/browser/playwriter.md +310 -0
  224. package/.agent/tools/browser/stagehand-examples.md +456 -0
  225. package/.agent/tools/browser/stagehand-python.md +483 -0
  226. package/.agent/tools/browser/stagehand.md +421 -0
  227. package/.agent/tools/build-agent/agent-review.md +224 -0
  228. package/.agent/tools/build-agent/build-agent.md +784 -0
  229. package/.agent/tools/build-mcp/aidevops-plugin.md +476 -0
  230. package/.agent/tools/build-mcp/api-wrapper.md +445 -0
  231. package/.agent/tools/build-mcp/build-mcp.md +240 -0
  232. package/.agent/tools/build-mcp/deployment.md +401 -0
  233. package/.agent/tools/build-mcp/server-patterns.md +632 -0
  234. package/.agent/tools/build-mcp/transports.md +366 -0
  235. package/.agent/tools/code-review/auditing.md +383 -0
  236. package/.agent/tools/code-review/automation.md +219 -0
  237. package/.agent/tools/code-review/best-practices.md +203 -0
  238. package/.agent/tools/code-review/codacy.md +151 -0
  239. package/.agent/tools/code-review/code-simplifier.md +174 -0
  240. package/.agent/tools/code-review/code-standards.md +309 -0
  241. package/.agent/tools/code-review/coderabbit.md +101 -0
  242. package/.agent/tools/code-review/management.md +155 -0
  243. package/.agent/tools/code-review/qlty.md +248 -0
  244. package/.agent/tools/code-review/secretlint.md +565 -0
  245. package/.agent/tools/code-review/setup.md +250 -0
  246. package/.agent/tools/code-review/snyk.md +563 -0
  247. package/.agent/tools/code-review/tools.md +230 -0
  248. package/.agent/tools/content/summarize.md +353 -0
  249. package/.agent/tools/context/augment-context-engine.md +468 -0
  250. package/.agent/tools/context/context-builder-agent.md +76 -0
  251. package/.agent/tools/context/context-builder.md +375 -0
  252. package/.agent/tools/context/context7.md +371 -0
  253. package/.agent/tools/context/dspy.md +302 -0
  254. package/.agent/tools/context/dspyground.md +374 -0
  255. package/.agent/tools/context/llm-tldr.md +219 -0
  256. package/.agent/tools/context/osgrep.md +488 -0
  257. package/.agent/tools/context/prompt-optimization.md +338 -0
  258. package/.agent/tools/context/toon.md +292 -0
  259. package/.agent/tools/conversion/pandoc.md +304 -0
  260. package/.agent/tools/credentials/api-key-management.md +154 -0
  261. package/.agent/tools/credentials/api-key-setup.md +224 -0
  262. package/.agent/tools/credentials/environment-variables.md +180 -0
  263. package/.agent/tools/credentials/vaultwarden.md +382 -0
  264. package/.agent/tools/data-extraction/outscraper.md +974 -0
  265. package/.agent/tools/deployment/coolify-cli.md +388 -0
  266. package/.agent/tools/deployment/coolify-setup.md +353 -0
  267. package/.agent/tools/deployment/coolify.md +345 -0
  268. package/.agent/tools/deployment/vercel.md +390 -0
  269. package/.agent/tools/git/authentication.md +132 -0
  270. package/.agent/tools/git/gitea-cli.md +193 -0
  271. package/.agent/tools/git/github-actions.md +207 -0
  272. package/.agent/tools/git/github-cli.md +223 -0
  273. package/.agent/tools/git/gitlab-cli.md +190 -0
  274. package/.agent/tools/git/opencode-github-security.md +350 -0
  275. package/.agent/tools/git/opencode-github.md +328 -0
  276. package/.agent/tools/git/opencode-gitlab.md +252 -0
  277. package/.agent/tools/git/security.md +196 -0
  278. package/.agent/tools/git.md +207 -0
  279. package/.agent/tools/opencode/oh-my-opencode.md +375 -0
  280. package/.agent/tools/opencode/opencode-anthropic-auth.md +446 -0
  281. package/.agent/tools/opencode/opencode.md +651 -0
  282. package/.agent/tools/social-media/bird.md +437 -0
  283. package/.agent/tools/task-management/beads.md +336 -0
  284. package/.agent/tools/terminal/terminal-title.md +251 -0
  285. package/.agent/tools/ui/shadcn.md +196 -0
  286. package/.agent/tools/ui/ui-skills.md +115 -0
  287. package/.agent/tools/wordpress/localwp.md +311 -0
  288. package/.agent/tools/wordpress/mainwp.md +391 -0
  289. package/.agent/tools/wordpress/scf.md +527 -0
  290. package/.agent/tools/wordpress/wp-admin.md +729 -0
  291. package/.agent/tools/wordpress/wp-dev.md +940 -0
  292. package/.agent/tools/wordpress/wp-preferred.md +398 -0
  293. package/.agent/tools/wordpress.md +95 -0
  294. package/.agent/workflows/branch/bugfix.md +63 -0
  295. package/.agent/workflows/branch/chore.md +95 -0
  296. package/.agent/workflows/branch/experiment.md +115 -0
  297. package/.agent/workflows/branch/feature.md +59 -0
  298. package/.agent/workflows/branch/hotfix.md +98 -0
  299. package/.agent/workflows/branch/refactor.md +92 -0
  300. package/.agent/workflows/branch/release.md +96 -0
  301. package/.agent/workflows/branch.md +347 -0
  302. package/.agent/workflows/bug-fixing.md +267 -0
  303. package/.agent/workflows/changelog.md +129 -0
  304. package/.agent/workflows/code-audit-remote.md +279 -0
  305. package/.agent/workflows/conversation-starter.md +69 -0
  306. package/.agent/workflows/error-feedback.md +578 -0
  307. package/.agent/workflows/feature-development.md +355 -0
  308. package/.agent/workflows/git-workflow.md +702 -0
  309. package/.agent/workflows/multi-repo-workspace.md +268 -0
  310. package/.agent/workflows/plans.md +709 -0
  311. package/.agent/workflows/postflight.md +604 -0
  312. package/.agent/workflows/pr.md +571 -0
  313. package/.agent/workflows/preflight.md +278 -0
  314. package/.agent/workflows/ralph-loop.md +773 -0
  315. package/.agent/workflows/release.md +498 -0
  316. package/.agent/workflows/session-manager.md +254 -0
  317. package/.agent/workflows/session-review.md +311 -0
  318. package/.agent/workflows/sql-migrations.md +631 -0
  319. package/.agent/workflows/version-bump.md +283 -0
  320. package/.agent/workflows/wiki-update.md +333 -0
  321. package/.agent/workflows/worktree.md +477 -0
  322. package/LICENSE +21 -0
  323. package/README.md +1446 -0
  324. package/VERSION +1 -0
  325. package/aidevops.sh +1746 -0
  326. package/bin/aidevops +21 -0
  327. package/package.json +75 -0
  328. package/scripts/npm-postinstall.js +60 -0
  329. package/setup.sh +2366 -0
@@ -0,0 +1,614 @@
1
+ ---
2
+ mode: subagent
3
+ ---
4
+ # AI DevOps Framework - User Guide
5
+
6
+ **New to aidevops?** Type `/onboarding` to get started with an interactive setup wizard.
7
+
8
+ ## 🛑 MANDATORY: Pre-Edit Git Check
9
+
10
+ > **Skip this section if you don't have Edit/Write/Bash tools** (e.g., Plan+ agent).
11
+ > Read-only agents should proceed directly to responding to the user.
12
+
13
+ **CRITICAL**: This check MUST be performed BEFORE:
14
+ - **Creating** new files
15
+ - **Editing** existing files
16
+ - **Writing** any content to disk
17
+ - Using Edit, Write, or Bash tools that modify files
18
+
19
+ Failure to follow this workflow is a bug in the AI assistant's behavior.
20
+
21
+ **Trigger words requiring this check**: create, add, write, update, modify, change, fix, implement, refactor.
22
+ If the user's request contains ANY of these, run the check FIRST.
23
+
24
+ **Self-check before any file operation**: Say "Checking git branch..." and run:
25
+
26
+ ```bash
27
+ ~/.aidevops/agents/scripts/pre-edit-check.sh
28
+ ```
29
+
30
+ If the script outputs "STOP - ON PROTECTED BRANCH", you MUST NOT proceed with edits.
31
+
32
+ **Manual check if script unavailable:**
33
+
34
+ 1. Run `git branch --show-current`
35
+ 2. If on `main`, present this prompt and WAIT for user response:
36
+
37
+ > On `main`. Suggested branch: `{type}/{suggested-name}`
38
+ >
39
+ > 1. Create worktree (recommended - keeps main repo on main)
40
+ > 2. Use different branch name
41
+ > 3. Stay on `main` (docs-only, not recommended for code)
42
+
43
+ 3. **Do NOT proceed until user replies with 1, 2, or 3**
44
+
45
+ **Loop mode (autonomous agents)**: Loop agents (`/full-loop`, `/ralph-loop`) use auto-decision to avoid stalling:
46
+
47
+ ```bash
48
+ ~/.aidevops/agents/scripts/pre-edit-check.sh --loop-mode --task "task description"
49
+ ```
50
+
51
+ Auto-decision rules:
52
+ - **Docs-only tasks** (README, CHANGELOG, docs/, typos) -> Option 3 (stay on main)
53
+ - **Code tasks** (feature, fix, implement, refactor, enhance) -> Option 1 (create worktree automatically)
54
+
55
+ Exit codes: `0` = proceed, `1` = interactive stop, `2` = create worktree needed
56
+
57
+ Detection keywords:
58
+ - Docs-only: `readme`, `changelog`, `documentation`, `docs/`, `typo`, `spelling`
59
+ - Code (overrides docs): `feature`, `fix`, `bug`, `implement`, `refactor`, `add`, `update`, `enhance`, `port`, `ssl`, `helper`
60
+
61
+ **Why worktrees are the default**: The main repo directory (`~/Git/{repo}/`) should ALWAYS stay on `main`. This prevents:
62
+ - Uncommitted changes blocking branch switches
63
+ - Parallel sessions inheriting wrong branch state
64
+ - "Your local changes would be overwritten" errors
65
+
66
+ **When option 3 is acceptable**: Documentation-only changes (README, CHANGELOG, docs/), typo fixes, version bumps via release script.
67
+ **When option 3 is NOT acceptable**: Any code changes, configuration files, scripts.
68
+
69
+ 4. Create worktree: `~/.aidevops/agents/scripts/worktree-helper.sh add {type}/{name}`
70
+ 5. After creating branch, call `session-rename_sync_branch` tool
71
+
72
+ **Legacy checkout workflow**: If user explicitly requests `git checkout -b` instead of worktrees, warn them:
73
+ > Note: Checkout leaves main repo on feature branch. Remember to `git checkout main` when done, or use worktrees to avoid this.
74
+
75
+ **Why this matters**: Skipping this check causes direct commits to `main`, bypassing PR review.
76
+
77
+ **Main repo principle**: The directory `~/Git/{repo}/` should always stay on `main`. All feature work happens in worktree directories (`~/Git/{repo}-{type}-{name}/`). This ensures any session opening the main repo starts clean.
78
+
79
+ **Self-verification**: Before ANY file operation, ask yourself:
80
+ "Have I run pre-edit-check.sh in this session?" If unsure, run it NOW.
81
+
82
+ **Tool-level enforcement**: Before calling Edit, Write, or Bash (with file-modifying commands), you MUST have already confirmed you're on a feature branch. If the check hasn't been run this session, run it NOW before proceeding.
83
+
84
+ **Working in aidevops framework**: When modifying aidevops agents, you work in TWO locations:
85
+ - **Source**: `~/Git/aidevops/.agent/` - THIS is the git repo, check branch HERE
86
+ - **Deployed**: `~/.aidevops/agents/` - copy of source, not a git repo
87
+
88
+ Run pre-edit-check.sh in `~/Git/aidevops/` BEFORE any changes to either location.
89
+
90
+ ---
91
+
92
+ <!-- AI-CONTEXT-START -->
93
+
94
+ ## Quick Reference
95
+
96
+ - **Purpose**: DevOps automation across multiple services
97
+ - **Getting Started**: `/onboarding` - Interactive setup wizard for new users
98
+ - **Scripts**: `~/.aidevops/agents/scripts/[service]-helper.sh [command] [account] [target]`
99
+ - **Configs**: `configs/[service]-config.json` (gitignored, use `.json.txt` templates)
100
+ - **Credentials**: `~/.config/aidevops/mcp-env.sh` (600 permissions)
101
+
102
+ **Critical Rules**:
103
+ - **Git check before edits**: See "MANDATORY: Pre-Edit Git Check" section above
104
+ - NEVER create files in `~/` root - use `~/.aidevops/.agent-workspace/work/[project]/` for files needed only with the current task.
105
+ - NEVER expose credentials in output/logs
106
+ - Confirm destructive operations before execution
107
+ - Store secrets ONLY in `~/.config/aidevops/mcp-env.sh`
108
+ - Re-read files immediately before editing (stale reads cause "file modified" errors)
109
+
110
+ **Quality Standards**: SonarCloud A-grade, ShellCheck zero violations
111
+
112
+ **Localhost Standards** (for any local service setup):
113
+ - **Always check port first**: `localhost-helper.sh check-port <port>` before starting services
114
+ - **Use .local domains**: `myapp.local` not `localhost:3000` (enables password manager autofill)
115
+ - **Always use SSL**: Via Traefik proxy with mkcert certificates
116
+ - **Auto-find ports**: `localhost-helper.sh find-port <start>` if preferred port is taken
117
+ - See `services/hosting/localhost.md` for full setup guide
118
+
119
+ **SonarCloud Hotspot Patterns** (auto-excluded via `sonar-project.properties`):
120
+ - Scripts matching `*-helper.sh`, `*-setup.sh`, `*-cli.sh`, `*-verify.sh` are excluded from:
121
+ - S5332 (clear-text protocol) - `http://localhost` for local dev
122
+ - S6506 (HTTPS not enforced) - `curl|bash` for official installers
123
+ - Add `# SONAR:` comments for documentation, exclusions handle suppression
124
+
125
+ ## Planning Workflow
126
+
127
+ **After completing planning/research**, use `/save-todo` to record the work.
128
+
129
+ The command auto-detects complexity and saves appropriately:
130
+ - **Simple** (< 2h, single action) → TODO.md only
131
+ - **Complex** (> 2h, multi-step) → PLANS.md + TODO.md reference
132
+
133
+ User confirms with numbered options to override if needed.
134
+
135
+ **Planning files:**
136
+
137
+ | File | Purpose |
138
+ |------|---------|
139
+ | `TODO.md` | All tasks (simple + plan references) |
140
+ | `todo/PLANS.md` | Complex execution plans with context |
141
+ | `todo/tasks/prd-*.md` | Product requirement documents |
142
+ | `todo/tasks/tasks-*.md` | Implementation task lists |
143
+
144
+ **Slash commands:** `/save-todo`, `/plan-status`, `/create-prd`, `/generate-tasks`, `/log-time-spent`, `/ready`, `/sync-beads`, `/remember`, `/recall`, `/session-review`, `/full-loop`, `/code-simplifier`
145
+
146
+ **Time tracking format:**
147
+
148
+ ```markdown
149
+ - [ ] Task description @owner #tag ~4h (ai:2h test:1h) started:2025-01-15T10:30Z
150
+ ```
151
+
152
+ | Field | Purpose | Example |
153
+ |-------|---------|---------|
154
+ | `~estimate` | Total time estimate | `~4h`, `~30m`, `~2h30m` |
155
+ | `(breakdown)` | AI/test/read time | `(ai:2h test:1h read:30m)` |
156
+ | `started:` | Branch creation time | `started:2025-01-15T10:30Z` |
157
+ | `completed:` | Task completion time | `completed:2025-01-16T14:00Z` |
158
+ | `actual:` | Actual time spent | `actual:5h30m` |
159
+ | `logged:` | Cumulative logged time | `logged:3h` |
160
+
161
+ **Configure per-repo:** `.aidevops.json` with `"time_tracking": true|false|"prompt"`
162
+
163
+ **Task Dependencies (Beads integration):**
164
+
165
+ ```markdown
166
+ - [ ] t001 First task
167
+ - [ ] t002 Second task blocked-by:t001
168
+ - [ ] t001.1 Subtask of t001
169
+ ```
170
+
171
+ | Syntax | Meaning |
172
+ |--------|---------|
173
+ | `blocked-by:t001` | Task waits for t001 |
174
+ | `blocks:t002` | Task blocks t002 |
175
+ | `t001.1` | Subtask of t001 |
176
+
177
+ **Beads commands:** `/ready` (show unblocked tasks), `/sync-beads` (sync with graph)
178
+
179
+ **TODO.md branch strategy**: Stay on current branch for related work (discovered tasks, status updates). For unrelated backlog additions, offer branch choice if no uncommitted changes.
180
+
181
+ **Full workflow:** See `workflows/plans.md` for details
182
+
183
+ ## Memory System
184
+
185
+ Cross-session memory using SQLite FTS5 for fast full-text search.
186
+
187
+ **Commands:**
188
+
189
+ | Command | Purpose |
190
+ |---------|---------|
191
+ | `/remember {content}` | Store a memory with AI-assisted categorization |
192
+ | `/recall {query}` | Search memories by keyword |
193
+ | `/recall --recent` | Show 10 most recent memories |
194
+ | `/recall --stats` | Show memory statistics |
195
+
196
+ **Memory types:** `WORKING_SOLUTION`, `FAILED_APPROACH`, `CODEBASE_PATTERN`, `USER_PREFERENCE`, `TOOL_CONFIG`, `DECISION`, `CONTEXT`
197
+
198
+ **CLI:** `~/.aidevops/agents/scripts/memory-helper.sh [store|recall|stats|validate|prune|export]`
199
+
200
+ **Storage:** `~/.aidevops/.agent-workspace/memory/memory.db`
201
+
202
+ **Full docs:** See `memory/README.md` and `scripts/commands/remember.md`
203
+
204
+ ## Git Workflow (File Changes)
205
+
206
+ **BEFORE making any file changes**: Follow the "MANDATORY: Pre-Edit Git Check" at the top of this file.
207
+
208
+ **After user confirms branch choice**:
209
+ 1. Check `TODO.md` and `todo/PLANS.md` for matching tasks
210
+ 2. Derive branch name from task/plan when available
211
+ 3. Create branch and call `session-rename_sync_branch` tool to sync session name
212
+ 4. Record `started:` timestamp in TODO.md if matching task exists
213
+ 5. Read `workflows/git-workflow.md` for full workflow guidance
214
+ 6. **Monitor scope**: If work diverges from branch purpose, suggest new branch
215
+
216
+ **Session tools** (OpenCode):
217
+ - `session-rename_sync_branch` - Auto-sync session name with current git branch (preferred)
218
+ - `session-rename` - Set custom session title
219
+
220
+ **Terminal tab title**: Auto-syncs with `repo/branch` via `pre-edit-check.sh`. Works with Tabby, iTerm2, Windows Terminal, Kitty, and most modern terminals. See `tools/terminal/terminal-title.md`.
221
+
222
+ **Parallel branch work** (git worktrees): For multiple terminals/sessions on different branches:
223
+
224
+ ```bash
225
+ # Create worktree for a branch (separate directory)
226
+ ~/.aidevops/agents/scripts/worktree-helper.sh add feature/my-feature
227
+ # Creates: ~/Git/{repo}-feature-my-feature/
228
+
229
+ # List all worktrees
230
+ ~/.aidevops/agents/scripts/worktree-helper.sh list
231
+
232
+ # Find sessions for open worktrees
233
+ ~/.aidevops/agents/scripts/worktree-sessions.sh list
234
+
235
+ # Clean up after merge
236
+ ~/.aidevops/agents/scripts/worktree-helper.sh clean
237
+ ```
238
+
239
+ See `workflows/worktree.md` for full workflow.
240
+
241
+ **Branch types**: `feature/`, `bugfix/`, `hotfix/`, `refactor/`, `chore/`, `experiment/`, `release/`
242
+
243
+ **User prompts**: Always use numbered options (1, 2, 3...). Never use "[Enter] to confirm" - OpenCode requires typed input.
244
+
245
+ **Issue URLs**: Paste any GitHub/GitLab/Gitea issue URL to auto-setup branch.
246
+
247
+ **OpenCode GitHub/GitLab Integration**: Enable AI-powered issue/PR automation:
248
+
249
+ ```bash
250
+ # Check setup status
251
+ ~/.aidevops/agents/scripts/opencode-github-setup-helper.sh check
252
+
253
+ # GitHub: Install app + workflow
254
+ opencode github install
255
+
256
+ # Then use /oc in any issue/PR comment:
257
+ # /oc fix this bug → creates branch + PR automatically
258
+ ```
259
+
260
+ See `tools/git/opencode-github.md` and `tools/git/opencode-gitlab.md` for details.
261
+
262
+ **After completing file changes**, offer numbered options:
263
+
264
+ 1. Run preflight checks (`workflows/preflight.md`)
265
+ 2. Skip preflight and commit directly (not recommended)
266
+ 3. Continue making more changes
267
+
268
+ Only offer to commit after preflight passes or user explicitly skips.
269
+
270
+ **Special handling for `.agent/` files** (in aidevops repo or repos with local agents):
271
+ When modifying files in `.agent/` directory:
272
+ 1. After commit, prompt: "Agent files changed. Run `./setup.sh` to deploy locally? [Y/n]"
273
+ 2. In aidevops repo: `cd ~/Git/aidevops && ./setup.sh`
274
+ 3. This ensures `~/.aidevops/agents/` stays in sync with source
275
+
276
+ **Testing Config Changes**: Use CLI to test without TUI restart:
277
+
278
+ ```bash
279
+ ~/.aidevops/agents/scripts/opencode-test-helper.sh test-mcp <name> <agent>
280
+ ```
281
+
282
+ **MCP Setup Validation** (MANDATORY after config changes):
283
+
284
+ ```bash
285
+ # 1. Verify MCP status
286
+ opencode mcp list
287
+
288
+ # 2. If "Connection closed" - diagnose
289
+ ~/.aidevops/agents/scripts/mcp-diagnose.sh <name>
290
+
291
+ # 3. Check for version updates
292
+ ~/.aidevops/agents/scripts/tool-version-check.sh
293
+ ```
294
+
295
+ ## Session Completion & Parallel Work
296
+
297
+ **Run `/session-review` before ending a session** to ensure:
298
+ - All objectives completed
299
+ - Workflow best practices followed
300
+ - Knowledge captured for future sessions
301
+ - Clear next steps identified
302
+
303
+ **Recognize session completion signals:**
304
+ - All session tasks marked `[x]` in TODO.md
305
+ - PR merged and release published
306
+ - User expresses gratitude ("thanks", "done", "that's all")
307
+ - Significant topic shift to unrelated work
308
+
309
+ **At natural completion points, suggest:**
310
+
311
+ ```text
312
+ ---
313
+ Session goals achieved:
314
+ - [x] {completed task 1}
315
+ - [x] {completed task 2}
316
+
317
+ Suggestions:
318
+ 1. Run @agent-review to capture learnings
319
+ 2. Start new session for clean context
320
+ 3. For parallel work: worktree-helper.sh add {type}/{name}
321
+ ---
322
+ ```
323
+
324
+ **When to suggest new sessions:**
325
+ - After PR merge + release
326
+ - When switching to unrelated domain
327
+ - After 3+ hours of continuous work
328
+ - When user requests unrelated task
329
+
330
+ **Session cleanup checklist** (before ending):
331
+ 1. Commit or stash uncommitted changes
332
+ 2. If in worktree: no action needed (worktree stays on its branch)
333
+ 3. If used `git checkout -b` in main repo: `git checkout main` before ending
334
+ 4. Run `worktree-helper.sh clean` to remove merged worktrees
335
+
336
+ **Spawning parallel sessions** (for related but separate work):
337
+
338
+ ```bash
339
+ # Create worktree + spawn new terminal (macOS)
340
+ ~/.aidevops/agents/scripts/worktree-helper.sh add feature/parallel-task
341
+ osascript -e 'tell application "Terminal" to do script "cd ~/Git/{repo}-feature-parallel-task && opencode"'
342
+
343
+ # Or background session
344
+ opencode run "Continue with task X" --agent Build+ &
345
+ ```
346
+
347
+ See `workflows/session-manager.md` for full session lifecycle guidance.
348
+
349
+ ## Main Agents
350
+
351
+ | Agent | Purpose |
352
+ |-------|---------|
353
+ | `plan-plus.md` | Read-only planning with semantic codebase search |
354
+ | `build-plus.md` | Enhanced Build with context tools |
355
+ | `aidevops.md` | Framework operations, meta-agents, setup |
356
+ | `onboarding.md` | Interactive setup wizard for new users |
357
+ | `seo.md` | SEO optimization and analysis |
358
+ | `content.md` | Content creation workflows |
359
+ | `research.md` | Research and analysis tasks |
360
+ | `marketing.md` | Marketing strategy, email campaigns, automation (FluentCRM) |
361
+ | `sales.md` | Sales operations, CRM, pipeline management (FluentCRM) |
362
+ | `legal.md` | Legal compliance |
363
+ | `accounts.md` | Financial operations |
364
+ | `health.md` | Health and wellness |
365
+ | `social-media.md` | Social media management |
366
+
367
+ ## Subagent Folders
368
+
369
+ Subagents provide specialized capabilities. Read them when tasks require domain expertise.
370
+
371
+ | Folder | Purpose | Key Subagents |
372
+ |--------|---------|---------------|
373
+ | `aidevops/` | Framework internals - extending aidevops, adding MCPs, architecture decisions | setup, architecture, add-new-mcp-to-aidevops, troubleshooting, mcp-integrations |
374
+ | `memory/` | Cross-session memory - SQLite FTS5 storage, /remember and /recall commands | README (system docs) |
375
+ | `seo/` | Search optimization - keyword research, rankings, site audits, E-E-A-T scoring, sitemap submission | dataforseo, serper, google-search-console, gsc-sitemaps, site-crawler, eeat-score, domain-research |
376
+ | `content/` | Content creation - copywriting standards, editorial guidelines, tone of voice | guidelines |
377
+ | `tools/content/` | Content tools - summarization, extraction, processing | summarize |
378
+ | `tools/social-media/` | Social media tools - X/Twitter CLI, posting, reading | bird |
379
+ | `tools/build-agent/` | Agent design - composing efficient agents, reviewing agent instructions | build-agent, agent-review |
380
+ | `tools/build-mcp/` | MCP development - creating Model Context Protocol servers and tools | build-mcp, api-wrapper, server-patterns, transports, deployment |
381
+ | `tools/ai-assistants/` | AI tool integration - configuring assistants, CAPTCHA solving, multi-modal agents | agno, capsolver, windsurf, configuration, status |
382
+ | `tools/ai-orchestration/` | AI orchestration frameworks - visual builders, multi-agent teams, workflow automation, DSL orchestration | overview, langflow, crewai, autogen, openprose, packaging |
383
+ | `tools/browser/` | Browser automation - web scraping, testing, screenshots, form filling | agent-browser, stagehand, playwright, playwriter, crawl4ai, dev-browser, pagespeed, chrome-devtools |
384
+ | `tools/ui/` | UI components - component libraries, design systems, interface constraints | shadcn, ui-skills |
385
+ | `tools/code-review/` | Code quality - linting, security scanning, style enforcement, PR reviews | code-standards, code-simplifier, codacy, coderabbit, qlty, snyk, secretlint, auditing |
386
+ | `tools/context/` | Context optimization - semantic search, codebase indexing, token efficiency | osgrep, augment-context-engine, context-builder, context7, toon, dspy, llm-tldr |
387
+ | `tools/conversion/` | Format conversion - document transformation between formats | pandoc |
388
+ | `tools/data-extraction/` | Data extraction - scraping business data, Google Maps, reviews | outscraper |
389
+ | `tools/deployment/` | Deployment automation - self-hosted PaaS, serverless, CI/CD | coolify, coolify-cli, vercel |
390
+ | `tools/git/` | Git operations - GitHub/GitLab/Gitea CLIs, Actions, authentication, AI PR automation | github-cli, gitlab-cli, gitea-cli, github-actions, opencode-github, opencode-gitlab |
391
+ | `tools/credentials/` | Secret management - API keys, password vaults, environment variables | api-key-setup, api-key-management, vaultwarden, environment-variables |
392
+ | `tools/opencode/` | OpenCode config - CLI setup, plugins, authentication, Oh-My-OpenCode extensions | opencode, opencode-anthropic-auth, oh-my-opencode |
393
+ | `tools/task-management/` | Task tracking - dependency graphs, blocking relationships, visual planning | beads |
394
+ | `tools/terminal/` | Terminal integration - tab titles, git context display | terminal-title |
395
+ | `tools/wordpress/` | WordPress ecosystem - local dev, fleet management, plugin curation, custom fields | wp-dev, wp-admin, localwp, mainwp, wp-preferred, scf |
396
+ | `services/hosting/` | Hosting providers - DNS, domains, cloud servers, managed WordPress | hostinger, hetzner, cloudflare, cloudron, closte, 101domains, spaceship |
397
+ | `services/email/` | Email services - transactional email, deliverability | ses |
398
+ | `services/communications/` | Communications platform - SMS, voice, WhatsApp, verify, recordings | twilio, telfon |
399
+ | `services/crm/` | CRM integration - contact management, email marketing, automation | fluentcrm |
400
+ | `services/accounting/` | Accounting integration - invoicing, expenses, financial reports | quickfile |
401
+ | `workflows/` | Development processes - branching, releases, PR reviews, quality gates | git-workflow, plans, release, version-bump, pr, preflight, postflight, ralph-loop, session-review |
402
+ | `templates/` | Document templates - PRDs, task lists, planning documents | prd-template, tasks-template, plans-template, todo-template |
403
+ | `workflows/branch/` | Branch conventions - naming, purpose, merge strategies per branch type | feature, bugfix, hotfix, refactor, chore, experiment, release |
404
+ | `scripts/commands/` | Slash commands - save-todo, remember, recall, code-simplifier and other interactive commands | save-todo, remember, recall, code-simplifier |
405
+
406
+ <!-- AI-CONTEXT-END -->
407
+
408
+ ## Getting Started
409
+
410
+ **Installation:**
411
+
412
+ ```bash
413
+ # npm (recommended)
414
+ npm install -g aidevops
415
+
416
+ # Homebrew
417
+ brew install marcusquinn/tap/aidevops
418
+
419
+ # curl (manual)
420
+ bash <(curl -fsSL https://aidevops.sh)
421
+ ```
422
+
423
+ This installs the CLI and deploys agents to `~/.aidevops/agents/`.
424
+
425
+ **Initialize aidevops in any project:**
426
+
427
+ ```bash
428
+ aidevops init # Enable all features
429
+ aidevops init planning # Enable only planning
430
+ aidevops init beads # Enable beads (includes planning)
431
+ aidevops init planning,git-workflow # Enable multiple features
432
+ aidevops features # List available features
433
+ ```
434
+
435
+ **CLI commands:**
436
+
437
+ | Command | Purpose |
438
+ |---------|---------|
439
+ | `aidevops init [features]` | Initialize aidevops in current project |
440
+ | `aidevops upgrade-planning` | Upgrade TODO.md/PLANS.md to latest templates |
441
+ | `aidevops features` | List available features |
442
+ | `aidevops status` | Check installation status |
443
+ | `aidevops update` | Update framework + check registered projects |
444
+ | `aidevops upgrade` | Alias for update |
445
+ | `aidevops repos` | List registered projects |
446
+ | `aidevops repos add` | Register current project |
447
+ | `aidevops detect` | Find unregistered aidevops projects |
448
+ | `aidevops update-tools` | Check for outdated tools |
449
+ | `aidevops uninstall` | Remove aidevops |
450
+
451
+ **Project tracking:** When you run `aidevops init`, the project is registered in `~/.config/aidevops/repos.json`. Running `aidevops update` will check all registered projects and offer to update their `.aidevops.json` version.
452
+
453
+ **Auto-detection:** When you clone a repo that has `.aidevops.json`, the CLI will suggest registering it. Run `aidevops detect` to scan `~/Git/` for unregistered projects.
454
+
455
+ For AI-assisted setup guidance, see `aidevops/setup.md`.
456
+
457
+ ## Progressive Disclosure
458
+
459
+ **Strategy**: The AI-CONTEXT section above contains essential information for most tasks. Read subagents only when tasks require domain expertise - this keeps context focused and reduces token usage.
460
+
461
+ **How to use subagents**:
462
+ 1. Check the "Subagent Folders" table above for the relevant domain
463
+ 2. Read the specific subagent file when you need detailed guidance
464
+ 3. Subagents are also available via Task tool for delegation (filtered per-agent to reduce overhead)
465
+
466
+ **When to read subagents:**
467
+
468
+ | Task Domain | Read These |
469
+ |-------------|------------|
470
+ | Planning complex work | `workflows/plans.md`, `tools/task-management/beads.md` |
471
+ | Code quality/reviews | `tools/code-review/code-standards.md`, then specific tools as needed |
472
+ | Git operations | `workflows/git-workflow.md`, `tools/git/github-cli.md` |
473
+ | Release/versioning | `workflows/release.md`, `workflows/version-bump.md` |
474
+ | Browser automation | `tools/browser/stagehand.md` or `tools/browser/playwright.md` |
475
+ | WordPress work | `tools/wordpress/wp-dev.md`, `tools/wordpress/mainwp.md` |
476
+ | SEO analysis | `seo/dataforseo.md`, `seo/google-search-console.md` |
477
+ | Sitemap submission | `seo/gsc-sitemaps.md` |
478
+ | CRM/email marketing | `services/crm/fluentcrm.md` |
479
+ | MCP development | `tools/build-mcp/build-mcp.md`, `tools/build-mcp/server-patterns.md` |
480
+ | Agent design | `tools/build-agent/build-agent.md`, `tools/build-agent/agent-review.md` |
481
+ | Database migrations | `workflows/sql-migrations.md` |
482
+ | Framework internals | `aidevops/architecture.md` (when working in `~/Git/aidevops/`) |
483
+ | Content summarization | `tools/content/summarize.md` |
484
+ | X/Twitter automation | `tools/social-media/bird.md` |
485
+
486
+ ## Security
487
+
488
+ - All credentials in `~/.config/aidevops/mcp-env.sh` (600 permissions)
489
+ - Configuration templates in `configs/*.json.txt` (committed)
490
+ - Working configs in `configs/*.json` (gitignored)
491
+ - Confirm destructive operations before execution
492
+
493
+ ## Working Directories
494
+
495
+ ```text
496
+ ~/.aidevops/.agent-workspace/
497
+ ├── work/[project]/ # Persistent project files
498
+ ├── tmp/session-*/ # Temporary session files (cleanup)
499
+ └── memory/ # Cross-session patterns and preferences
500
+ ```
501
+
502
+ Never create files in `~/` root for files needed only with the current task.
503
+
504
+ ## Key Scripts
505
+
506
+ | Script | Purpose |
507
+ |--------|---------|
508
+ | `list-keys-helper.sh` | List all API keys with their storage locations |
509
+ | `linters-local.sh` | Run local linting (ShellCheck, secretlint, patterns) |
510
+ | `code-audit-helper.sh` | Run remote auditing (CodeRabbit, Codacy, SonarCloud) |
511
+ | `version-manager.sh` | Version bumps and releases |
512
+ | `linter-manager.sh` | Install and manage linters |
513
+ | `github-cli-helper.sh` | GitHub operations |
514
+ | `coolify-helper.sh` | Coolify deployment management |
515
+ | `stagehand-helper.sh` | Browser automation with Stagehand |
516
+ | `crawl4ai-helper.sh` | Web crawling and extraction |
517
+ | `domain-research-helper.sh` | DNS intelligence (rDNS, subdomains, CNAMEs) |
518
+ | `toon-helper.sh` | TOON format conversion |
519
+ | `sonarcloud-cli.sh` | SonarCloud analysis |
520
+ | `codacy-cli.sh` | Codacy code quality |
521
+ | `secretlint-helper.sh` | Secret detection |
522
+ | `opencode-test-helper.sh` | Test OpenCode config changes via CLI |
523
+ | `beads-sync-helper.sh` | Sync TODO.md/PLANS.md with Beads graph |
524
+ | `todo-ready.sh` | Show tasks with no open blockers |
525
+ | `ralph-loop-helper.sh` | Iterative AI development loops (Ralph technique) |
526
+ | `full-loop-helper.sh` | End-to-end development loop (task → PR → deploy) |
527
+ | `session-review-helper.sh` | Gather session context for completeness review |
528
+
529
+ ## Quality Workflow
530
+
531
+ ```text
532
+ Development → @code-standards (reference)
533
+
534
+ Post-edit → /code-simplifier (refine)
535
+
536
+ Pre-commit → /linters-local (fast, offline)
537
+
538
+ PR Review → /pr (orchestrates all checks)
539
+ ├── /linters-local
540
+ ├── /code-audit-remote
541
+ ├── /code-standards
542
+ └── Intent vs Reality analysis
543
+
544
+ Post-merge → /postflight (verify CI)
545
+ ```
546
+
547
+ | Stage | Command | Purpose |
548
+ |-------|---------|---------|
549
+ | During development | `@code-standards` | Reference quality rules |
550
+ | Post-edit | `/code-simplifier` | Simplify and refine code |
551
+ | Pre-commit | `/linters-local` | Fast local checks |
552
+ | PR creation | `/pr review` | Full orchestrated review |
553
+ | PR review | `/code-audit-remote` | Remote service audits |
554
+ | Post-merge | `/postflight` | Verify release health |
555
+
556
+ ## AI Tool Configuration
557
+
558
+ The canonical agent location is `~/.aidevops/agents/` (deployed by `setup.sh`).
559
+
560
+ ### Cross-Tool Compatibility
561
+
562
+ aidevops supports multiple discovery methods:
563
+
564
+ | Method | Tools | How It Works |
565
+ |--------|-------|--------------|
566
+ | **Claude Code Plugin** | Claude Code | `/plugin marketplace add marcusquinn/aidevops` |
567
+ | **Agent Skills (SKILL.md)** | Cursor, VS Code, GitHub Copilot | Auto-discovered from `~/.aidevops/agents/` |
568
+ | **OpenCode Agents** | OpenCode | Generated stubs in `~/.config/opencode/agent/` |
569
+ | **Manual** | All others | Point to `~/.aidevops/agents/AGENTS.md` |
570
+
571
+ ### Quick Setup by Tool
572
+
573
+ | Tool | Configuration |
574
+ |------|---------------|
575
+ | **Claude Code** | `/plugin marketplace add marcusquinn/aidevops` then `/plugin install aidevops@aidevops` |
576
+ | **OpenCode** | Automatic via `setup.sh` → `generate-opencode-agents.sh` |
577
+ | **Cursor** | Auto-discovers SKILL.md files from configured paths |
578
+ | **VS Code** | GitHub Copilot discovers SKILL.md via Agent Skills |
579
+ | **Windsurf** | Point to `~/.aidevops/agents/AGENTS.md` or create local `.windsurfrules` |
580
+ | **Other tools** | Point to `~/.aidevops/agents/AGENTS.md` |
581
+
582
+ **Note**: Tool-specific files (`.cursorrules`, `.windsurfrules`, etc.) are not tracked in git. Create symlinks locally if needed.
583
+
584
+ **MCP Token Optimization**: Disable heavy MCPs globally, enable per-agent. See `tools/build-agent/build-agent.md` for patterns.
585
+
586
+ ## Development Workflows
587
+
588
+ For versioning, releases, and git operations:
589
+
590
+ | Task | Subagent |
591
+ |------|----------|
592
+ | Planning | `workflows/plans.md` |
593
+ | Version bumps | `workflows/version-bump.md` |
594
+ | Creating releases | `workflows/release.md` |
595
+ | Git branching | `workflows/git-workflow.md` |
596
+ | Bug fixes | `workflows/bug-fixing.md` |
597
+ | Feature development | `workflows/feature-development.md` |
598
+ | PR review | `workflows/pr.md` |
599
+ | Remote auditing | `workflows/code-audit-remote.md` |
600
+ | Multi-repo work | `workflows/multi-repo-workspace.md` |
601
+ | Iterative AI loops | `workflows/ralph-loop.md` |
602
+
603
+ **Quick commands:**
604
+
605
+ ```bash
606
+ # Version bump and release
607
+ .agent/scripts/version-manager.sh release [major|minor|patch]
608
+
609
+ # Local linting before commit
610
+ .agent/scripts/linters-local.sh
611
+
612
+ # Full PR review (orchestrates all checks)
613
+ /pr review
614
+ ```
@@ -0,0 +1,65 @@
1
+ ---
2
+ name: accounts
3
+ description: Financial operations and accounting - QuickFile integration, invoicing, expense tracking
4
+ mode: subagent
5
+ ---
6
+
7
+ # Accounts - Main Agent
8
+
9
+ <!-- AI-CONTEXT-START -->
10
+
11
+ ## Quick Reference
12
+
13
+ - **Purpose**: Financial operations and accounting
14
+ - **Primary Tool**: QuickFile (UK accounting)
15
+
16
+ **Subagents** (`services/accounting/`):
17
+ - `quickfile.md` - QuickFile MCP integration
18
+
19
+ **Typical Tasks**:
20
+ - Invoice management
21
+ - Expense tracking
22
+ - Financial reporting
23
+ - Client/supplier management
24
+ - Bank reconciliation
25
+
26
+ <!-- AI-CONTEXT-END -->
27
+
28
+ ## Accounting Workflows
29
+
30
+ ### QuickFile Integration
31
+
32
+ Use `services/accounting/quickfile.md` for:
33
+ - Creating and sending invoices
34
+ - Recording expenses
35
+ - Managing clients and suppliers
36
+ - Bank transaction matching
37
+ - Financial reports
38
+
39
+ ### Invoice Management
40
+
41
+ - Create invoices from quotes
42
+ - Track payment status
43
+ - Send reminders
44
+ - Record payments
45
+
46
+ ### Expense Tracking
47
+
48
+ - Categorize expenses
49
+ - Match bank transactions
50
+ - Track by project/client
51
+ - VAT handling (UK)
52
+
53
+ ### Reporting
54
+
55
+ - Profit and loss
56
+ - Balance sheet
57
+ - VAT returns
58
+ - Cash flow
59
+
60
+ ### Integration Points
61
+
62
+ - `sales.md` - Quote to invoice
63
+ - `services/` - Project-based billing
64
+
65
+ *See `services/accounting/quickfile.md` for detailed QuickFile operations.*