@prateek_ai/agents-maker 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +659 -0
  3. package/agents/architect_agent.md +175 -0
  4. package/agents/code_agent.md +178 -0
  5. package/agents/compression_agent.md +226 -0
  6. package/agents/execution_agent.md +157 -0
  7. package/agents/orchestrator.md +406 -0
  8. package/agents/reviewer_agent.md +134 -0
  9. package/agents/ui_agent.md +147 -0
  10. package/agents/ux_agent.md +144 -0
  11. package/bin/cli.js +79 -0
  12. package/config/agents.yaml +388 -0
  13. package/config/domain_profiles.yaml +394 -0
  14. package/config/project.yaml.example +16 -0
  15. package/config/token_policies.yaml +325 -0
  16. package/context_loaders/__init__.py +15 -0
  17. package/context_loaders/__pycache__/__init__.cpython-314.pyc +0 -0
  18. package/context_loaders/__pycache__/file_chunker.cpython-314.pyc +0 -0
  19. package/context_loaders/__pycache__/project_summary.cpython-314.pyc +0 -0
  20. package/context_loaders/__pycache__/repo_tree.cpython-314.pyc +0 -0
  21. package/context_loaders/file_chunker.py +252 -0
  22. package/context_loaders/project_summary.py +369 -0
  23. package/context_loaders/repo_tree.py +203 -0
  24. package/package.json +46 -0
  25. package/quickstart.ps1 +252 -0
  26. package/quickstart.sh +232 -0
  27. package/requirements.txt +3 -0
  28. package/skills/analyze_repo.md +86 -0
  29. package/skills/animated_website.md +285 -0
  30. package/skills/compare_approaches.md +86 -0
  31. package/skills/define_data_schema.md +99 -0
  32. package/skills/design_api.md +126 -0
  33. package/skills/improve_copy.md +69 -0
  34. package/skills/review_code.md +83 -0
  35. package/skills/review_layout.md +89 -0
  36. package/skills/suggest_next.md +105 -0
  37. package/skills/summarize_history.md +89 -0
  38. package/skills/write_process_map.md +105 -0
  39. package/skills/write_tests.md +97 -0
  40. package/token_optimization/__pycache__/compressor.cpython-314.pyc +0 -0
  41. package/token_optimization/compressor.py +502 -0
  42. package/token_optimization/output_styles.md +80 -0
  43. package/tools/__pycache__/domain_utils.cpython-314.pyc +0 -0
  44. package/tools/__pycache__/generate_claude_md.cpython-314.pyc +0 -0
  45. package/tools/__pycache__/validate_kit.cpython-314.pyc +0 -0
  46. package/tools/domain_utils.py +141 -0
  47. package/tools/generate_claude_md.py +269 -0
  48. package/tools/generate_platform_configs.py +467 -0
  49. package/tools/generate_prompt.py +461 -0
  50. package/tools/init_project.py +454 -0
  51. package/tools/test_kit.py +363 -0
  52. package/tools/validate_kit.py +504 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 agents-maker contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,659 @@
