aidevops 2.52.1 → 2.53.2

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 (334) hide show
  1. package/README.md +1 -1
  2. package/VERSION +1 -1
  3. package/aidevops.sh +15 -9
  4. package/package.json +4 -4
  5. package/scripts/npm-postinstall.js +6 -7
  6. package/setup.sh +1 -1
  7. package/templates/deploy-templates.sh +144 -0
  8. package/templates/home/.agent/README.md +33 -0
  9. package/templates/home/AGENTS.md +96 -0
  10. package/templates/home/git/.agent/README.md +48 -0
  11. package/templates/home/git/AGENTS.md +97 -0
  12. package/templates/standard-functions.sh +179 -0
  13. package/templates/wordpress-performance-workflow.md +217 -0
  14. package/.agent/AGENTS.md +0 -614
  15. package/.agent/accounts.md +0 -65
  16. package/.agent/aidevops/add-new-mcp-to-aidevops.md +0 -456
  17. package/.agent/aidevops/api-integrations.md +0 -335
  18. package/.agent/aidevops/architecture.md +0 -510
  19. package/.agent/aidevops/configs.md +0 -274
  20. package/.agent/aidevops/docs.md +0 -244
  21. package/.agent/aidevops/extension.md +0 -311
  22. package/.agent/aidevops/mcp-integrations.md +0 -340
  23. package/.agent/aidevops/mcp-troubleshooting.md +0 -162
  24. package/.agent/aidevops/memory-patterns.md +0 -172
  25. package/.agent/aidevops/providers.md +0 -217
  26. package/.agent/aidevops/recommendations.md +0 -321
  27. package/.agent/aidevops/requirements.md +0 -301
  28. package/.agent/aidevops/resources.md +0 -214
  29. package/.agent/aidevops/security-requirements.md +0 -174
  30. package/.agent/aidevops/security.md +0 -350
  31. package/.agent/aidevops/service-links.md +0 -400
  32. package/.agent/aidevops/services.md +0 -357
  33. package/.agent/aidevops/setup.md +0 -153
  34. package/.agent/aidevops/troubleshooting.md +0 -389
  35. package/.agent/aidevops.md +0 -124
  36. package/.agent/build-plus.md +0 -244
  37. package/.agent/content/guidelines.md +0 -109
  38. package/.agent/content.md +0 -87
  39. package/.agent/health.md +0 -59
  40. package/.agent/legal.md +0 -59
  41. package/.agent/loop-state/full-loop.local.md +0 -16
  42. package/.agent/loop-state/ralph-loop.local.md +0 -10
  43. package/.agent/marketing.md +0 -440
  44. package/.agent/memory/README.md +0 -260
  45. package/.agent/onboarding.md +0 -796
  46. package/.agent/plan-plus.md +0 -245
  47. package/.agent/research.md +0 -100
  48. package/.agent/sales.md +0 -333
  49. package/.agent/scripts/101domains-helper.sh +0 -701
  50. package/.agent/scripts/add-missing-returns.sh +0 -140
  51. package/.agent/scripts/agent-browser-helper.sh +0 -311
  52. package/.agent/scripts/agno-setup.sh +0 -712
  53. package/.agent/scripts/ahrefs-mcp-wrapper.js +0 -168
  54. package/.agent/scripts/aidevops-update-check.sh +0 -71
  55. package/.agent/scripts/ampcode-cli.sh +0 -522
  56. package/.agent/scripts/auto-version-bump.sh +0 -156
  57. package/.agent/scripts/autogen-helper.sh +0 -512
  58. package/.agent/scripts/beads-sync-helper.sh +0 -596
  59. package/.agent/scripts/closte-helper.sh +0 -5
  60. package/.agent/scripts/cloudron-helper.sh +0 -321
  61. package/.agent/scripts/codacy-cli-chunked.sh +0 -581
  62. package/.agent/scripts/codacy-cli.sh +0 -442
  63. package/.agent/scripts/code-audit-helper.sh +0 -5
  64. package/.agent/scripts/coderabbit-cli.sh +0 -417
  65. package/.agent/scripts/coderabbit-pro-analysis.sh +0 -238
  66. package/.agent/scripts/commands/code-simplifier.md +0 -86
  67. package/.agent/scripts/commands/full-loop.md +0 -246
  68. package/.agent/scripts/commands/postflight-loop.md +0 -103
  69. package/.agent/scripts/commands/recall.md +0 -182
  70. package/.agent/scripts/commands/remember.md +0 -132
  71. package/.agent/scripts/commands/save-todo.md +0 -175
  72. package/.agent/scripts/commands/session-review.md +0 -154
  73. package/.agent/scripts/comprehensive-quality-fix.sh +0 -106
  74. package/.agent/scripts/context-builder-helper.sh +0 -522
  75. package/.agent/scripts/coolify-cli-helper.sh +0 -674
  76. package/.agent/scripts/coolify-helper.sh +0 -380
  77. package/.agent/scripts/crawl4ai-examples.sh +0 -401
  78. package/.agent/scripts/crawl4ai-helper.sh +0 -1078
  79. package/.agent/scripts/crewai-helper.sh +0 -681
  80. package/.agent/scripts/dev-browser-helper.sh +0 -513
  81. package/.agent/scripts/dns-helper.sh +0 -396
  82. package/.agent/scripts/domain-research-helper.sh +0 -917
  83. package/.agent/scripts/dspy-helper.sh +0 -285
  84. package/.agent/scripts/dspyground-helper.sh +0 -291
  85. package/.agent/scripts/eeat-score-helper.sh +0 -1242
  86. package/.agent/scripts/efficient-return-fix.sh +0 -92
  87. package/.agent/scripts/extract-opencode-prompts.sh +0 -128
  88. package/.agent/scripts/find-missing-returns.sh +0 -113
  89. package/.agent/scripts/fix-auth-headers.sh +0 -104
  90. package/.agent/scripts/fix-common-strings.sh +0 -254
  91. package/.agent/scripts/fix-content-type.sh +0 -100
  92. package/.agent/scripts/fix-error-messages.sh +0 -130
  93. package/.agent/scripts/fix-misplaced-returns.sh +0 -74
  94. package/.agent/scripts/fix-remaining-literals.sh +0 -152
  95. package/.agent/scripts/fix-return-statements.sh +0 -41
  96. package/.agent/scripts/fix-s131-default-cases.sh +0 -249
  97. package/.agent/scripts/fix-sc2155-simple.sh +0 -102
  98. package/.agent/scripts/fix-shellcheck-critical.sh +0 -187
  99. package/.agent/scripts/fix-string-literals.sh +0 -273
  100. package/.agent/scripts/full-loop-helper.sh +0 -773
  101. package/.agent/scripts/generate-opencode-agents.sh +0 -497
  102. package/.agent/scripts/generate-opencode-commands.sh +0 -1629
  103. package/.agent/scripts/generate-skills.sh +0 -366
  104. package/.agent/scripts/git-platforms-helper.sh +0 -640
  105. package/.agent/scripts/gitea-cli-helper.sh +0 -743
  106. package/.agent/scripts/github-cli-helper.sh +0 -702
  107. package/.agent/scripts/gitlab-cli-helper.sh +0 -682
  108. package/.agent/scripts/gsc-add-user-helper.sh +0 -325
  109. package/.agent/scripts/gsc-sitemap-helper.sh +0 -678
  110. package/.agent/scripts/hetzner-helper.sh +0 -485
  111. package/.agent/scripts/hostinger-helper.sh +0 -229
  112. package/.agent/scripts/keyword-research-helper.sh +0 -1815
  113. package/.agent/scripts/langflow-helper.sh +0 -544
  114. package/.agent/scripts/linkedin-automation.py +0 -241
  115. package/.agent/scripts/linter-manager.sh +0 -599
  116. package/.agent/scripts/linters-local.sh +0 -434
  117. package/.agent/scripts/list-keys-helper.sh +0 -488
  118. package/.agent/scripts/local-browser-automation.py +0 -339
  119. package/.agent/scripts/localhost-helper.sh +0 -744
  120. package/.agent/scripts/loop-common.sh +0 -806
  121. package/.agent/scripts/mainwp-helper.sh +0 -728
  122. package/.agent/scripts/markdown-formatter.sh +0 -338
  123. package/.agent/scripts/markdown-lint-fix.sh +0 -311
  124. package/.agent/scripts/mass-fix-returns.sh +0 -58
  125. package/.agent/scripts/mcp-diagnose.sh +0 -167
  126. package/.agent/scripts/mcp-inspector-helper.sh +0 -449
  127. package/.agent/scripts/memory-helper.sh +0 -650
  128. package/.agent/scripts/monitor-code-review.sh +0 -255
  129. package/.agent/scripts/onboarding-helper.sh +0 -706
  130. package/.agent/scripts/opencode-github-setup-helper.sh +0 -797
  131. package/.agent/scripts/opencode-test-helper.sh +0 -213
  132. package/.agent/scripts/pagespeed-helper.sh +0 -464
  133. package/.agent/scripts/pandoc-helper.sh +0 -362
  134. package/.agent/scripts/postflight-check.sh +0 -555
  135. package/.agent/scripts/pre-commit-hook.sh +0 -259
  136. package/.agent/scripts/pre-edit-check.sh +0 -169
  137. package/.agent/scripts/qlty-cli.sh +0 -356
  138. package/.agent/scripts/quality-cli-manager.sh +0 -525
  139. package/.agent/scripts/quality-feedback-helper.sh +0 -462
  140. package/.agent/scripts/quality-fix.sh +0 -263
  141. package/.agent/scripts/quality-loop-helper.sh +0 -1108
  142. package/.agent/scripts/ralph-loop-helper.sh +0 -836
  143. package/.agent/scripts/ralph-upstream-check.sh +0 -341
  144. package/.agent/scripts/secretlint-helper.sh +0 -847
  145. package/.agent/scripts/servers-helper.sh +0 -241
  146. package/.agent/scripts/ses-helper.sh +0 -619
  147. package/.agent/scripts/session-review-helper.sh +0 -404
  148. package/.agent/scripts/setup-linters-wizard.sh +0 -379
  149. package/.agent/scripts/setup-local-api-keys.sh +0 -330
  150. package/.agent/scripts/setup-mcp-integrations.sh +0 -472
  151. package/.agent/scripts/shared-constants.sh +0 -246
  152. package/.agent/scripts/site-crawler-helper.sh +0 -1487
  153. package/.agent/scripts/snyk-helper.sh +0 -940
  154. package/.agent/scripts/sonarcloud-autofix.sh +0 -193
  155. package/.agent/scripts/sonarcloud-cli.sh +0 -191
  156. package/.agent/scripts/sonarscanner-cli.sh +0 -455
  157. package/.agent/scripts/spaceship-helper.sh +0 -747
  158. package/.agent/scripts/stagehand-helper.sh +0 -321
  159. package/.agent/scripts/stagehand-python-helper.sh +0 -321
  160. package/.agent/scripts/stagehand-python-setup.sh +0 -441
  161. package/.agent/scripts/stagehand-setup.sh +0 -439
  162. package/.agent/scripts/system-cleanup.sh +0 -340
  163. package/.agent/scripts/terminal-title-helper.sh +0 -388
  164. package/.agent/scripts/terminal-title-setup.sh +0 -549
  165. package/.agent/scripts/test-stagehand-both-integration.sh +0 -317
  166. package/.agent/scripts/test-stagehand-integration.sh +0 -309
  167. package/.agent/scripts/test-stagehand-python-integration.sh +0 -341
  168. package/.agent/scripts/todo-ready.sh +0 -263
  169. package/.agent/scripts/tool-version-check.sh +0 -362
  170. package/.agent/scripts/toon-helper.sh +0 -469
  171. package/.agent/scripts/twilio-helper.sh +0 -917
  172. package/.agent/scripts/updown-helper.sh +0 -279
  173. package/.agent/scripts/validate-mcp-integrations.sh +0 -250
  174. package/.agent/scripts/validate-version-consistency.sh +0 -131
  175. package/.agent/scripts/vaultwarden-helper.sh +0 -597
  176. package/.agent/scripts/vercel-cli-helper.sh +0 -816
  177. package/.agent/scripts/verify-mirrors.sh +0 -169
  178. package/.agent/scripts/version-manager.sh +0 -831
  179. package/.agent/scripts/webhosting-helper.sh +0 -471
  180. package/.agent/scripts/webhosting-verify.sh +0 -238
  181. package/.agent/scripts/wordpress-mcp-helper.sh +0 -508
  182. package/.agent/scripts/worktree-helper.sh +0 -595
  183. package/.agent/scripts/worktree-sessions.sh +0 -577
  184. package/.agent/seo/dataforseo.md +0 -215
  185. package/.agent/seo/domain-research.md +0 -532
  186. package/.agent/seo/eeat-score.md +0 -659
  187. package/.agent/seo/google-search-console.md +0 -366
  188. package/.agent/seo/gsc-sitemaps.md +0 -282
  189. package/.agent/seo/keyword-research.md +0 -521
  190. package/.agent/seo/serper.md +0 -278
  191. package/.agent/seo/site-crawler.md +0 -387
  192. package/.agent/seo.md +0 -236
  193. package/.agent/services/accounting/quickfile.md +0 -159
  194. package/.agent/services/communications/telfon.md +0 -470
  195. package/.agent/services/communications/twilio.md +0 -569
  196. package/.agent/services/crm/fluentcrm.md +0 -449
  197. package/.agent/services/email/ses.md +0 -399
  198. package/.agent/services/hosting/101domains.md +0 -378
  199. package/.agent/services/hosting/closte.md +0 -177
  200. package/.agent/services/hosting/cloudflare.md +0 -251
  201. package/.agent/services/hosting/cloudron.md +0 -478
  202. package/.agent/services/hosting/dns-providers.md +0 -335
  203. package/.agent/services/hosting/domain-purchasing.md +0 -344
  204. package/.agent/services/hosting/hetzner.md +0 -327
  205. package/.agent/services/hosting/hostinger.md +0 -287
  206. package/.agent/services/hosting/localhost.md +0 -419
  207. package/.agent/services/hosting/spaceship.md +0 -353
  208. package/.agent/services/hosting/webhosting.md +0 -330
  209. package/.agent/social-media.md +0 -69
  210. package/.agent/templates/plans-template.md +0 -114
  211. package/.agent/templates/prd-template.md +0 -129
  212. package/.agent/templates/tasks-template.md +0 -108
  213. package/.agent/templates/todo-template.md +0 -89
  214. package/.agent/tools/ai-assistants/agno.md +0 -471
  215. package/.agent/tools/ai-assistants/capsolver.md +0 -326
  216. package/.agent/tools/ai-assistants/configuration.md +0 -221
  217. package/.agent/tools/ai-assistants/overview.md +0 -209
  218. package/.agent/tools/ai-assistants/status.md +0 -171
  219. package/.agent/tools/ai-assistants/windsurf.md +0 -193
  220. package/.agent/tools/ai-orchestration/autogen.md +0 -406
  221. package/.agent/tools/ai-orchestration/crewai.md +0 -445
  222. package/.agent/tools/ai-orchestration/langflow.md +0 -405
  223. package/.agent/tools/ai-orchestration/openprose.md +0 -487
  224. package/.agent/tools/ai-orchestration/overview.md +0 -362
  225. package/.agent/tools/ai-orchestration/packaging.md +0 -647
  226. package/.agent/tools/browser/agent-browser.md +0 -464
  227. package/.agent/tools/browser/browser-automation.md +0 -400
  228. package/.agent/tools/browser/chrome-devtools.md +0 -282
  229. package/.agent/tools/browser/crawl4ai-integration.md +0 -422
  230. package/.agent/tools/browser/crawl4ai-resources.md +0 -277
  231. package/.agent/tools/browser/crawl4ai-usage.md +0 -416
  232. package/.agent/tools/browser/crawl4ai.md +0 -585
  233. package/.agent/tools/browser/dev-browser.md +0 -341
  234. package/.agent/tools/browser/pagespeed.md +0 -260
  235. package/.agent/tools/browser/playwright.md +0 -266
  236. package/.agent/tools/browser/playwriter.md +0 -310
  237. package/.agent/tools/browser/stagehand-examples.md +0 -456
  238. package/.agent/tools/browser/stagehand-python.md +0 -483
  239. package/.agent/tools/browser/stagehand.md +0 -421
  240. package/.agent/tools/build-agent/agent-review.md +0 -224
  241. package/.agent/tools/build-agent/build-agent.md +0 -784
  242. package/.agent/tools/build-mcp/aidevops-plugin.md +0 -476
  243. package/.agent/tools/build-mcp/api-wrapper.md +0 -445
  244. package/.agent/tools/build-mcp/build-mcp.md +0 -240
  245. package/.agent/tools/build-mcp/deployment.md +0 -401
  246. package/.agent/tools/build-mcp/server-patterns.md +0 -632
  247. package/.agent/tools/build-mcp/transports.md +0 -366
  248. package/.agent/tools/code-review/auditing.md +0 -383
  249. package/.agent/tools/code-review/automation.md +0 -219
  250. package/.agent/tools/code-review/best-practices.md +0 -203
  251. package/.agent/tools/code-review/codacy.md +0 -151
  252. package/.agent/tools/code-review/code-simplifier.md +0 -174
  253. package/.agent/tools/code-review/code-standards.md +0 -309
  254. package/.agent/tools/code-review/coderabbit.md +0 -101
  255. package/.agent/tools/code-review/management.md +0 -155
  256. package/.agent/tools/code-review/qlty.md +0 -248
  257. package/.agent/tools/code-review/secretlint.md +0 -565
  258. package/.agent/tools/code-review/setup.md +0 -250
  259. package/.agent/tools/code-review/snyk.md +0 -563
  260. package/.agent/tools/code-review/tools.md +0 -230
  261. package/.agent/tools/content/summarize.md +0 -353
  262. package/.agent/tools/context/augment-context-engine.md +0 -468
  263. package/.agent/tools/context/context-builder-agent.md +0 -76
  264. package/.agent/tools/context/context-builder.md +0 -375
  265. package/.agent/tools/context/context7.md +0 -371
  266. package/.agent/tools/context/dspy.md +0 -302
  267. package/.agent/tools/context/dspyground.md +0 -374
  268. package/.agent/tools/context/llm-tldr.md +0 -219
  269. package/.agent/tools/context/osgrep.md +0 -488
  270. package/.agent/tools/context/prompt-optimization.md +0 -338
  271. package/.agent/tools/context/toon.md +0 -292
  272. package/.agent/tools/conversion/pandoc.md +0 -304
  273. package/.agent/tools/credentials/api-key-management.md +0 -154
  274. package/.agent/tools/credentials/api-key-setup.md +0 -224
  275. package/.agent/tools/credentials/environment-variables.md +0 -180
  276. package/.agent/tools/credentials/vaultwarden.md +0 -382
  277. package/.agent/tools/data-extraction/outscraper.md +0 -974
  278. package/.agent/tools/deployment/coolify-cli.md +0 -388
  279. package/.agent/tools/deployment/coolify-setup.md +0 -353
  280. package/.agent/tools/deployment/coolify.md +0 -345
  281. package/.agent/tools/deployment/vercel.md +0 -390
  282. package/.agent/tools/git/authentication.md +0 -132
  283. package/.agent/tools/git/gitea-cli.md +0 -193
  284. package/.agent/tools/git/github-actions.md +0 -207
  285. package/.agent/tools/git/github-cli.md +0 -223
  286. package/.agent/tools/git/gitlab-cli.md +0 -190
  287. package/.agent/tools/git/opencode-github-security.md +0 -350
  288. package/.agent/tools/git/opencode-github.md +0 -328
  289. package/.agent/tools/git/opencode-gitlab.md +0 -252
  290. package/.agent/tools/git/security.md +0 -196
  291. package/.agent/tools/git.md +0 -207
  292. package/.agent/tools/opencode/oh-my-opencode.md +0 -375
  293. package/.agent/tools/opencode/opencode-anthropic-auth.md +0 -446
  294. package/.agent/tools/opencode/opencode.md +0 -651
  295. package/.agent/tools/social-media/bird.md +0 -437
  296. package/.agent/tools/task-management/beads.md +0 -336
  297. package/.agent/tools/terminal/terminal-title.md +0 -251
  298. package/.agent/tools/ui/shadcn.md +0 -196
  299. package/.agent/tools/ui/ui-skills.md +0 -115
  300. package/.agent/tools/wordpress/localwp.md +0 -311
  301. package/.agent/tools/wordpress/mainwp.md +0 -391
  302. package/.agent/tools/wordpress/scf.md +0 -527
  303. package/.agent/tools/wordpress/wp-admin.md +0 -729
  304. package/.agent/tools/wordpress/wp-dev.md +0 -940
  305. package/.agent/tools/wordpress/wp-preferred.md +0 -398
  306. package/.agent/tools/wordpress.md +0 -95
  307. package/.agent/workflows/branch/bugfix.md +0 -63
  308. package/.agent/workflows/branch/chore.md +0 -95
  309. package/.agent/workflows/branch/experiment.md +0 -115
  310. package/.agent/workflows/branch/feature.md +0 -59
  311. package/.agent/workflows/branch/hotfix.md +0 -98
  312. package/.agent/workflows/branch/refactor.md +0 -92
  313. package/.agent/workflows/branch/release.md +0 -96
  314. package/.agent/workflows/branch.md +0 -347
  315. package/.agent/workflows/bug-fixing.md +0 -267
  316. package/.agent/workflows/changelog.md +0 -129
  317. package/.agent/workflows/code-audit-remote.md +0 -279
  318. package/.agent/workflows/conversation-starter.md +0 -69
  319. package/.agent/workflows/error-feedback.md +0 -578
  320. package/.agent/workflows/feature-development.md +0 -355
  321. package/.agent/workflows/git-workflow.md +0 -702
  322. package/.agent/workflows/multi-repo-workspace.md +0 -268
  323. package/.agent/workflows/plans.md +0 -709
  324. package/.agent/workflows/postflight.md +0 -604
  325. package/.agent/workflows/pr.md +0 -571
  326. package/.agent/workflows/preflight.md +0 -278
  327. package/.agent/workflows/ralph-loop.md +0 -773
  328. package/.agent/workflows/release.md +0 -498
  329. package/.agent/workflows/session-manager.md +0 -254
  330. package/.agent/workflows/session-review.md +0 -311
  331. package/.agent/workflows/sql-migrations.md +0 -631
  332. package/.agent/workflows/version-bump.md +0 -283
  333. package/.agent/workflows/wiki-update.md +0 -333
  334. package/.agent/workflows/worktree.md +0 -477
package/.agent/AGENTS.md DELETED
@@ -1,614 +0,0 @@
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
- ```
@@ -1,65 +0,0 @@
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.*