-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathllms-full.txt
More file actions
3360 lines (2434 loc) · 150 KB
/
llms-full.txt
File metadata and controls
3360 lines (2434 loc) · 150 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# ContextDocs — Full Documentation
> Complete documentation content for LLM ingestion. Generated from llms.txt file references.
---
## SKILL.md
---
name: contextdocs
description: AGENTS-first AI IDE context management — generate, maintain, and audit canonical AGENTS.md plus thin bridge files for CLAUDE.md, .github/copilot-instructions.md, .cursorrules, .windsurfrules, .clinerules, and GEMINI.md using the Signal Gate principle. Includes Context Guard hooks and context health scoring. Zero runtime dependencies.
version: "1.3.0"
author: Little Bear Apps
tags:
- ai-context
- agents-md
- claude-md
- context-guard
- signal-gate
- claude-code-plugin
---
# ContextDocs — AI Context File Management
## Overview
ContextDocs is a pure Markdown Claude Code plugin that generates, maintains, and audits AGENTS-first AI IDE context files for 8 tools. `AGENTS.md` carries the shared project conventions, and every generated bridge file follows the Signal Gate principle — only what agents cannot discover on their own — keeping context lean and effective.
3 skills, 3 slash commands, 2 quality rules, 6 opt-in hooks, 13 verification checks. 100% Markdown, zero runtime dependencies, MIT licensed.
## When to Use
- Starting a new project and need canonical `AGENTS.md` plus bridge files for multiple tools
- Existing context files have drifted out of date with your codebase
- CLAUDE.md or other bridge files are bloated with content that belongs in `AGENTS.md`
- You want to promote patterns from MEMORY.md into CLAUDE.md
- Need to score context file quality for CI/CD enforcement
## Instructions
1. Install the plugin:
```
/plugin marketplace add littlebearapps/lba-plugins
/plugin install contextdocs@lba-plugins
```
2. Navigate to any project repository
3. Run commands:
- `/contextdocs:ai-context init` — Bootstrap canonical `AGENTS.md` plus all needed bridges
- `/contextdocs:ai-context update` — Patch only what drifted
- `/contextdocs:ai-context promote` — Move MEMORY.md patterns to CLAUDE.md
- `/contextdocs:ai-context audit` — Check for staleness and drift
- `/contextdocs:context-guard install` — Install freshness hooks (Claude Code only)
- `/contextdocs:context-verify` — Score context file health (0–100)
## Output Format
Each generated file is written directly to the repository. `AGENTS.md` is the shared source of truth; bridge files add only tool-specific guidance.
| File | Role | Budget |
|------|------|--------|
| AGENTS.md | Canonical shared context | <120 lines |
| CLAUDE.md | Claude bridge | <80 lines |
| .cursorrules | Cursor bridge | <60 lines |
| .github/copilot-instructions.md | Copilot bridge | <60 lines |
| .windsurfrules | Windsurf compatibility bridge | <60 lines |
| .clinerules | Cline bridge | <60 lines |
| GEMINI.md | Gemini compatibility bridge | <60 lines |
## Notes
- Works with Claude Code and OpenCode natively; generated files support 8 AI tools total
- Signal Gate filtering excludes directory listings, file trees, and architecture overviews
- Context Guard hooks are Claude Code only (opt-in)
- For public-facing documentation (README, CHANGELOG, ROADMAP), see [PitchDocs](https://github.com/littlebearapps/pitchdocs)
---
## README.md
<p align="center">
<img src="docs/assets/contextdocs-logo-full.svg" height="200" alt="ContextDocs" />
</p>
<p align="center">
<strong>Keep your AI coding assistants in sync with your codebase — generate, maintain, and audit AGENTS-first context for 8 AI tools.</strong>
</p>
<p align="center">
Give your AI one canonical `AGENTS.md` plus thin bridge files for every major AI coding tool — `CLAUDE.md`, `.cursorrules`, `.github/copilot-instructions.md`, `.windsurfrules`, `.clinerules`, and `GEMINI.md` — from a single codebase scan. Signal Gate filtering strips out what agents already discover on their own. Context Guard hooks enforce freshness. Health scoring catches drift before it costs you tokens. 100% Markdown, zero runtime dependencies.
</p>
<p align="center">
<a href="CHANGELOG.md"><img src="https://img.shields.io/static/v1?label=version&message=1.3.0&color=blue" alt="Version" /></a> <!-- x-release-please-version -->
<a href="LICENSE"><img src="https://img.shields.io/github/license/littlebearapps/contextdocs" alt="License" /></a>
<a href="https://code.claude.com/docs/en/plugins"><img src="https://img.shields.io/badge/Claude_Code-Plugin-D97757?logo=claude&logoColor=white" alt="Claude Code Plugin" /></a>
<a href="https://opencode.ai/"><img src="https://img.shields.io/badge/OpenCode-Compatible-22c55e" alt="OpenCode Compatible" /></a>
<a href="https://github.com/littlebearapps/contextdocs/stargazers"><img src="https://img.shields.io/github/stars/littlebearapps/contextdocs?style=flat&color=yellow" alt="GitHub Stars" /></a>
</p>
<p align="center">
<a href="#-get-started">Get Started</a> · <a href="#-features">Features</a> · <a href="#%EF%B8%8F-how-contextdocs-compares">How It Compares</a> · <a href="#-commands">Commands</a> · <a href="#-use-with-other-ai-tools">Other AI Tools</a> · <a href="CONTRIBUTING.md">Contributing</a>
</p>
---
## ⚡ Get Started
Get your first AI context files generated in under 60 seconds.
### Prerequisites
- [Claude Code](https://code.claude.com/) or [OpenCode](https://opencode.ai/) installed
**Using a different AI tool?** ContextDocs generates plain Markdown files that work with [Codex CLI, GitHub Copilot, Cursor, Windsurf, Cline, and Gemini CLI](#-use-with-other-ai-tools) automatically.
### Install
```bash
# 1. Add the LBA plugin marketplace (once)
/plugin marketplace add littlebearapps/lba-plugins
# 2. Install ContextDocs
/plugin install contextdocs@lba-plugins
# 3. Bootstrap AI context for your project
/contextdocs:ai-context init
```
**Optional — install Context Guard hooks (Claude Code only):**
```bash
# 4. Keep context files in sync as your project evolves
/contextdocs:context-guard install # Tier 1 (Nudge) — reminds at session end
/contextdocs:context-guard install --tier enforce # Tier 2 (Enforce) — also blocks commits
```
**Optional — public-facing documentation:**
For README, CHANGELOG, ROADMAP, user guides, and launch artifacts, install [PitchDocs](https://github.com/littlebearapps/pitchdocs) separately. Both plugins work independently and complement each other.
---
## 🚀 What ContextDocs Does
Your AI coding assistant works better when it understands your project's conventions — but overstuffed context files actually make things worse. Research shows bloated context **reduces** AI task success by ~3% and increases token costs by 20% (ETH Zurich, 2026). Most teams either write too much, write the wrong things, or let context files go stale within a week.
ContextDocs solves the full lifecycle. It scans your codebase, generates `AGENTS.md` as the canonical shared context, then creates thin bridge files and companion context that cover 8 AI tools using the **Signal Gate principle** — only what agents cannot discover by reading source code on their own. No directory listings, no file trees, no architecture overviews that agents find themselves. Just the conventions, gotchas, and decisions that actually help.
Then it keeps them fresh: `update` patches drift incrementally, `promote` moves Claude's auto-learned MEMORY.md patterns into CLAUDE.md, `context-verify` scores health 0–100 across 6 dimensions with 13 checks, and Context Guard hooks enforce freshness at session start, session end, and commit time — with the context-updater agent applying fixes automatically.
---
## 🎯 Features
ContextDocs generates AGENTS-first context for 8 AI coding tools from a single codebase scan, applies Signal Gate filtering to strip discoverable content, enforces line budgets (AGENTS.md <120, CLAUDE.md <80, other bridges <60), and scores health 0–100 across 6 dimensions with 13 verification checks. Context Guard hooks catch drift at session start, session end, and commit time.
- 🧠 **Signal Gate filtering** — strips out discoverable content (directory listings, file trees, architecture overviews) so your context files contain only what actually helps AI tools, keeping them lean and under budget
- 📋 **AGENTS-first generation + thin bridges** — shared conventions live once in `AGENTS.md`, while `CLAUDE.md`, Copilot instructions, Cursor rules, Cline rules, and compatibility bridges stay minimal and tool-specific
- 🔄 **Full lifecycle, not just generation** — `init` bootstraps, `update` patches only what drifted, `promote` graduates MEMORY.md patterns to CLAUDE.md, `audit` flags staleness — so context files stay accurate as your project evolves
- ✅ **Health scoring (0–100)** — grades context files across line budget, signal quality, path accuracy, AGENTS-to-bridge consistency, freshness, and aggregate context load — export to CI with `--min-score` so drift never reaches your team
- 🔒 **Context Guard enforcement** — SessionStart health check validates on entry, Tier 1 nudges at session end, Tier 2 blocks commits when context files are stale, so drift gets caught at every stage *(Claude Code only)*
- 🤖 **Autonomous context updates** — the context-updater agent is launched automatically by hooks to update stale files without user intervention, closing the loop from detection to action *(Claude Code only)*
- 🛡️ **Content filter protection** — guards against Claude Code's API filter (HTTP 400) for CODE_OF_CONDUCT, LICENSE, and SECURITY files, so hook installation never gets blocked *(Claude Code only)*
- 📏 **Line budgets that work** — CLAUDE.md <80, AGENTS.md <120, all others <60 — backed by the ETH Zurich finding that shorter, focused context outperforms longer files
- 🗂️ **Path-scoped context rules** — apply different conventions to different directories using glob patterns, so monorepos and multi-platform projects get targeted context per area *(Claude Code only)*
- 📡 **Upstream compatibility tracking** — weekly Claude Code release monitoring and settings schema diffing detect breaking changes before they affect your context files
- 🔌 **Works with 8 AI tools** — Claude Code and OpenCode natively; generated files also work with Codex CLI, GitHub Copilot, Cursor, Windsurf, Cline, and Gemini CLI automatically
---
## ⚖️ How ContextDocs Compares
ContextDocs automates what most teams do manually — writing and maintaining AI context files. Compared to hand-writing context files or asking a generic AI prompt, ContextDocs applies Signal Gate filtering, generates canonical `AGENTS.md` plus bridges for 8 tools, enforces line budgets, and keeps files in sync with Context Guard hooks.
| Capability | ContextDocs | Writing Context Files Manually | Generic AI Prompt |
|-----------|-------------|-------------------------------|-------------------|
| Filters out discoverable content | Signal Gate principle — only undiscoverable signals | Requires discipline and AI knowledge | No filtering — dumps everything |
| Generates for multiple AI tools | Canonical `AGENTS.md` + thin bridges from one scan | Write each file separately | One file at a time |
| Keeps files in sync over time | `update`, `audit`, Context Guard hooks + autonomous agent | Manual review after every change | Start from scratch each time |
| Enforces quality standards | 0–100 health score, CI integration, line budgets | No enforcement | No enforcement |
| Handles line budgets | Automatic per-file limits | Easy to exceed without noticing | No awareness of budgets |
---
## 🤖 Commands
ContextDocs provides 3 slash commands covering the full context file lifecycle — generation, freshness enforcement, and quality verification. All commands use the `contextdocs:` prefix when installed as a plugin.
| Command | What It Does | Why It Matters |
|---------|-------------|----------------|
| `/contextdocs:ai-context` | Generate AGENTS-first AI context using Signal Gate — `init`, `update`, `promote`, `audit`, or per-tool (`claude`, `agents`, `cursor`, etc.) | Every AI tool gets lean, accurate project context |
| `/contextdocs:context-guard` | Install, uninstall, or check status of Context Guard hooks *(Claude Code only)* | Stale context files get caught before they waste tokens |
| `/contextdocs:context-verify` | Score context file health 0–100 — line budgets, stale paths, bridge consistency, signal quality | Drift never reaches your team — enforce in CI or check locally |
### Quick Examples
```bash
/contextdocs:ai-context init # Bootstrap context for a new project
/contextdocs:ai-context update # Patch only what drifted
/contextdocs:ai-context promote # Move MEMORY.md patterns to CLAUDE.md
/contextdocs:ai-context audit # Check for staleness and drift
/contextdocs:context-verify # Score context file health (0–100)
/contextdocs:context-guard install # Install freshness hooks
/contextdocs:context-guard status # Check which hooks are active
```
---
## 🔀 Use with Other AI Tools
ContextDocs generates plain Markdown files placed where each AI tool expects them. `AGENTS.md` is the canonical shared context; bridge files exist only where a tool still benefits from or requires its own file. No manual copying required for any supported tool.
ContextDocs works natively with [Claude Code](https://code.claude.com/) and [OpenCode](https://opencode.ai/). The generated context files are plain Markdown — each is placed where the target tool expects it:
| File | Role | Tool | Automatically Discovered |
|------|------|------|-------------------------|
| AGENTS.md | Canonical shared context | Codex CLI, OpenCode, Gemini CLI, AGENTS-aware tools | Yes — read on startup |
| CLAUDE.md | Thin bridge | Claude Code, OpenCode | Yes — loaded every session |
| .cursorrules | Thin bridge | Cursor | Yes — project root convention |
| .github/copilot-instructions.md | Thin bridge | GitHub Copilot | Yes — GitHub convention |
| .windsurfrules | Compatibility bridge | Windsurf | Yes — project root convention |
| .clinerules | Thin bridge | Cline | Yes — project root convention |
| GEMINI.md | Compatibility bridge | Gemini CLI | Yes — loaded on startup |
Context Guard hooks are Claude Code only. All other features (generation, update, verify) work wherever the plugin runs.
---
## 📚 Documentation
- [Getting Started Guide](docs/guides/getting-started.md) — Installation, first context file generation, and Context Guard setup
- [Troubleshooting](docs/guides/troubleshooting.md) — Signal Gate issues, hook problems, content filter errors, and FAQ
- [Documentation Hub](docs/README.md) — All guides and reference links
- [Support](SUPPORT.md) — Getting help and common questions
- [Security](SECURITY.md) — Vulnerability reporting and response timeline
---
## 🔗 Related
For public-facing repository documentation (README, CHANGELOG, ROADMAP, user guides, launch artifacts), see [PitchDocs](https://github.com/littlebearapps/pitchdocs).
---
## 🤝 Contributing
Found a way to make generated context files even better? We'd love your help — whether it's improving Signal Gate filtering, fixing a hook script, or adding support for a new AI tool's context format.
See our [Contributing Guide](CONTRIBUTING.md) to get started. This project follows the [Contributor Covenant v3.0](CODE_OF_CONDUCT.md).
- [Open Issues](https://github.com/littlebearapps/contextdocs/issues) — See what needs doing
- [Feature Requests](https://github.com/littlebearapps/contextdocs/issues/new) — Suggest improvements
---
## 📄 Licence
[MIT](LICENSE) — Made by [Little Bear Apps](https://littlebearapps.com) 🐶
---
## AGENTS.md
# ContextDocs
## Identity
ContextDocs is a Claude Code plugin for generating, maintaining, and auditing AI IDE context files. Pure Markdown, zero runtime dependencies. Applies the Signal Gate principle — only includes what agents cannot discover on their own.
Generated project context follows an AGENTS-first model: `AGENTS.md` carries the shared conventions, commands, and constraints, while `CLAUDE.md`, `.cursorrules`, Copilot instructions, `.clinerules`, `.windsurfrules`, and `GEMINI.md` stay thin bridges.
## Agent
| Agent | What It Does |
|-------|-------------|
| `context-updater` | Autonomously updates stale AI context files with an AGENTS-first workflow — updates shared context in `AGENTS.md`, then refreshes only affected bridge files. Capped at 10 turns, no internet access *(Claude Code only)* |
| `docs-freshness` | Read-only documentation freshness checker — detects stale docs, version mismatches, missing files, suggests `/pitchdocs:*` commands to fix. Capped at 8 turns, enforces read-only via disallowedTools *(PitchDocs, Claude Code only)* |
## Available Skills
Skills are loaded on-demand. Each lives at `.claude/skills/<name>/SKILL.md`. There are 3 skills in total.
| Skill | What It Provides |
|-------|-----------------|
| `ai-context` | AGENTS-first AI IDE context generation — builds canonical `AGENTS.md`, then emits thin bridges for Claude, Copilot, Cursor, Windsurf, Cline, and Gemini, with init/update/promote/audit lifecycle support |
| `context-guard` | Context Guard hook installation — two-tier enforcement, SessionStart health check, settings.json configuration, companion reference for 17 hook events and 4 handler types, troubleshooting *(Claude Code only)* |
| `context-verify` | Context file validation — line budgets, discoverable content detection, stale paths, @import validation, rule path-scope and symlink checks, .mcp.json validation, agent memory hygiene, plugin manifest completeness, AGENTS-to-bridge consistency, aggregate context load, and 0–100 health scoring with CI integration |
## Workflow Commands
Invoke as `/contextdocs:command-name` in Claude Code, or as prompts in Codex CLI and OpenCode.
| Command | What It Does |
|---------|-------------|
| `ai-context` | Generate AGENTS-first AI context using Signal Gate — supports `all`, `claude`, `agents`, `cursor`, `copilot`, `windsurf`, `cline`, `gemini`, `init`, `update`, `promote`, `audit` |
| `context-guard` | Install, uninstall, or check status of Context Guard hooks with tiered enforcement *(Claude Code only)* |
| `context-verify` | Validate context file quality — line budgets, stale paths, bridge consistency, health scoring, CI integration |
## Rules (Claude Code Only)
- `context-quality.md` — AGENTS-first bridge consistency, path verification, version accuracy, sync points (auto-loaded)
- `context-awareness.md` — context trigger map, suggests ContextDocs commands when relevant (auto-loaded)
- `doc-standards.md` — documentation quality standards, 4-Question Test, Lobby Principle, banned phrases (auto-loaded, PitchDocs)
- `docs-awareness.md` — documentation trigger map, suggests PitchDocs commands when docs-relevant work is detected (auto-loaded, PitchDocs)
## Hooks (Claude Code Only)
6 opt-in hooks, installed via `/contextdocs:context-guard install`. Hooks reference the context-updater agent for autonomous action:
- `context-session-start.sh` — session-start context health check (advisory)
- `context-drift-check.sh` — post-commit drift detection
- `context-structural-change.sh` — structural change reminders to update `AGENTS.md` first, then bridges
- `content-filter-guard.sh` — Write guard for high-risk OSS files
- `context-guard-stop.sh` — session-end context doc nudge (Tier 1)
- `context-commit-guard.sh` — pre-commit context doc enforcement (Tier 2)
---
## CLAUDE.md
# ContextDocs
Pure Markdown Claude Code plugin — no JavaScript, no Python, no build step, no runtime dependencies. Generates, maintains, and audits AI IDE context files using the Signal Gate principle.
## Commands
- **Token budget test**: `bash tests/check-token-budgets.sh`
- **llms.txt validation**: `bash tests/validate-llms-txt.sh`
- **Spell check**: `npx typos` (config: `_typos.toml`, Australian English)
- **Frontmatter lint**: `python3 tests/validate-frontmatter.py`
## Conventions
- **Australian English**: realise, colour, behaviour, licence (noun), license (verb)
- **Conventional Commits**: `feat:`, `fix:`, `docs:`, `chore:` — release-please automates versioning
- **Line budgets**: CLAUDE.md bridge <80, AGENTS.md <120, other bridge files <60
## Architecture
- **AGENTS-first generation**: `AGENTS.md` is the canonical shared context for commands, conventions, constraints, and security notes
- **Thin bridges**: `CLAUDE.md`, `.cursorrules`, Copilot instructions, `.clinerules`, `.windsurfrules`, and `GEMINI.md` should add only tool-specific behaviour
- **Compatibility bridges**: `.windsurfrules` and `GEMINI.md` remain generated for now for tool compatibility
## When Modifying
- **Add a skill**: Create `.claude/skills/<name>/SKILL.md` + `commands/<name>.md`, update README.md, AGENTS.md, llms.txt, and AGENTS-first generation guidance if shared output behaviour changed
- **Add a command**: Create `commands/<name>.md` with YAML frontmatter, update README.md, AGENTS.md, llms.txt
- **Add an agent**: Create `.claude/agents/<name>.md` with frontmatter, update AGENTS.md, llms.txt, context-guard SKILL.md
- **Change quality standards**: Edit `.claude/rules/context-quality.md` — propagates automatically
- **Change shared conventions**: Update `AGENTS.md` first, then only the bridge docs whose tool-specific notes change
- **Bump version**: Handled by release-please from conventional commit messages
## Key Files
| File | Purpose |
|------|---------|
| `AGENTS.md` | Canonical shared product context — inventory, command model, and AGENTS-first architecture |
| `.claude-plugin/plugin.json` | Plugin manifest — name, version, keywords |
| `.claude/rules/context-quality.md` | Auto-loaded quality rule — AGENTS-to-bridge consistency, path verification, sync points |
| `.claude/rules/context-awareness.md` | Auto-loaded trigger map — suggests ContextDocs commands when relevant, includes autonomous action triggers |
| `.claude/agents/context-updater.md` | Autonomous agent — launched by hooks to update stale context files with an AGENTS-first workflow |
| `.claude/agents/docs-freshness.md` | Read-only agent — checks documentation freshness, suggests PitchDocs commands *(PitchDocs)* |
| `.claude/rules/doc-standards.md` | Auto-loaded quality rule — 4-Question Test, Lobby Principle, banned phrases *(PitchDocs)* |
| `.claude/rules/docs-awareness.md` | Auto-loaded trigger map — suggests PitchDocs commands when docs-relevant work is detected *(PitchDocs)* |
## Known Limitations
- **Headless mode skill activation**: Skills don't reliably auto-trigger via `claude -p`. This is a Claude Code platform issue ([anthropics/claude-code#32184](https://github.com/anthropics/claude-code/issues/32184)), not a ContextDocs bug. Interactive mode works correctly. Activation evals using `claude -p` will show artificially low pass rates.
## Relationship to PitchDocs
ContextDocs was extracted from [PitchDocs](https://github.com/littlebearapps/pitchdocs) v1.19.3. PitchDocs handles public-facing docs (README, CHANGELOG, ROADMAP). ContextDocs handles AI IDE context files. Both work independently.
---
## docs/README.md
# ContextDocs Documentation
## Getting Started
New to ContextDocs? Start here:
- [Getting Started Guide](guides/getting-started.md) — Installation, first context file generation, and exploring all 3 commands
## Guides
| Guide | What You'll Do |
|-------|---------------|
| [Getting Started](guides/getting-started.md) | Install ContextDocs, generate your first context files, and set up Context Guard |
| [Troubleshooting](guides/troubleshooting.md) | Signal Gate issues, hook problems, content filter errors, and FAQ |
## Quick Links
- [README](../README.md) — Project overview, features, and commands
- [Contributing](../CONTRIBUTING.md) — How to improve skills, fix hooks, and submit PRs
- [Changelog](../CHANGELOG.md) — Version history and what changed
- [Support](../SUPPORT.md) — Getting help and common questions
## Skills Reference
ContextDocs includes 3 reference skills loaded on-demand. See the [Available Skills](../AGENTS.md#available-skills) table in AGENTS.md for the full inventory.
---
## docs/guides/getting-started.md
---
title: "Getting Started with ContextDocs"
description: "Install ContextDocs, generate canonical AGENTS.md plus bridge files, and set up Context Guard hooks."
type: how-to
difficulty: beginner
time_to_complete: "5 minutes"
last_verified: "1.4.0"
related:
- guides/troubleshooting.md
order: 1
---
# Getting Started with ContextDocs
> **Summary**: Install ContextDocs, generate canonical `AGENTS.md` plus bridge files for 7 tools, and optionally set up Context Guard hooks for freshness enforcement.
**Time to Hello World:** Under 60 seconds for your first context files. Full walkthrough below: ~5 minutes.
## Prerequisites
- [Claude Code](https://code.claude.com/) or [OpenCode](https://opencode.ai/) installed
- A project repository you want to add AI context files to
---
## 1. Install ContextDocs
Open Claude Code in your terminal and run:
```bash
# Add the LBA plugin marketplace (once per machine)
/plugin marketplace add littlebearapps/lba-plugins
# Install ContextDocs
/plugin install contextdocs@lba-plugins
```
**Note:** When installed as a plugin, all commands use the `contextdocs:` prefix (e.g., `/contextdocs:ai-context`).
---
## 2. Bootstrap Context Files
Navigate to the project you want to add context files to, then run:
```bash
/contextdocs:ai-context init
```
ContextDocs will:
1. Scan your codebase (manifest files, project structure, conventions)
2. Apply the Signal Gate filter — only include what agents cannot discover on their own
3. Generate canonical `AGENTS.md`, then add the bridge files each tool needs:
| File | Role | Budget |
|------|------|--------|
| AGENTS.md | Canonical shared context | <120 lines |
| CLAUDE.md | Claude Code bridge (`@AGENTS.md` + Claude-specific notes) | <80 lines |
| .cursorrules | Cursor bridge | <60 lines |
| .github/copilot-instructions.md | GitHub Copilot bridge | <60 lines |
| .windsurfrules | Windsurf compatibility bridge | <60 lines |
| .clinerules | Cline bridge | <60 lines |
| GEMINI.md | Gemini compatibility bridge | <60 lines |
**Tip:** To generate a single file, specify the tool: `/contextdocs:ai-context claude` or `/contextdocs:ai-context cursor`.
---
## 3. Verify Context Quality
Check that your generated files are healthy:
```bash
/contextdocs:context-verify
```
This scores your context files 0–100 across 6 dimensions with 13 checks:
- **Line budget** — are files within their size targets?
- **Signal quality** — does the content pass Signal Gate (no discoverable content)?
- **Path accuracy** — do referenced file paths actually exist?
- **Consistency** — do bridge files stay aligned with `AGENTS.md`?
- **Freshness** — have files been updated since the last significant code change?
- **Context load** — is the aggregate token usage across all context files within healthy limits per tool?
---
## 4. Set Up Context Guard (Optional, Claude Code Only)
Context Guard hooks keep your context files in sync as your project evolves:
```bash
/contextdocs:context-guard install
```
This installs hooks with a health check and two tiers of enforcement:
- **SessionStart** — validates context files at session start, warns if stale or over budget
- **Tier 1 (Nudge)** — at session end, reminds you if context files may be stale
- **Tier 2 (Guard)** — blocks commits when structural files haven't been reflected in `AGENTS.md` or other affected bridge files
Hooks automatically launch the **context-updater agent** to apply AGENTS-first updates — shared changes go to `AGENTS.md` first, then only the affected bridge sections are refreshed.
To check hook status or uninstall:
```bash
/contextdocs:context-guard status
/contextdocs:context-guard uninstall
```
---
## 5. Keep Context Fresh
As your project evolves, context files drift. Use these commands to maintain them:
```bash
# Patch only what drifted (incremental update)
/contextdocs:ai-context update
# Move patterns from MEMORY.md into CLAUDE.md
/contextdocs:ai-context promote
# Check for staleness without changing anything
/contextdocs:ai-context audit
```
---
## What's Next?
- **Generate public-facing docs** — Install [PitchDocs](https://github.com/littlebearapps/pitchdocs) for README, CHANGELOG, ROADMAP, user guides, and launch artifacts
- **Improve context quality** — Run `/contextdocs:context-verify` after changes to track your score over time
- **Explore the skills** — Each command loads specialised reference knowledge. See the [Available Skills](../../AGENTS.md#available-skills) table for details.
---
**Need help?** See [SUPPORT.md](../../SUPPORT.md) for getting help, common questions, and contact details.
---
## docs/guides/troubleshooting.md
---
title: "Troubleshooting & FAQ"
description: "Common ContextDocs issues and solutions — Signal Gate, Context Guard hooks, content filter errors, and cross-tool limitations."
type: how-to
difficulty: intermediate
last_verified: "1.4.0"
related:
- guides/getting-started.md
order: 2
---
# Troubleshooting & FAQ
> **Summary**: Common issues when using ContextDocs and how to resolve them.
---
## Content Filter Errors (HTTP 400)
Claude Code's API content filter blocks output when generating certain standard open-source files. This is a known upstream issue, not a ContextDocs bug.
**High-risk files** (will almost always trigger): `CODE_OF_CONDUCT.md`, `LICENSE`, `SECURITY.md`
**Solution:** Fetch from canonical URLs:
```bash
# Contributor Covenant v3.0
curl -sL "https://www.contributor-covenant.org/version/3/0/code_of_conduct/code_of_conduct.md" -o CODE_OF_CONDUCT.md
# MIT License
curl -sL "https://raw.githubusercontent.com/spdx/license-list-data/main/text/MIT.txt" -o LICENSE
```
ContextDocs includes a content filter guard hook that warns before Write operations on high-risk files.
---
## Context Files Are Too Long
If generated context files exceed their line budgets, the Signal Gate filter may not be working correctly.
**Check:** Run `/contextdocs:context-verify` — it flags files over budget and identifies discoverable content that should be removed.
**Common causes:**
- Directory listings or file trees (agents find these on their own)
- Architecture overviews that describe what's visible in the code
- Repeated information across multiple context files
**Fix:** Run `/contextdocs:ai-context update` to regenerate with stricter Signal Gate filtering.
---
## Context Guard Hooks Not Triggering
1. Check status: `/contextdocs:context-guard status`
2. Verify entries exist in `.claude/settings.json`
3. Context Guard hooks are **Claude Code only** — they don't work in OpenCode, Cursor, or other tools
4. SessionStart fires at session start (validates context files, warns if stale); Tier 1 (nudge) triggers at session end; Tier 2 (guard) triggers at commit time
**If hooks were installed but aren't in settings.json:** Run `/contextdocs:context-guard install` again — it's idempotent.
---
## Context Files Out of Sync
If context files reference stale paths or outdated conventions:
```bash
# Check what drifted
/contextdocs:ai-context audit
# Patch only what changed
/contextdocs:ai-context update
```
The `update` command is incremental — it reads existing files and patches only the sections that drifted, preserving manual customisations.
---
## MEMORY.md Patterns Not Promoted
The `promote` command moves confirmed patterns from MEMORY.md into CLAUDE.md:
```bash
/contextdocs:ai-context promote
```
**Requirements:**
- MEMORY.md must exist (Claude Code creates this automatically)
- Patterns should be stable (confirmed across multiple interactions)
- CLAUDE.md must not already contain the same information
---
## Cross-Tool Compatibility
| Feature | Claude Code | OpenCode | Codex CLI | Cursor | Windsurf | Cline | Gemini CLI |
|---------|------------|----------|-----------|--------|----------|-------|------------|
| Plugin install | Yes | Yes | No | No | No | No | No |
| Context file generation | Yes | Yes | Manual | Manual | Manual | Manual | Manual |
| Context Guard hooks | Yes | No | No | No | No | No | No |
| Context verification | Yes | Yes | Manual | Manual | Manual | Manual | Manual |
For tools without plugin support, copy the relevant context file into your project manually. The generated files (.cursorrules, .windsurfrules, etc.) work with their respective tools automatically.
---
## Headless Mode (`claude -p`) Limitations
ContextDocs skills may not auto-trigger when invoked via `claude -p` (headless/non-interactive mode). This is a [known Claude Code platform issue](https://github.com/anthropics/claude-code/issues/32184) affecting project-local plugins — not a ContextDocs bug.
**Unaffected (all normal usage):**
- Interactive Claude Code terminal sessions
- IDE extensions (VS Code, JetBrains) — use interactive protocol
- Untether / remote control bridges — use interactive stdin JSON RPC, not `-p`
- Context Guard hooks, rules, and agents — plain shell scripts, no skill triggering needed
- Generated context files — plain Markdown, tool-independent
**Affected (automation/scripting only):**
- Shell scripts calling `claude -p "prompt"` expecting skill auto-activation
- CI pipelines invoking skills via `claude -p`
- Automated eval testing of skill trigger rates
**Workaround:** If you need headless mode (e.g., CI pipelines), install ContextDocs globally rather than project-locally, or use explicit slash commands rather than relying on NL skill triggering.
---
## FAQ
### Where did this come from?
ContextDocs was extracted from [PitchDocs](https://github.com/littlebearapps/pitchdocs) v1.19.3 to follow the microtool philosophy — each tool does one thing well. PitchDocs handles public-facing documentation; ContextDocs handles AI IDE context files.
### Can I use both PitchDocs and ContextDocs?
Yes. They work independently and complement each other. PitchDocs generates README, CHANGELOG, and user guides. ContextDocs generates CLAUDE.md, AGENTS.md, and other AI context files.
### What is the Signal Gate principle?
Only include in context files what AI agents cannot discover by reading source code on their own. This keeps files lean and effective. Research shows overstuffed context files reduce AI task success by ~3% and increase token costs by 20%.
---
**Need help?** See [SUPPORT.md](../../SUPPORT.md) or [open an issue](https://github.com/littlebearapps/contextdocs/issues/new).
---
## .claude/agents/context-updater.md
---
name: context-updater
description: "Automatically updates stale AI context files with an AGENTS-first workflow. Update AGENTS.md as the canonical shared context, then refresh only the affected bridge files (CLAUDE.md, llms.txt, .cursorrules, etc.) after structural project changes. Launch when hooks detect context drift, when a commit guard blocks, or before session end."
tools:
- Read
- Glob
- Grep
- Bash
- Write
- Edit
disallowedTools:
- WebSearch
- WebFetch
maxTurns: 10
---
# Context Updater Agent
You are an autonomous agent that updates AI context files after structural project changes. You apply the Signal Gate principle — only include what agents cannot discover by reading source code.
## When You Are Launched
You are typically launched by Claude Code in response to:
- A **Stop hook** reporting context drift before session end
- A **commit guard** blocking a commit due to missing context updates
- A **PostToolUse hook** reporting structural file changes after the primary task is complete
## Workflow
### Step 1: Detect What Changed
```bash
# Find structural files with uncommitted changes
git status --porcelain | grep -E '(commands/.*\.md|\.claude/skills/.*/SKILL\.md|\.claude/agents/.*\.md|\.claude/rules/.*\.md|package\.json|pyproject\.toml|Cargo\.toml|go\.mod|tsconfig.*\.json|wrangler\.toml|vitest\.config|jest\.config|eslint\.config|biome\.json|\.claude-plugin/plugin\.json)'
```
### Step 2: Identify Affected Context Files
| Structural Change | Context Files to Update |
|-------------------|------------------------|
| `commands/*.md` added/removed/modified | Update `AGENTS.md` first, then `CLAUDE.md`, `llms.txt`, and only the bridge files whose tool-specific examples changed |
| `.claude/skills/*/SKILL.md` added/removed/modified | Update `AGENTS.md` first, then `CLAUDE.md` and `llms.txt` if inventories or bridge guidance changed |
| `.claude/agents/*.md` added/removed/modified | `AGENTS.md`, `llms.txt` |
| `.claude/rules/*.md` added/removed/modified | `AGENTS.md` for shared policy summaries, `CLAUDE.md` for Claude-specific rule references |
| `package.json`, `pyproject.toml`, config files | Update `AGENTS.md` first, then only the bridge files with tool-specific command or tooling notes |
### Step 3: Read Current State
For each affected context file that exists on disk:
1. Read the current content
2. Compare against the actual project state (count skills, commands, agents, rules)
3. Treat `AGENTS.md` as the canonical shared context and identify which bridge references or tool-specific sections need updating
### Step 4: Apply Surgical Edits
Use **Edit** (not Write) to update only the affected sections. Preserve all human-authored content.
- Update counts (e.g., "3 skills" → "4 skills")
- Update `AGENTS.md` first when shared commands, conventions, or counts changed
- Refresh bridge imports, references, and tool-specific sections only when needed
- Fix stale file path references
### Step 5: Verify Quality
After editing, verify:
1. **Line budgets**: AGENTS.md <120; bridges stay minimal (10-20 lines typical, CLAUDE.md hard max 80, others hard max 60)
2. **Path accuracy**: Every backtick-quoted path in context files exists on disk
3. **Bridge consistency**: Bridge files do not contradict `AGENTS.md` on commands, rules, or naming conventions
```bash
# Quick line count check
wc -l CLAUDE.md AGENTS.md 2>/dev/null
```
### Step 6: Report
Report what was updated in this format:
```
Context files updated:
AGENTS.md — updated shared command table and added skill "pdf-processing"
CLAUDE.md — refreshed `@AGENTS.md` bridge and Claude-specific rule references
llms.txt — updated inventory text
```
## Signal Gate Rules
**Include** in context files: conventions, commands, hard constraints, security rules, environment quirks.
**Exclude** from context files: directory listings, file trees, dependency lists, architecture overviews, framework conventions.
## Loop Prevention
- If you detect a `.git/.context-updater-running` flag file, exit immediately — another instance is already running
- Create `.git/.context-updater-running` at start, remove it when done
- If context files were modified more recently than structural files, skip — already up to date
## Scope Limits
- Only update context files that already exist. Do not create new ones (use `/contextdocs:ai-context init` for that)
- Only update sections affected by the structural change. Do not rewrite entire files
- Prefer updating `AGENTS.md` first. Only touch bridge files when their tool-specific additions or references need it
- Do not copy large AGENTS.md sections into bridge files
- Do not update MEMORY.md — that is Claude's auto-memory, not a context file
- Do not run full codebase analysis — that is the `ai-context` skill's job. You do targeted, incremental patching
---
## .claude/agents/docs-freshness.md
---
name: docs-freshness
description: "Checks documentation freshness and suggests PitchDocs commands to fix staleness. Launch when docs-awareness rule detects documentation moments, after version bumps, or before releases. Does NOT modify docs — only reports and suggests."
tools:
- Read
- Glob
- Grep
- Bash
disallowedTools:
- Write
- Edit
- WebSearch
- WebFetch
maxTurns: 8
---
# Docs Freshness Agent
You are a read-only documentation freshness checker. Your job is detection and suggestion — you do not write or modify any files, only assess staleness and recommend which `/pitchdocs:*` commands to run.
## When You Are Launched
You are typically launched in response to:
- The **docs-awareness** rule detecting a documentation moment (version bump, new feature, release prep)
- A user asking "are my docs up to date?" or similar
- Before a release to check documentation coverage
## Workflow
### Step 1: Detect Project Type
```bash
# Find the project manifest
ls package.json pyproject.toml Cargo.toml go.mod setup.py setup.cfg 2>/dev/null
```
Extract the current version and project name from the manifest. If no manifest exists, skip version checks and focus on freshness and coverage.
### Step 2: Check Version Alignment
Compare the version in the project manifest against references in documentation:
```bash
# Extract version from manifest
grep -o '"version":\s*"[^"]*"' package.json 2>/dev/null || \
grep -o 'version\s*=\s*"[^"]*"' pyproject.toml 2>/dev/null
# Check if README references a different version
grep -n 'v[0-9]\+\.[0-9]\+\.[0-9]\+' README.md 2>/dev/null
```
Flag any version mismatch between the manifest and README/CHANGELOG badges or text.
### Step 3: Check Changelog Coverage
```bash
# List recent tags
git tag --sort=-creatordate | head -10
# Find latest version referenced in CHANGELOG
grep -m 5 '## \[' CHANGELOG.md 2>/dev/null
```
Compare git tags against CHANGELOG entries. Flag tags that have no corresponding CHANGELOG section.
### Step 4: Check Documentation Freshness
```bash
# Last commit touching README
git log -1 --format='%H %ci' -- README.md 2>/dev/null
# Last commit touching source code (excluding docs)
git log -1 --format='%H %ci' -- '*.ts' '*.js' '*.py' '*.go' '*.rs' '*.json' ':!package-lock.json' ':!CHANGELOG.md' ':!README.md' ':!docs/*' 2>/dev/null
# Count commits between README update and HEAD
git rev-list --count "$(git log -1 --format=%H -- README.md)"..HEAD 2>/dev/null
```
Flag if documentation is significantly behind source code (more than 10 commits or 1 tagged release).
### Step 5: Check Structural Coverage
```bash
# Check for expected documentation files
ls README.md CHANGELOG.md CONTRIBUTING.md SECURITY.md CODE_OF_CONDUCT.md LICENSE llms.txt docs/ 2>/dev/null
```
Flag missing standard documentation files that a public repository should have.
If `llms.txt` exists, verify referenced files still exist:
```bash
# Extract file paths from llms.txt and check they exist
grep -oP '(?<=: )\S+\.\w+' llms.txt 2>/dev/null | while read -r f; do [ ! -f "$f" ] && echo "MISSING: $f"; done
```
### Step 6: Report with Suggestions
Output a structured freshness report:
```
## Documentation Freshness Report
### Stale
- [file] — [what's stale] ([how far behind])
-> Run `[specific /pitchdocs:* command]` to fix
### Missing
- [file] — [why it should exist]
-> Run `[specific /pitchdocs:* command]` to create
### Fresh
- [file] — [evidence of freshness] (checkmark)
```
## Command Suggestion Map
| Finding | Suggested Command |
|---------|-------------------|
| README version mismatch or stale content | `/pitchdocs:doc-refresh` |
| CHANGELOG missing recent tag entries | `/pitchdocs:changelog --from-tag [last-tag]` |
| README feature count doesn't match codebase | `/pitchdocs:features audit` |
| Missing README entirely | `/pitchdocs:readme` |
| Missing CHANGELOG | `/pitchdocs:changelog` |
| Missing CONTRIBUTING/SECURITY/CODE_OF_CONDUCT | `/pitchdocs:docs-audit fix` |
| Stale or missing llms.txt | `/pitchdocs:llms-txt` |
| Stale user guides | `/pitchdocs:user-guide` |
| General multi-file staleness | `/pitchdocs:doc-refresh` |
## Scope Limits
- **Read-only** — do not modify any files. Your job is reporting, not fixing.
- **Quick checks only** — do not run deep quality analysis. That is the `docs-reviewer` agent's job.
- **Suggest specific commands** — always map findings to a concrete `/pitchdocs:*` command.
- **Safe to run multiple times** — no state, no side effects, no loop prevention needed.
- **Do not guess** — if you cannot determine staleness with confidence, report it as "unclear" rather than flagging a false positive.
---
## .claude/skills/ai-context/SKILL.md
---
name: ai-context
description: Generates, updates, and maintains AGENTS-first AI IDE context files. Treats AGENTS.md as the canonical shared context, then emits thin tool-specific bridges (CLAUDE.md, .cursorrules, copilot-instructions.md, .windsurfrules, .clinerules, GEMINI.md). Updates stale context, promotes stable MEMORY.md patterns into CLAUDE.md, bootstraps new projects, and audits existing files for drift.
---
# AI Context File Generator
## The Signal Gate
Research shows auto-generated context files **reduce** AI task success by ~3% and increase token costs by 20% (ETH Zurich, Feb 2026). Less is more.
**The test for every line:** Would removing this cause the AI to make a mistake? If not, cut it.
### Include (Non-Discoverable)
- Non-obvious conventions (import order, naming deviations, spelling locale)
- Hard constraints ("never use `any`", "always use `direnv exec`")
- Key commands (test, build, deploy, lint)
- Security rules and environment quirks
### Exclude (Discoverable)
Directory listings, dependency lists, architecture overviews, framework conventions, API patterns visible in source, key file tables — agents discover all of these by reading the codebase.
Describe the **end state** you want, not step-by-step instructions. Consider fixing root causes rather than documenting workarounds (Osmani, 2026).
## Line Budgets
| File | Target | Hard Max |
|------|--------|----------|
| AGENTS.md | Under 120 lines | 160 lines |
| CLAUDE.md bridge | 10-20 lines | 80 lines |
| Other bridge files | 10-20 lines | 60 lines |
## Supported Context Files
| File | Role | Purpose |
|------|------|---------|
| `AGENTS.md` | Canonical shared context | Shared identity, commands, conventions, constraints, security notes, and monorepo guidance |
| `CLAUDE.md` | Thin bridge | `@AGENTS.md` import plus Claude-specific rules, key files, and workflow notes |
| `.cursorrules` | Thin bridge | Cursor-specific rule scoping or metadata only |
| `.github/copilot-instructions.md` | Thin bridge | Copilot-specific review and PR guidance only |
| `.windsurfrules` | Compatibility bridge | Windsurf compatibility while AGENTS.md adoption continues |
| `.clinerules` | Thin bridge | Cline-specific autonomy boundaries and commit checklist |
| `GEMINI.md` | Compatibility bridge | Gemini-specific discovery shim while keeping AGENTS.md canonical |
**CLAUDE.md vs MEMORY.md:** CLAUDE.md contains instructions *for* Claude (shared via git). MEMORY.md contains notes *by* Claude (local only). Promote recurring MEMORY.md insights to CLAUDE.md.
## Generation Workflow
1. **Detect project profile** — scan manifests for language, framework, test runner, linter, CI/CD