1
+ <div align="center">
2
+
3
+ # ๐Ÿค– agents-maker
4
+
5
+ ### Multi-LLM ยท Multi-Agent ยท Any Project ยท Any AI Tool
6
+
7
+ > **Clone once. Use forever.**
8
+ > Every AI session becomes structured, token-efficient, and decision-aware.
9
+
10
+ [![Kit Integrity](https://github.com/Prateek-N/Multi-Agent-Stack/actions/workflows/validate.yml/badge.svg)](https://github.com/Prateek-N/Multi-Agent-Stack/actions/workflows/validate.yml)
11
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
12
+ ![Python](https://img.shields.io/badge/Python-3.9%2B-blue)
13
+ ![Agents](https://img.shields.io/badge/Agents-8-purple)
14
+ ![Skills](https://img.shields.io/badge/Skills-12-green)
15
+ ![Domains](https://img.shields.io/badge/Domains-8-orange)
16
+ ![Tests](https://img.shields.io/badge/Tests-60%2F60-brightgreen)
17
+
18
+ </div>
19
+
20
+ ---
21
+
22
+ **agents-maker** is a multi-agent assistant kit you drop into any project. It acts as intelligent middleware between your problem statement and any AI tool โ€” Claude, ChatGPT, Codex, or anything else. Instead of dumping raw context into a chat window, you give it your stack, constraints, and task โ€” and it routes to the right specialists, enforces a token budget, and always tells you what to do next.
23
+
24
+ > ๐Ÿ’ก **The key insight**: AI quality is bounded by context quality. agents-maker teaches you exactly what context to give, structures it automatically, and makes every session resume-able without replaying history.
25
+
26
+ ---
27
+
28
+ ## โœจ What It Does
29
+
30
+ | ๐Ÿ˜ค Without agents-maker | ๐Ÿš€ With agents-maker |
31
+ |---|---|
32
+ | Re-explain the project every session | `project_state.md` resumes automatically |
33
+ | AI gives generic boilerplate patterns | Specialist agent uses your actual stack |
34
+ | Wrong domain, wrong agent, wrong output | Domain auto-detected from task description |
35
+ | Bloated context, slow token-heavy responses | Token budget enforced per phase and domain |
36
+ | "What do I do next?" after every response | 3 ranked next steps surfaced automatically |
37
+ | One-size-fits-all output style | 11 output styles matched to phase and task |
38
+
39
+ - ๐ŸŽฏ **Domain is auto-detected** from your task โ€” software, content, research, marketing, analytics, product design, ops
40
+ - ๐Ÿง  **8 specialist agents** activate only when relevant โ€” you never name an agent
41
+ - ๐Ÿ’ฐ **Token budget is enforced** โ€” context is compressed to fit the right window per phase
42
+ - ๐Ÿ—บ๏ธ **Next steps always surfaced** โ€” 3 ranked options after every response
43
+ - ๐Ÿ”„ **State persists across sessions** โ€” resume long projects without replaying history
44
+ - ๐Ÿ”Œ **Works with any LLM** โ€” pure Markdown + YAML, no provider lock-in, no API keys
45
+
46
+ ---
47
+
48
+ ## โšก Quickstart
49
+
50
+ ### ๐ŸชŸ Windows
51
+
52
+ ```powershell
53
+ git clone https://github.com/Prateek-N/Multi-Agent-Stack.git agents-maker
54
+ .\agents-maker\quickstart.ps1
55
+ ```
56
+
57
+ ### ๐ŸŽ macOS / Linux / WSL
58
+
59
+ ```bash
60
+ git clone https://github.com/Prateek-N/Multi-Agent-Stack.git agents-maker
61
+ bash agents-maker/quickstart.sh
62
+ ```
63
+
64
+ The quickstart script handles everything:
65
+ 1. โœ… Checks Python 3.9+
66
+ 2. ๐Ÿ“ฆ Installs `pyyaml` (the only dependency)
67
+ 3. ๐Ÿ” Validates all 12 kit integrity checks
68
+ 4. ๐Ÿš€ Runs `init_project.py` to scan your project and generate `system_prompt.md`
69
+ 5. ๐Ÿ“‹ Prints all commands you need, ready to copy-paste
70
+
71
+ ---
72
+
73
+ ## ๐Ÿšฆ Two Ways to Use It
74
+
75
+ ### ๐Ÿ…ฐ๏ธ Zero-Python Workflow (no installation needed)
76
+
77
+ 1. Paste `system_prompt.md` into your AI tool as the **system prompt** or Project Knowledge โ€” do this **once**
78
+ 2. Open `PROMPT_TEMPLATE.md`, fill in your context and task, paste it as your message:
79
+
80
+ ```
81
+ ## Project Context
82
+ Name: my-app | Stack: Python, FastAPI | Domain: software
83
+
84
+ ## Session State
85
+ Session 1 โ€” starting fresh
86
+
87
+ ## Task
88
+ Add rate limiting to the auth service
89
+ ```
90
+
91
+ ### ๐Ÿ…ฑ๏ธ Companion Mode CLI (Python โ€” automated)
92
+
93
+ ```bash
94
+ # One-time bootstrap โ€” scans your project, generates system_prompt.md
95
+ python agents-maker/tools/init_project.py
96
+
97
+ # Before every session โ€” generates a structured, domain-routed message
98
+ python agents-maker/tools/generate_prompt.py "add rate limiting to the auth service"
99
+ ```
100
+
101
+ Output:
102
+ ```
103
+ ============================================================
104
+ PASTE THIS AS YOUR NEXT MESSAGE
105
+ Project: my-app | Domain: software (high) | Phase: implementation
106
+ Est. tokens: ~3,800 | Agents: orchestrator, code_agent
107
+ ============================================================
108
+
109
+ ## Project Context
110
+ Name: my-app | Stack: python, fastapi, postgres | Domain: software
111
+
112
+ ## Session State
113
+ Phase: implementation | Approved: requirements_spec, solution_design
114
+
115
+ ## Task
116
+ add rate limiting to the auth service
117
+
118
+ ## Domain & Routing
119
+ Domain: software (confidence: high, score: 1.33)
120
+ Suggested phase: implementation
121
+ Active agents: orchestrator, code_agent
122
+ Active skills: review_code, write_tests, suggest_next
123
+ ============================================================
124
+ ```
125
+
126
+ ---
127
+
128
+ ## ๐ŸŒ Platform Integration
129
+
130
+ One command wires agents-maker into every AI platform you use. Run it once after init:
131
+
132
+ ```bash
133
+ python agents-maker/tools/generate_platform_configs.py
134
+ ```
135
+
136
+ This writes a native config file for each platform โ€” committed to git, auto-loaded on every session, no copy-paste required:
137
+
138
+ | Platform | Config file written | What it does |
139
+ |---|---|---|
140
+ | ๐ŸŸฃ **Claude Code** | `CLAUDE.md` | Auto-read every session โ€” domain, stack, phase, agent routing loaded silently |
141
+ | ๐ŸŸข **GitHub Copilot** | `.github/copilot-instructions.md` | Workspace-level instructions โ€” Copilot applies agent routing on every suggestion |
142
+ | ๐Ÿ”ต **Cursor** | `.cursor/rules` | Persistent AI rules โ€” Cursor applies domain context across all tabs |
143
+ | โšก **Antigravity** | `.agkit/agents.yaml` | Full agent pipeline config โ€” all 8 agents + 12 skills registered with phase/domain wiring |
144
+
145
+ **Commit all generated files** โ€” they are project config, not private state. Every developer who clones the repo gets the full multi-agent setup automatically.
146
+
147
+ ```bash
148
+ # Generate for all platforms (default)
149
+ python agents-maker/tools/generate_platform_configs.py
150
+
151
+ # Generate for specific platforms only
152
+ python agents-maker/tools/generate_platform_configs.py --platforms claude copilot
153
+
154
+ # Preview without writing
155
+ python agents-maker/tools/generate_platform_configs.py --dry-run
156
+
157
+ # Or generate during init
158
+ python agents-maker/tools/init_project.py --platforms
159
+ ```
160
+
161
+ Regenerate whenever your domain, stack, or phase changes.
162
+
163
+ ```markdown
164
+ # agents-maker โ€” Project AI Config
165
+
166
+ ## Active Domain
167
+ software (confidence: high)
168
+
169
+ ## Stack
170
+ Python, FastAPI, PostgreSQL
171
+
172
+ ## Current Phase
173
+ Implementation (`implementation`)
174
+
175
+ ## Agent Routing
176
+ Orchestrator is always active. Specialist agents: code_agent (implementation), reviewer_agent (QA).
177
+
178
+ ## Session Instructions
179
+ - Apply domain routing and phase context from agents-maker before every task.
180
+ - After every response: append a [Companion] block with 3 ranked next steps.
181
+ ```
182
+
183
+ ---
184
+
185
+ ## ๐Ÿ“š Context Guide โ€” What to Give the AI
186
+
187
+ > The quality of every AI response is bounded by the context you provide.
188
+
189
+ ### ๐Ÿงฑ The 5 Context Layers
190
+
191
+ | Layer | Field | Impact if missing |
192
+ |---|---|---|
193
+ | ๐Ÿท๏ธ **Project identity** | Name, Stack | AI uses generic patterns instead of your actual technology |
194
+ | ๐ŸŽฏ **Domain** | Domain key | AI may mis-route (software task treated as content) |
195
+ | ๐Ÿšง **Constraints** | Key constraints | AI proposes solutions you can't use |
196
+ | ๐Ÿ“ **Session state** | Phase + approved artifacts | AI restarts from scratch instead of continuing |
197
+ | ๐ŸŽฏ **Task specificity** | Concrete, scoped description | AI asks 5 clarifying questions before doing anything |
198
+
199
+ ---
200
+
201
+ ### ๐Ÿ” Project Context โ€” What Each Field Unlocks
202
+
203
+ ```
204
+ ## Project Context
205
+ Name: auth-service
206
+ Stack: Python 3.11, FastAPI, PostgreSQL 15, Redis 7, Docker
207
+ Domain: software
208
+ Key constraints: no breaking changes to /login, Redis already in use, must support 10k req/min
209
+ ```
210
+
211
+ **`Stack`** โ€” the Code Agent uses this to pick the right patterns, libraries, and idioms. Be specific:
212
+
213
+ | Weak | Strong |
214
+ |---|---|
215
+ | `"Python"` | `"Python 3.11, FastAPI, PostgreSQL 15"` |
216
+ | `"JavaScript"` | `"Next.js 14, TypeScript, Tailwind, Prisma"` |
217
+
218
+ **`Key constraints`** โ€” the highest-ROI field. Constraints eliminate entire classes of wrong answers before the AI starts:
219
+
220
+ | ๐Ÿšซ Without constraints | โœ… With constraints |
221
+ |---|---|
222
+ | AI suggests a new caching library | AI uses your existing Redis setup |
223
+ | AI proposes a breaking API change | AI works around the existing `/login` contract |
224
+ | AI writes a 4,000-word document | AI writes within your 800-word limit |
225
+
226
+ **`Domain`** โ€” controls which specialist agents activate. Force it with `[domain: X]` in your task โ€” all 8 domains are supported:
227
+ ```
228
+ ## Task
229
+ [domain: ops_process] Write a runbook for Redis failover.
230
+ [domain: marketing] Write a go-to-market brief for our SaaS launch.
231
+ [domain: software] Refactor the auth service โ€” add sliding-window rate limiting.
232
+ ```
233
+ The header shows `(forced)` as the confidence when a prefix is used, so you always know routing was explicit.
234
+
235
+ ---
236
+
237
+ ### โœ๏ธ Task Specificity โ€” Good vs Weak
238
+
239
+ The pattern: **Deliverable + Scope + Success criteria.** Three sentences max.
240
+
241
+ | ๐Ÿ˜ฉ Weak | ๐Ÿ’ช Strong |
242
+ |---|---|
243
+ | `fix the bug` | `Fix 500 on POST /auth/refresh when Redis key has expired โ€” stack trace in issue #47` |
244
+ | `improve the UI` | `Redesign signup form: reduce fields from 9 to 5, inline validation, mobile-first` |
245
+ | `write blog post` | `1,200-word technical post for senior engineers on RESTโ†’GraphQL: what broke, 3 takeaways` |
246
+ | `add tests` | `pytest for RedisRateLimiter: happy path, limit exceeded, bypass for 10.x.x.x, Redis failure` |
247
+ | `review the code` | `Security review of auth middleware โ€” focus on token validation, rate limit bypass vectors` |
248
+
249
+ ---
250
+
251
+ ### ๐Ÿ—‚๏ธ Code Context โ€” How to Attach Your Repo
252
+
253
+ ```bash
254
+ # Annotated repo tree โ†’ paste into session message
255
+ python agents-maker/context_loaders/repo_tree.py --path .
256
+
257
+ # Stack + structure summary
258
+ python agents-maker/context_loaders/project_summary.py --path .
259
+
260
+ # Split a large file into token-safe chunks
261
+ python agents-maker/context_loaders/file_chunker.py --path . --files src/auth/middleware.py
262
+ ```
263
+
264
+ Or paste manually after your `## Task` block:
265
+
266
+ ```
267
+ ## Repo Context
268
+ src/
269
+ โ”œโ”€โ”€ auth/
270
+ โ”‚ โ”œโ”€โ”€ middleware.py โ† rate limiting goes here
271
+ โ”‚ โ””โ”€โ”€ routes.py
272
+ โ””โ”€โ”€ core/
273
+ โ””โ”€โ”€ redis.py โ† existing Redis client
274
+
275
+ Key file โ€” src/core/redis.py:
276
+ [paste relevant excerpt]
277
+ ```
278
+
279
+ ---
280
+
281
+ ### ๐Ÿ” Session State โ€” Resume Without Replay
282
+
283
+ After each approved phase, ask the AI:
284
+ ```
285
+ Produce an updated project_state.md for this session.
286
+ ```
287
+
288
+ Paste the result into your next session's `## Session State` block. The Compression Agent reads it and jumps directly to the current phase โ€” no re-explaining, no token waste.
289
+
290
+ ```yaml
291
+ # project_state.md
292
+ ## Current Phase
293
+ implementation
294
+
295
+ ## Approved Artifacts
296
+ - task_profile: add sliding-window rate limiter to auth service
297
+ - requirements_spec: 100 req/min per IP, Redis-backed, bypass for 10.x.x.x
298
+ - solution_design: FastAPI middleware, sliding window, Redis ZSET, X-RateLimit-* headers
299
+
300
+ ## Build Log
301
+ - Increment 1: RedisRateLimiter class + ZSET logic โœ“
302
+ - Increment 2: FastAPI middleware integration โœ“
303
+
304
+ ## Open Decisions
305
+ - Should /health bypass be configurable or hard-coded?
306
+ ```
307
+
308
+ ---
309
+
310
+ ### ๐Ÿ—บ๏ธ Domain-Specific Context Tips
311
+
312
+ | Domain | ๐Ÿ“‹ Most important context to include |
313
+ |---|---|
314
+ | `๐Ÿ’ป software` | Stack versions, existing patterns, file paths, code excerpts |
315
+ | `โœ๏ธ content` | Target audience, tone, word count, format, examples you like |
316
+ | `๐Ÿ”ฌ research` | Question to answer, scope limits, citation style, sources to exclude |
317
+ | `๐Ÿ“Š data_analytics` | Data schema or sample rows, metrics that matter, existing tools |
318
+ | `๐ŸŽจ product_design` | User persona, current flow (numbered steps), pain point, platform |
319
+ | `๐Ÿ“ฃ marketing` | ICP, channel, brand voice, competitor positioning |
320
+ | `โš™๏ธ ops_process` | Team size, existing tools, compliance requirements, who runs it |
321
+
322
+ ---
323
+
324
+ ### ๐ŸŽฏ Phase-Based Context โ€” What to Include Per Phase
325
+
326
+ | Phase (`--phase` key) | ๐Ÿ“Ž Add this to your session message |
327
+ |---|---|
328
+ | **Task Framing** (`task_framing`) | Full project context + constraint list. Let the AI ask clarifying questions. |
329
+ | **Requirements** (`requirements`) | Non-negotiables, stakeholder constraints, timeline. |
330
+ | **Solution Design** (`solution_design`) | Existing system diagrams or structure; previous ADRs. |
331
+ | **Implementation** (`implementation`) | Relevant code excerpts, file paths, test patterns already in use. |
332
+ | **Review** (`review_refinement`) | What success looks like, known edge cases, compliance checklist. |
333
+ | **Handoff** (`handoff`) | Deployment target, who receives the handoff, format preferences. |
334
+
335
+ ---
336
+
337
+ ### ๐Ÿ”ง Forcing a Skill
338
+
339
+ Skills fire automatically, but you can invoke any explicitly:
340
+
341
+ ```
342
+ [skill: compare_approaches] Compare Redis sliding window vs token bucket for our rate limiter.
343
+ [skill: animated_website] Build a scroll-driven hero entrance animation using GSAP.
344
+ [skill: review_code] Security review of src/auth/middleware.py โ€” focus on token validation.
345
+ ```
346
+
347
+ ---
348
+
349
+ ## ๐Ÿ› ๏ธ Command Reference
350
+
351
+ ```bash
352
+ # ๐Ÿš€ One-command setup
353
+ bash agents-maker/quickstart.sh # macOS / Linux / WSL
354
+ .\agents-maker\quickstart.ps1 # Windows PowerShell
355
+
356
+ # ๐Ÿ”ง Bootstrap a new project (run once)
357
+ python agents-maker/tools/init_project.py
358
+ python agents-maker/tools/init_project.py --path /your/project
359
+ python agents-maker/tools/init_project.py --update # regenerate system_prompt.md
360
+ python agents-maker/tools/init_project.py --claude-md # also write CLAUDE.md (Claude Code)
361
+
362
+ # ๐Ÿ’ฌ Generate a prompt before any AI session
363
+ python agents-maker/tools/generate_prompt.py "describe your task"
364
+ python agents-maker/tools/generate_prompt.py "[domain: software] your task" # force domain
365
+ python agents-maker/tools/generate_prompt.py "your task" --phase implementation
366
+ python agents-maker/tools/generate_prompt.py "your task" --compress # add token policy block
367
+ python agents-maker/tools/generate_prompt.py "your task" --full # embed full system prompt
368
+
369
+ # ๐ŸŒ Wire into all AI platforms (Claude Code, Copilot, Cursor, Antigravity)
370
+ python agents-maker/tools/generate_platform_configs.py
371
+ python agents-maker/tools/generate_platform_configs.py --platforms claude copilot
372
+ python agents-maker/tools/generate_platform_configs.py --dry-run # preview without writing
373
+ python agents-maker/tools/init_project.py --platforms # generate during init
374
+
375
+ # ๐Ÿ“Š Context loaders (paste output alongside your task)
376
+ python agents-maker/context_loaders/project_summary.py --path .
377
+ python agents-maker/context_loaders/repo_tree.py --path .
378
+ python agents-maker/context_loaders/file_chunker.py --path . --files src/main.py
379
+
380
+ # โœ… Validate kit integrity (run after any edits)
381
+ python agents-maker/tools/validate_kit.py
382
+
383
+ # ๐Ÿงช Run the full test suite
384
+ python agents-maker/tools/test_kit.py
385
+ ```
386
+
387
+ **Valid phases:** `task_framing` ยท `requirements` ยท `solution_design` ยท `implementation` ยท `review_refinement` ยท `handoff`
388
+
389
+ **Valid domains for `[domain: X]`:** `software` ยท `content` ยท `research` ยท `data_analytics` ยท `product_design` ยท `marketing` ยท `ops_process` ยท `general`
390
+
391
+ ---
392
+
393
+ ## ๐Ÿง  The 8 Specialist Agents
394
+
395
+ > The Orchestrator routes your task automatically. You never call an agent by name.
396
+
397
+ | Agent | ๐ŸŽฏ What it handles |
398
+ |---|---|
399
+ | ๐ŸŽ›๏ธ **Orchestrator** | Entry point โ€” detects domain, drives 6-phase lifecycle, aggregates output |
400
+ | ๐Ÿ—๏ธ **Architect / Planner** | System design, API contracts, research plans, campaign strategy, process maps |
401
+ | ๐Ÿ’ป **Code Agent** | Software implementation, refactoring, test generation (software + analytics) |
402
+ | โœ๏ธ **Execution Agent** | Non-code work โ€” documents, research sections, marketing copy, SOPs, runbooks |
403
+ | ๐Ÿ–ฅ๏ธ **UI Agent** | Component hierarchy, layout, design tokens, accessibility, landing pages |
404
+ | ๐Ÿงญ **UX Agent** | Flow critique, onboarding sequences, funnel analysis, friction identification |
405
+ | ๐Ÿ” **Reviewer Agent** | QA for any domain โ€” severity-rated reviews, edge cases, brand alignment |
406
+ | ๐Ÿ—œ๏ธ **Compression Agent** | Token budget enforcement, context compression, cross-session resumption |
407
+
408
+ ---
409
+
410
+ ## ๐Ÿ”„ The 6-Phase Lifecycle
411
+
412
+ > Every task โ€” code, content, research, marketing, ops โ€” runs through the same structure.
413
+
414
+ | Phase | ๐Ÿ”„ What happens | ๐Ÿ“„ Output artifact |
415
+ |---|---|---|
416
+ | **0 โ€” Task Framing** | Orchestrator interprets intent, detects domain, sets constraints | `task_profile` |
417
+ | **1 โ€” Requirements** | Architect clarifies scope, surfaces ambiguities | `requirements_spec` |
418
+ | **2 โ€” Solution Design** | Architect proposes approach; UI/UX agents join for design tasks | `solution_design` |
419
+ | **3 โ€” Implementation** | Code Agent (software) or Execution Agent (everything else) builds | `work_product` |
420
+ | **4 โ€” Review** | Reviewer Agent critiques, flags issues, suggests fixes | `refinement_report` |
421
+ | **5 โ€” Handoff** | Orchestrator packages deliverables, surfaces next-project options | `handoff_package` |
422
+
423
+ Each phase ends with an **approval gate** (A/B/C options). The AI never proceeds without your sign-off. Small tasks can merge phases โ€” the Orchestrator proposes this automatically.
424
+
425
+ ---
426
+
427
+ ## ๐Ÿƒ The 12 Skill Cards
428
+
429
+ > Skills are reusable capability definitions. They define exact output formats so responses are always structured.
430
+
431
+ | Skill | โšก Triggered by |
432
+ |---|---|
433
+ | `๐Ÿ”Ž analyze_repo` | Any session starting with a code repo |
434
+ | `๐Ÿ“ design_api` | API design, schema, contract decisions |
435
+ | `๐Ÿ”ฌ review_code` | Code review, QA, security audit requests |
436
+ | `๐Ÿ–ผ๏ธ review_layout` | UI/UX critique, layout and accessibility review |
437
+ | `โœจ improve_copy` | Writing quality, tone, and clarity improvement |
438
+ | `๐Ÿงช write_tests` | Test generation, coverage, and edge-case requests |
439
+ | `๐Ÿ“ฆ summarize_history` | Cross-session compression and context handoff |
440
+ | `๐Ÿ—บ๏ธ suggest_next` | **Auto-fires** after every deliverable โ€” 3 ranked next moves |
441
+ | `โš–๏ธ compare_approaches` | "compare", "trade-off", "which approach" โ€” structured decision table |
442
+ | `๐ŸŽฌ animated_website` | CSS / GSAP / Framer Motion animation plans and production-ready code |
443
+ | `๐Ÿ—‚๏ธ write_process_map` | SOP, runbook, or workflow doc โ€” numbered steps + RACI + exceptions |
444
+ | `๐Ÿ—ƒ๏ธ define_data_schema` | Data model, metric definitions, or data dictionary requests |
445
+
446
+ ---
447
+
448
+ ## ๐ŸŒ 8 Built-In Domains
449
+
450
+ > Domain detection is automatic. Use `[domain: X]` to force it.
451
+
452
+ | Domain | ๐Ÿ’ก Example tasks | ๐Ÿค– Implementation agent |
453
+ |---|---|---|
454
+ | `๐Ÿ’ป software` | build API, fix bug, refactor service | Code Agent |
455
+ | `โœ๏ธ content` | write blog post, draft newsletter, edit article | Execution Agent |
456
+ | `๐Ÿ”ฌ research` | literature review, competitive analysis, synthesis | Execution Agent |
457
+ | `๐Ÿ“Š data_analytics` | build dashboard, analyze funnel, clean dataset | Code Agent |
458
+ | `๐ŸŽจ product_design` | design onboarding flow, map user journey | Execution Agent + UI/UX |
459
+ | `๐Ÿ“ฃ marketing` | go-to-market strategy, campaign copy, brand guide | Execution Agent + UX |
460
+ | `โš™๏ธ ops_process` | write SOP, design runbook, document process | Execution Agent |
461
+ | `โ“ general` | fallback โ€” Orchestrator asks clarifying questions | โ€” |
462
+
463
+ > Add a new domain with a single YAML block in `config/domain_profiles.yaml` โ€” no agent files change.
464
+
465
+ ---
466
+
467
+ ## ๐Ÿค Companion Mode: What the AI Returns
468
+
469
+ When `system_prompt.md` is loaded, every AI response automatically ends with a `[Companion]` block:
470
+
471
+ ```
472
+ ---
473
+ [Companion] Phase: implementation | Domain: software | Est. token budget used: ~42%
474
+
475
+ What to do next (pick one):
476
+
477
+ [Recommended] A: Write unit tests for the rate-limiting middleware
478
+ Why: Coverage is the only open item before this increment is reviewable.
479
+ Effort: ~30 mins | Token cost: low
480
+ Command: `python agents-maker/tools/generate_prompt.py "write unit tests for rate-limiting middleware"`
481
+
482
+ B: Open Phase 4 review on the full auth service
483
+ Why: The reviewer agent can flag edge cases before the feature ships.
484
+ Effort: ~1 session | Token cost: medium
485
+
486
+ C: Document the rate-limiting config in the runbook
487
+ Why: Ops teams will need this when rate limits need tuning in production.
488
+ Effort: ~20 mins | Token cost: low
489
+ ---
490
+ ```
491
+
492
+ You always know what to do next. No planning overhead between sessions.
493
+
494
+ ---
495
+
496
+ ## ๐Ÿ”‹ Token Optimization
497
+
498
+ The kit enforces a token budget per phase and domain, defined in `config/token_policies.yaml`:
499
+
500
+ - ๐Ÿ“ **Per-phase limits** โ€” implementation phases get more tokens than framing phases
501
+ - ๐ŸŽฏ **Per-domain overrides** โ€” product_design gets UI/UX context; software gets code context
502
+ - ๐Ÿ”ข **Relevance filtering** โ€” files are scored and ranked; only the most relevant are included
503
+ - ๐Ÿ—œ๏ธ **History compression** โ€” raw discussion turns dropped after each phase; only approved artifacts kept
504
+
505
+ Use `--compress` to attach the active token policy to any generated prompt. Use `--full` only on platforms without persistent system prompts.
506
+
507
+ ---
508
+
509
+ ## ๐Ÿ–ฅ๏ธ Works With Any AI Tool
510
+
511
+ | Platform | ๐Ÿ”— How to use |
512
+ |---|---|
513
+ | ๐ŸŸฃ **Claude (Projects)** | Paste `system_prompt.md` into Project Instructions โ€” one-time setup. See [`platforms/claude.md`](platforms/claude.md) Option A. |
514
+ | ๐ŸŸฃ **Claude (free tier)** | Paste `system_prompt.md` as your first message each session. See [`platforms/claude.md`](platforms/claude.md) Option C. |
515
+ | ๐ŸŸข **OpenAI / ChatGPT** | Pass `system_prompt.md` as the `system` role โ€” Companion Mode works identically. See [`platforms/openai.md`](platforms/openai.md). |
516
+ | ๐Ÿ”ต **Antigravity** | Map phases to pipeline stages. See [`platforms/antigravity.md`](platforms/antigravity.md). |
517
+ | โšช **Any other tool** | Use `--full` flag โ€” one self-contained paste includes everything. |
518
+
519
+ ---
520
+
521
+ ## โœ… Validate the Kit
522
+
523
+ After any edits, run the integrity checker:
524
+
525
+ ```bash
526
+ python agents-maker/tools/validate_kit.py
527
+ ```
528
+
529
+ Runs **12 checks**: YAML parse ยท agent files + structure ยท skill files + structure ยท domain coverage ยท agent references ยท output styles ยท domain scoring ยท file inventory ยท compressor dry-run ยท system_prompt.md freshness.
530
+
531
+ ```
532
+ ============================================================
533
+ Result: ALL 12 checks PASSED
534
+ ============================================================
535
+ ```
536
+
537
+ ---
538
+
539
+ ## ๐Ÿ“ Repository Map
540
+
541
+ ```
542
+ agents-maker/
543
+ โ”œโ”€โ”€ ๐Ÿ“„ README.md
544
+ โ”œโ”€โ”€ ๐Ÿ“‹ CHANGELOG.md โ† version history
545
+ โ”œโ”€โ”€ ๐Ÿค CONTRIBUTING.md โ† contribution guide + standards
546
+ โ”œโ”€โ”€ ๐Ÿ“œ LICENSE โ† MIT
547
+ โ”œโ”€โ”€ ๐Ÿš€ quickstart.sh โ† one-command setup (macOS / Linux / WSL)
548
+ โ”œโ”€โ”€ ๐Ÿš€ quickstart.ps1 โ† one-command setup (Windows PowerShell)
549
+ โ”œโ”€โ”€ ๐Ÿง  system_prompt.md โ† paste into your AI tool once (all agents + skills)
550
+ โ”œโ”€โ”€ ๐Ÿ“ PROMPT_TEMPLATE.md โ† fill in before every session (no Python needed)
551
+ โ”œโ”€โ”€ โš™๏ธ .github/
552
+ โ”‚ โ””โ”€โ”€ workflows/
553
+ โ”‚ โ”œโ”€โ”€ validate.yml โ† CI: runs validate_kit.py on every push/PR
554
+ โ”‚ โ””โ”€โ”€ release.yml โ† tag-triggered GitHub Release publisher
555
+ โ”œโ”€โ”€ ๐Ÿ“š docs/
556
+ โ”‚ โ”œโ”€โ”€ architecture.md โ† agent graph, context flow, design decisions
557
+ โ”‚ โ”œโ”€โ”€ workflows.md โ† lifecycle phases, interface contracts
558
+ โ”‚ โ””โ”€โ”€ domains.md โ† domain plug-in schema + built-in domain cards
559
+ โ”œโ”€โ”€ ๐Ÿค– agents/
560
+ โ”‚ โ”œโ”€โ”€ orchestrator.md โ† phase driver, domain detection, Companion Mode
561
+ โ”‚ โ”œโ”€โ”€ architect_agent.md โ† requirements + solution design (all domains)
562
+ โ”‚ โ”œโ”€โ”€ code_agent.md โ† software/data implementation
563
+ โ”‚ โ”œโ”€โ”€ execution_agent.md โ† non-code drafting (content, research, marketing, ops)
564
+ โ”‚ โ”œโ”€โ”€ ui_agent.md โ† presentation / interface layer
565
+ โ”‚ โ”œโ”€โ”€ ux_agent.md โ† experience / flow critique
566
+ โ”‚ โ”œโ”€โ”€ reviewer_agent.md โ† QA, severity-rated review (Phase 4)
567
+ โ”‚ โ””โ”€โ”€ compression_agent.md โ† context compression + cross-session resumption
568
+ โ”œโ”€โ”€ ๐Ÿƒ skills/
569
+ โ”‚ โ”œโ”€โ”€ analyze_repo.md
570
+ โ”‚ โ”œโ”€โ”€ design_api.md
571
+ โ”‚ โ”œโ”€โ”€ review_code.md
572
+ โ”‚ โ”œโ”€โ”€ review_layout.md
573
+ โ”‚ โ”œโ”€โ”€ improve_copy.md
574
+ โ”‚ โ”œโ”€โ”€ write_tests.md
575
+ โ”‚ โ”œโ”€โ”€ summarize_history.md
576
+ โ”‚ โ”œโ”€โ”€ suggest_next.md โ† auto-fires after every deliverable
577
+ โ”‚ โ”œโ”€โ”€ compare_approaches.md โ† on-demand decision support
578
+ โ”‚ โ”œโ”€โ”€ animated_website.md โ† CSS/GSAP/Framer Motion animation code
579
+ โ”‚ โ”œโ”€โ”€ write_process_map.md โ† SOP/runbook: steps + RACI + exceptions
580
+ โ”‚ โ””โ”€โ”€ define_data_schema.md โ† ER sketch + metric definitions + data dictionary
581
+ โ”œโ”€โ”€ โš™๏ธ config/
582
+ โ”‚ โ”œโ”€โ”€ agents.yaml โ† agent registry: skills, routing tags, cost tier
583
+ โ”‚ โ”œโ”€โ”€ token_policies.yaml โ† compression + verbosity presets per phase + domain
584
+ โ”‚ โ””โ”€โ”€ domain_profiles.yaml โ† domain detection signals, agent mappings
585
+ โ”œโ”€โ”€ ๐Ÿ–ฅ๏ธ platforms/
586
+ โ”‚ โ”œโ”€โ”€ claude.md
587
+ โ”‚ โ”œโ”€โ”€ openai.md
588
+ โ”‚ โ””โ”€โ”€ antigravity.md
589
+ โ”œโ”€โ”€ ๐Ÿ”ง tools/
590
+ โ”‚ โ”œโ”€โ”€ init_project.py โ† one-time bootstrap (run once per project)
591
+ โ”‚ โ”œโ”€โ”€ generate_prompt.py โ† daily driver (run before every session)
592
+ โ”‚ โ”œโ”€โ”€ generate_platform_configs.py โ† wire into Claude Code, Copilot, Cursor, Antigravity
593
+ โ”‚ โ”œโ”€โ”€ generate_claude_md.py โ† writes CLAUDE.md for Claude Code integration
594
+ โ”‚ โ”œโ”€โ”€ validate_kit.py โ† 12-check integrity validator
595
+ โ”‚ โ”œโ”€โ”€ test_kit.py โ† 60-test edge-case suite (CI + local)
596
+ โ”‚ โ””โ”€โ”€ domain_utils.py โ† shared domain scoring (used by all 3 tools)
597
+ โ”œโ”€โ”€ ๐Ÿ”Œ context_loaders/
598
+ โ”‚ โ”œโ”€โ”€ project_summary.py โ† stack + structure detection
599
+ โ”‚ โ”œโ”€โ”€ repo_tree.py โ† annotated directory tree
600
+ โ”‚ โ””โ”€โ”€ file_chunker.py โ† large-file token splitter
601
+ โ”œโ”€โ”€ ๐Ÿ’ฐ token_optimization/
602
+ โ”‚ โ”œโ”€โ”€ output_styles.md โ† style usage guide (definitions in token_policies.yaml)
603
+ โ”‚ โ””โ”€โ”€ compressor.py โ† token budget enforcement engine
604
+ โ””โ”€โ”€ ๐Ÿ“– examples/
605
+ โ””โ”€โ”€ generic_project_lifecycle.md โ† two full annotated lifecycle walkthroughs
606
+ ```
607
+
608
+ ---
609
+
610
+ ## ๐Ÿงฉ Extend It
611
+
612
+ **โž• Add a domain** โ€” YAML only, no agent files change:
613
+ ```yaml
614
+ # config/domain_profiles.yaml
615
+ domains:
616
+ legal:
617
+ display_name: "Legal & Compliance"
618
+ detection_signals:
619
+ strong: [contract, clause, regulation, filing]
620
+ weak: [policy, compliance, terms]
621
+ primary_agents:
622
+ implementation: execution_agent
623
+ review_refinement: reviewer_agent
624
+ ```
625
+
626
+ **โž• Add an agent** โ€” create `agents/<name>.md`, register in `config/agents.yaml`
627
+
628
+ **โž• Add a skill** โ€” create `skills/<name>.md`, add key to relevant agents in `config/agents.yaml`
629
+
630
+ After any addition, run `python agents-maker/tools/validate_kit.py` to confirm integrity.
631
+
632
+ ---
633
+
634
+ ## ๐Ÿ›๏ธ Design Principles
635
+
636
+ | Principle | What it means |
637
+ |---|---|
638
+ | ๐Ÿ”Œ **LLM-agnostic** | No provider hard-wired anywhere โ€” agent specs are plain Markdown |
639
+ | ๐Ÿ“ **Markdown-first** | Paste any agent file directly into any platform as a system prompt |
640
+ | ๐Ÿšซ **Zero infrastructure** | No server, no background process, no API keys required |
641
+ | ๐Ÿงฉ **Plug-in domains** | Add a domain in YAML; the rest of the kit adapts automatically |
642
+ | ๐Ÿ’ฐ **Token-aware by default** | Every agent references token policies; context never bloats silently |
643
+ | ๐Ÿ”„ **Cross-session by design** | `project_state.md` makes long projects resumable without history replay |
644
+
645
+ ---
646
+
647
+ ## ๐Ÿค Contributing
648
+
649
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for standards on adding skills, agents, and domains.
650
+
651
+ Run `python agents-maker/tools/validate_kit.py` before every PR โ€” CI enforces this automatically.
652
+
653
+ ---
654
+
655
+ <div align="center">
656
+
657
+ Made with ๐Ÿง  by [Prateek Narvariya](https://github.com/Prateek-N) ยท MIT License ยท [Changelog](CHANGELOG.md) ยท [Docs](docs/)
658
+
659
+ </div>