@theglitchking/babel-fish 2.0.3 → 2.4.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.
- package/.claude/project-map/generate.py +258 -22
- package/.claude/project-map/grader.py +77 -1
- package/.claude/project-map/mine-sessions.py +141 -23
- package/.claude/project-map/test_generate.py +267 -0
- package/.claude/project-map/test_grader.py +164 -0
- package/.claude/project-map/test_mine_sessions.py +206 -0
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/.githooks/pre-commit +2 -1
- package/CHANGELOG.md +248 -0
- package/README.md +9 -2
- package/checksums.json +2 -2
- package/hooks/session-start.js +34 -1
- package/package.json +13 -4
- package/.claude/project-map/PROJECT_MAP.md +0 -61
- package/.claude/project-map/__pycache__/generate.cpython-312.pyc +0 -0
- package/.claude/project-map/checksums.json +0 -6
- package/.claude/project-map/learned-vocabulary.json +0 -1
- package/.claude/project-map/reports/install-report.md +0 -54
- package/.claude/project-map/reports/iteration-01-report.md +0 -54
- package/.claude/project-map/reports/iteration-01-score.json +0 -7
- package/.claude/project-map/sections/01-vocabulary.md +0 -8
- package/.claude/project-map/sections/02-service-topology.md +0 -6
- package/.claude/project-map/sections/03-environment.md +0 -6
- package/.claude/project-map/sections/04-api-routes.md +0 -6
- package/.claude/project-map/sections/05-data-models.md +0 -4
- package/.claude/project-map/sections/06-schemas.md +0 -4
- package/.claude/project-map/sections/07-services.md +0 -6
- package/.claude/project-map/sections/08-background-jobs.md +0 -5
- package/.claude/project-map/sections/09-frontend-features.md +0 -4
- package/.claude/project-map/sections/10-tools-commands.md +0 -8
- package/.claude/project-map/sections/11-migrations.md +0 -4
- package/.claude/project-map/sections/12-import-chains.md +0 -7
- package/.claude/project-map/sections/13-frontend-backend-map.md +0 -8
- package/.claude/project-map/sections/14-reverse-proxy.md +0 -4
- package/.claude/project-map/sections/15-auth-config.md +0 -6
- package/.claude/project-map/sections/16-infra-profile.md +0 -13
- package/.claude/project-map/sections/17-learned-vocabulary.md +0 -7
- package/.claude/project-map/sections/18-dead-code.md +0 -9
- package/.claude/project-map/sections/19-doc-pointers.md +0 -5
- package/.claude/project-map/stack.json +0 -12
- package/.claude/rules/operational-runbook.md +0 -40
- package/.claude/rules/project-vocabulary.md +0 -25
- package/.claude/settings.json +0 -6
- package/.claude/settings.local.json +0 -6
- package/.claude/skills/babel-fish-developer-skill/SKILL.md +0 -56
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[](https://github.com/TheGlitchKing/babel-fish)
|
|
10
10
|
|
|
11
11
|
> [!NOTE]
|
|
12
|
-
> **Pairs with [`semantic-memory`](https://github.com/TheGlitchKing/semantic-sidekick) (formerly `semantic-sidekick`).** When both are installed, semantic-memory consumes babel-fish's auto-generated `.
|
|
12
|
+
> **Pairs with [`semantic-memory`](https://github.com/TheGlitchKing/semantic-sidekick) (formerly `semantic-sidekick`).** When both are installed, semantic-memory consumes babel-fish's auto-generated `.claude/project-map/` output as a `project-map` corpus AND reads the structured `glossary.json` babel-fish emits alongside it. That gives your AI a deterministic `translate("deals page") → "features/deal-pipeline/DealPipeline.tsx"` MCP verb instead of relying on semantic-search-luck. See [`.documentation/api/glossary-contract.md`](./.documentation/api/glossary-contract.md) for the producer/consumer data contract and [`.documentation/quickstart/integration-with-semantic-memory.md`](./.documentation/quickstart/integration-with-semantic-memory.md) for the setup walkthrough. babel-fish standalone behavior is unchanged — semantic-memory is purely additive.
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -200,7 +200,14 @@ python .claude/project-map/grader.py
|
|
|
200
200
|
|
|
201
201
|
## Learned Vocabulary
|
|
202
202
|
|
|
203
|
-
Every AI session is mined for vocabulary. When you say "the numbers page" and the AI opens `DealAnalyzerV2.tsx`, that alias is recorded with a score (frequency × recency). Aliases with a score ≥ 5 appear in `17-learned-vocabulary.md
|
|
203
|
+
Every AI session is mined for vocabulary. When you say "the numbers page" and the AI opens `DealAnalyzerV2.tsx`, that alias is recorded with a score (frequency × recency). Aliases with a score ≥ 5 appear in `17-learned-vocabulary.md`.
|
|
204
|
+
|
|
205
|
+
Mining runs automatically at session start *(2.2.0+)*, detached and best-effort — it never delays or blocks a session. Only transcripts changed since the last run are read.
|
|
206
|
+
|
|
207
|
+
Two things to expect:
|
|
208
|
+
|
|
209
|
+
- **Aliases land one session late.** A session's transcript isn't written until it ends, so what you say today is mined at the *next* session start.
|
|
210
|
+
- **Operational sessions mine little.** The miner learns feature nouns — "the deals page", "the billing workflow". A session spent on refactoring or releases contains few of those and will correctly yield nothing. See [learned vocabulary is empty](./.documentation/troubleshooting/learned-vocabulary-empty.md).
|
|
204
211
|
|
|
205
212
|
Run the miner manually:
|
|
206
213
|
|
package/checksums.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"install_sh": "
|
|
3
|
-
"note": "SHA256 of .claude/install.sh
|
|
2
|
+
"install_sh": "565ad35c264c8e683ade82f441ab5a9f8feb3921e0b4180623bb038b23452518",
|
|
3
|
+
"note": "SHA256 of .claude/install.sh \u2014 verified by the remote installer before execution"
|
|
4
4
|
}
|
package/hooks/session-start.js
CHANGED
|
@@ -1,11 +1,44 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// babel-fish SessionStart hook. Runs the runtime's update check per
|
|
3
|
-
// policy (off / nudge / auto)
|
|
3
|
+
// policy (off / nudge / auto), then kicks off session vocabulary mining.
|
|
4
4
|
|
|
5
5
|
import { runSessionStart } from "@theglitchking/claude-plugin-runtime";
|
|
6
|
+
import { spawn, spawnSync } from "node:child_process";
|
|
7
|
+
import { existsSync } from "node:fs";
|
|
8
|
+
import { join } from "node:path";
|
|
9
|
+
|
|
10
|
+
// Mining is best-effort: it must never delay or fail session start, so it is
|
|
11
|
+
// detached with output discarded and nothing is awaited. It reads only
|
|
12
|
+
// transcripts changed since the last run (see mine-sessions.py's cursor).
|
|
13
|
+
//
|
|
14
|
+
// Timing: SessionStart sees transcripts through the PREVIOUS session — the
|
|
15
|
+
// current one isn't written yet — so an alias lands one session after it is
|
|
16
|
+
// first used. Accepted; a SessionEnd hook would be exact but is a second hook
|
|
17
|
+
// for one session of latency.
|
|
18
|
+
function mineVocabulary(cwd) {
|
|
19
|
+
try {
|
|
20
|
+
const script = join(cwd, ".claude", "project-map", "mine-sessions.py");
|
|
21
|
+
if (!existsSync(script)) return; // marketplace install that skipped the copy
|
|
22
|
+
|
|
23
|
+
const python = ["python3", "python"].find(
|
|
24
|
+
(bin) => spawnSync(bin, ["--version"], { stdio: "ignore" }).status === 0
|
|
25
|
+
);
|
|
26
|
+
if (!python) return; // no interpreter — nothing to do, and nothing to say
|
|
27
|
+
|
|
28
|
+
spawn(python, [script], {
|
|
29
|
+
cwd,
|
|
30
|
+
detached: true,
|
|
31
|
+
stdio: "ignore",
|
|
32
|
+
}).unref();
|
|
33
|
+
} catch {
|
|
34
|
+
// never surface: a mining failure must not affect session start
|
|
35
|
+
}
|
|
36
|
+
}
|
|
6
37
|
|
|
7
38
|
await runSessionStart({
|
|
8
39
|
packageName: "@theglitchking/babel-fish",
|
|
9
40
|
pluginName: "babel-fish",
|
|
10
41
|
configFile: "babel-fish.json",
|
|
11
42
|
});
|
|
43
|
+
|
|
44
|
+
mineVocabulary(process.cwd());
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theglitchking/babel-fish",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Gives your AI coding assistant instant, accurate knowledge of every route, model, service, feature, and infrastructure element in your codebase.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"babel-fish": "bin/babel-fish.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"postinstall": "node scripts/link-skills.js"
|
|
10
|
+
"postinstall": "node scripts/link-skills.js",
|
|
11
|
+
"test": "python3 .claude/project-map/test_generate.py && python3 .claude/project-map/test_mine_sessions.py && python3 .claude/project-map/test_grader.py"
|
|
11
12
|
},
|
|
12
13
|
"files": [
|
|
13
14
|
"bin/",
|
|
@@ -15,11 +16,19 @@
|
|
|
15
16
|
"hooks/",
|
|
16
17
|
"scripts/link-skills.js",
|
|
17
18
|
".claude-plugin/",
|
|
18
|
-
".claude/",
|
|
19
|
+
".claude/install.sh",
|
|
20
|
+
".claude/scripts/",
|
|
21
|
+
".claude/templates/",
|
|
22
|
+
".claude/project-map/generate.py",
|
|
23
|
+
".claude/project-map/grader.py",
|
|
24
|
+
".claude/project-map/mine-sessions.py",
|
|
25
|
+
".claude/project-map/test_generate.py",
|
|
26
|
+
".claude/project-map/test_mine_sessions.py",
|
|
27
|
+
".claude/project-map/test_grader.py",
|
|
19
28
|
".githooks/",
|
|
20
29
|
"skills/",
|
|
21
30
|
"install.sh",
|
|
22
|
-
"checksums.json",
|
|
31
|
+
"./checksums.json",
|
|
23
32
|
"LICENSE",
|
|
24
33
|
"README.md",
|
|
25
34
|
"CHANGELOG.md"
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# babel-fish — Project Map
|
|
2
|
-
|
|
3
|
-
> Auto-generated by `generate.py` on 2026-04-01 20:29. Do not edit manually.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Stats
|
|
7
|
-
|
|
8
|
-
| Metric | Count |
|
|
9
|
-
|--------|-------|
|
|
10
|
-
| API Routes | 0 |
|
|
11
|
-
| Data Models | 0 |
|
|
12
|
-
| Schemas/DTOs | 0 |
|
|
13
|
-
| Frontend Features | 0 |
|
|
14
|
-
| Migrations | 0 |
|
|
15
|
-
| Docker Services | 0 |
|
|
16
|
-
| Vocabulary Entries | 0 |
|
|
17
|
-
| Stack | unknown / unknown |
|
|
18
|
-
|
|
19
|
-
## Section Index
|
|
20
|
-
|
|
21
|
-
| # | Section | Size | When to Read |
|
|
22
|
-
|---|---------|------|--------------|
|
|
23
|
-
| [01](sections/01-vocabulary.md) | 01 Vocabulary | 0.3 KB | Any task — start here if you don't know where the code lives |
|
|
24
|
-
| [02](sections/02-service-topology.md) | 02 Service Topology | 0.1 KB | Debugging connectivity, adding a service, understanding ports |
|
|
25
|
-
| [03](sections/03-environment.md) | 03 Environment | 0.1 KB | Environment setup, missing vars, config issues |
|
|
26
|
-
| [04](sections/04-api-routes.md) | 04 Api Routes | 0.1 KB | Adding/editing API endpoints, checking what routes exist |
|
|
27
|
-
| [05](sections/05-data-models.md) | 05 Data Models | 0.1 KB | Changing database schema, adding fields, understanding relations |
|
|
28
|
-
| [06](sections/06-schemas.md) | 06 Schemas | 0.1 KB | Adding DTOs, changing request/response shapes |
|
|
29
|
-
| [07](sections/07-services.md) | 07 Services | 0.1 KB | Adding service logic, understanding service boundaries |
|
|
30
|
-
| [08](sections/08-background-jobs.md) | 08 Background Jobs | 0.1 KB | Working with background jobs, queues, scheduled tasks |
|
|
31
|
-
| [09](sections/09-frontend-features.md) | 09 Frontend Features | 0.1 KB | Frontend feature work, understanding UI structure |
|
|
32
|
-
| [10](sections/10-tools-commands.md) | 10 Tools Commands | 0.3 KB | Available commands, scripts, developer tooling |
|
|
33
|
-
| [11](sections/11-migrations.md) | 11 Migrations | 0.1 KB | Database migrations, schema history |
|
|
34
|
-
| [12](sections/12-import-chains.md) | 12 Import Chains | 0.2 KB | Tracing data flow from HTTP request to DB |
|
|
35
|
-
| [13](sections/13-frontend-backend-map.md) | 13 Frontend Backend Map | 0.1 KB | Understanding which frontend calls which backend endpoint |
|
|
36
|
-
| [14](sections/14-reverse-proxy.md) | 14 Reverse Proxy | 0.1 KB | Proxy routing, nginx/caddy config |
|
|
37
|
-
| [15](sections/15-auth-config.md) | 15 Auth Config | 0.1 KB | Auth flow, sessions, permissions |
|
|
38
|
-
| [16](sections/16-infra-profile.md) | 16 Infra Profile | 0.3 KB | Infrastructure overview, tech stack summary |
|
|
39
|
-
| [17](sections/17-learned-vocabulary.md) | 17 Learned Vocabulary | 0.2 KB | Vocabulary learned from past sessions |
|
|
40
|
-
| [18](sections/18-dead-code.md) | 18 Dead Code | 0.2 KB | Dead code review |
|
|
41
|
-
| [19](sections/19-doc-pointers.md) | 19 Doc Pointers | 0.1 KB | Finding documentation, READMEs, wikis |
|
|
42
|
-
|
|
43
|
-
## Quick Routing
|
|
44
|
-
|
|
45
|
-
| Task | Read Sections |
|
|
46
|
-
|------|--------------|
|
|
47
|
-
| Feature / UX work | 01 → 09 → 04 |
|
|
48
|
-
| Add model or field | 05 → 06 → 12 |
|
|
49
|
-
| Troubleshoot error | 02 → 03 → 14 |
|
|
50
|
-
| Infrastructure / scaling | 16 → 02 |
|
|
51
|
-
| Auth / security | 15 → 19 |
|
|
52
|
-
| What tools exist | 10 |
|
|
53
|
-
| Background jobs | 08 |
|
|
54
|
-
| Migration history | 11 |
|
|
55
|
-
|
|
56
|
-
## Regenerate
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
python .claude/project-map/generate.py # skip if unchanged
|
|
60
|
-
python .claude/project-map/generate.py --force # always regenerate
|
|
61
|
-
```
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Codebase Mapper — Installation Report
|
|
2
|
-
|
|
3
|
-
**Generated**: 2026-03-31 11:00:17
|
|
4
|
-
**Iteration**: 1 of 3
|
|
5
|
-
**Score**: 97.0%
|
|
6
|
-
**Result**: ✅ PASSED (90% threshold)
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## Scoring Breakdown
|
|
11
|
-
|
|
12
|
-
| Category | Score | Weight | Weighted | Status |
|
|
13
|
-
|----------|-------|--------|----------|--------|
|
|
14
|
-
| Section Completeness | 100.0% | 25% | 25.0 | ✅ 19/19 sections present |
|
|
15
|
-
| Vocabulary Accuracy | 100.0% | 20% | 20.0 | ✅ 1/1 entries have valid file references |
|
|
16
|
-
| Import Chain Validity | 80.0% | 15% | 12.0 | ⚠️ No chains traced (greenfield or non-Python stack — ok) |
|
|
17
|
-
| Secret Safety | 100.0% | 15% | 15.0 | ✅ Checked 20 files — 0 potential leak(s) |
|
|
18
|
-
| Section Size Bounds | 100.0% | 10% | 10.0 | ✅ 19 sections, 0 size violations |
|
|
19
|
-
| Structural Integrity | 100.0% | 10% | 10.0 | ✅ 0 broken TOC links, 0 structural issues |
|
|
20
|
-
| Checksum Functionality | 100.0% | 5% | 5.0 | ✅ checksums.json valid (hash: e3b0c44298fc...) |
|
|
21
|
-
|
|
22
|
-
**Total: 97.0 / 100**
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## Issues Found
|
|
27
|
-
|
|
28
|
-
_No issues found._
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## Final Verdict
|
|
33
|
-
|
|
34
|
-
✅ **PASSED (97.0%)** — Map is production-ready.
|
|
35
|
-
|
|
36
|
-
The project map meets quality standards and is ready to use.
|
|
37
|
-
Future sessions will load relevant sections automatically via the developer skill.
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
## How to Use the Project Map
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
# Read the map index
|
|
45
|
-
cat .claude/project-map/PROJECT_MAP.md
|
|
46
|
-
|
|
47
|
-
# Force regeneration
|
|
48
|
-
python .claude/project-map/generate.py --force
|
|
49
|
-
|
|
50
|
-
# Re-run grader
|
|
51
|
-
python .claude/project-map/grader.py
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
_Report generated by `grader.py` — part of the Codebase Mapper plugin._
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Codebase Mapper — Installation Report
|
|
2
|
-
|
|
3
|
-
**Generated**: 2026-03-31 11:00:17
|
|
4
|
-
**Iteration**: 1 of 3
|
|
5
|
-
**Score**: 97.0%
|
|
6
|
-
**Result**: ✅ PASSED (90% threshold)
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## Scoring Breakdown
|
|
11
|
-
|
|
12
|
-
| Category | Score | Weight | Weighted | Status |
|
|
13
|
-
|----------|-------|--------|----------|--------|
|
|
14
|
-
| Section Completeness | 100.0% | 25% | 25.0 | ✅ 19/19 sections present |
|
|
15
|
-
| Vocabulary Accuracy | 100.0% | 20% | 20.0 | ✅ 1/1 entries have valid file references |
|
|
16
|
-
| Import Chain Validity | 80.0% | 15% | 12.0 | ⚠️ No chains traced (greenfield or non-Python stack — ok) |
|
|
17
|
-
| Secret Safety | 100.0% | 15% | 15.0 | ✅ Checked 20 files — 0 potential leak(s) |
|
|
18
|
-
| Section Size Bounds | 100.0% | 10% | 10.0 | ✅ 19 sections, 0 size violations |
|
|
19
|
-
| Structural Integrity | 100.0% | 10% | 10.0 | ✅ 0 broken TOC links, 0 structural issues |
|
|
20
|
-
| Checksum Functionality | 100.0% | 5% | 5.0 | ✅ checksums.json valid (hash: e3b0c44298fc...) |
|
|
21
|
-
|
|
22
|
-
**Total: 97.0 / 100**
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## Issues Found
|
|
27
|
-
|
|
28
|
-
_No issues found._
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## Final Verdict
|
|
33
|
-
|
|
34
|
-
✅ **PASSED (97.0%)** — Map is production-ready.
|
|
35
|
-
|
|
36
|
-
The project map meets quality standards and is ready to use.
|
|
37
|
-
Future sessions will load relevant sections automatically via the developer skill.
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
## How to Use the Project Map
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
# Read the map index
|
|
45
|
-
cat .claude/project-map/PROJECT_MAP.md
|
|
46
|
-
|
|
47
|
-
# Force regeneration
|
|
48
|
-
python .claude/project-map/generate.py --force
|
|
49
|
-
|
|
50
|
-
# Re-run grader
|
|
51
|
-
python .claude/project-map/grader.py
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
_Report generated by `grader.py` — part of the Codebase Mapper plugin._
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Section 10 — Tools & Commands
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
| Name | Command | Source |
|
|
5
|
-
|------|---------|--------|
|
|
6
|
-
| `postinstall` | `npm run postinstall` | package.json |
|
|
7
|
-
| `install.sh` | `bash install.sh` | shell |
|
|
8
|
-
| `/babel-fish-developer-skill` | `/babel-fish-developer-skill` | skills |
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Section 16 — Infrastructure Profile
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
| Property | Value |
|
|
5
|
-
|----------|-------|
|
|
6
|
-
| **Language** | unknown |
|
|
7
|
-
| **Framework** | unknown |
|
|
8
|
-
| **Database** | unknown |
|
|
9
|
-
| **ORM** | unknown |
|
|
10
|
-
| **Auth** | unknown |
|
|
11
|
-
| **Package Manager** | unknown |
|
|
12
|
-
| **Infrastructure** | none |
|
|
13
|
-
| **Services** | 0 docker services |
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "babel-fish",
|
|
3
|
-
"slug": "babel-fish",
|
|
4
|
-
"language": "unknown",
|
|
5
|
-
"framework": "unknown",
|
|
6
|
-
"database": "unknown",
|
|
7
|
-
"orm": "unknown",
|
|
8
|
-
"auth": "unknown",
|
|
9
|
-
"package_manager": "unknown",
|
|
10
|
-
"infrastructure": "none",
|
|
11
|
-
"project_root": "/mnt/e/the-glitch-kingdom/babel-fish"
|
|
12
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# babel-fish — Operational Runbook
|
|
2
|
-
|
|
3
|
-
> Auto-loaded every session. Contains operational knowledge that cannot be derived from code.
|
|
4
|
-
> This file grows over time as the team discovers gotchas, quirks, and procedures.
|
|
5
|
-
> **Edit this file manually** — it is NOT overwritten on regeneration.
|
|
6
|
-
|
|
7
|
-
## Environment Differences
|
|
8
|
-
|
|
9
|
-
<!-- TODO: Document how dev/staging/prod differ (DB, deploy method, secrets, URLs) -->
|
|
10
|
-
|
|
11
|
-
| | Dev | Staging | Production |
|
|
12
|
-
|---|---|---|---|
|
|
13
|
-
| **URL** | | | |
|
|
14
|
-
| **Database** | | | |
|
|
15
|
-
| **Deploy** | | | |
|
|
16
|
-
| **Secrets** | | | |
|
|
17
|
-
|
|
18
|
-
## Known Issues & Workarounds
|
|
19
|
-
|
|
20
|
-
<!-- This section fills in naturally. When you hit a non-obvious issue, add it here. -->
|
|
21
|
-
<!-- Examples: "HMR doesn't work on WSL2", "port 6543 breaks migrations" -->
|
|
22
|
-
|
|
23
|
-
_No known issues documented yet. When you encounter a non-obvious problem and its solution, add it here so future sessions don't re-discover it._
|
|
24
|
-
|
|
25
|
-
## Deploy Procedures
|
|
26
|
-
|
|
27
|
-
<!-- TODO: Document how to deploy to each environment -->
|
|
28
|
-
|
|
29
|
-
## Key Commands
|
|
30
|
-
|
|
31
|
-
| Command | What It Does |
|
|
32
|
-
|---------|-------------|
|
|
33
|
-
| `python .claude/project-map/generate.py --force` | Force-regenerate project map |
|
|
34
|
-
| `python .claude/project-map/grader.py` | Grade map quality (0-100%) |
|
|
35
|
-
| `bash .githooks/install.sh` | (Re)install git hooks |
|
|
36
|
-
| `bash .claude/install.sh` | Re-run full plugin installer |
|
|
37
|
-
|
|
38
|
-
## Dev Credentials
|
|
39
|
-
|
|
40
|
-
<!-- Add test/dev credentials here (NEVER production secrets) -->
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# babel-fish — Project Vocabulary
|
|
2
|
-
|
|
3
|
-
> Auto-loaded every session. Maps human language to exact code locations.
|
|
4
|
-
> Regenerated automatically via pre-commit hook. Do not edit the auto-generated rows.
|
|
5
|
-
|
|
6
|
-
## Feature → Code Location
|
|
7
|
-
|
|
8
|
-
| You Say | Frontend | Backend | Model/Table |
|
|
9
|
-
|---------|----------|---------|-------------|
|
|
10
|
-
| _(vocabulary populates as source code is added)_ | | | |
|
|
11
|
-
|
|
12
|
-
## Infrastructure Vocabulary
|
|
13
|
-
|
|
14
|
-
| You Say | What It Is | Key Details |
|
|
15
|
-
|---------|-----------|-------------|
|
|
16
|
-
| project | babel-fish | unknown / unknown stack |
|
|
17
|
-
|
|
18
|
-
## Quick Actions
|
|
19
|
-
|
|
20
|
-
| You Say | What To Do |
|
|
21
|
-
|---------|-----------|
|
|
22
|
-
| regenerate map | `python .claude/project-map/generate.py --force` |
|
|
23
|
-
| grade map | `python .claude/project-map/grader.py` |
|
|
24
|
-
| view project map | `cat .claude/project-map/PROJECT_MAP.md` |
|
|
25
|
-
| install hooks | `bash .githooks/install.sh` |
|
package/.claude/settings.json
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: babel-fish-developer-skill
|
|
3
|
-
description: |
|
|
4
|
-
Full-stack developer context for babel-fish (unknown/unknown).
|
|
5
|
-
Provides instant access to project map, vocabulary translation, and infrastructure details.
|
|
6
|
-
Invoke when working on any babel-fish feature, bug, or infrastructure task.
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /babel-fish-developer — babel-fish Developer Context
|
|
10
|
-
|
|
11
|
-
You are a developer working on **babel-fish**. This skill gives you complete
|
|
12
|
-
knowledge of every route, model, service, feature, and infrastructure component
|
|
13
|
-
via an auto-generated project map.
|
|
14
|
-
|
|
15
|
-
## On Trigger — Load Only What You Need
|
|
16
|
-
|
|
17
|
-
The project map is split into section files at `.claude/project-map/sections/`.
|
|
18
|
-
Do NOT read them all. Start with:
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
Read: .claude/project-map/PROJECT_MAP.md
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Use the Quick Routing table to pick which 2-3 sections to load.
|
|
25
|
-
|
|
26
|
-
## Section Routing
|
|
27
|
-
|
|
28
|
-
| Task | Read These Sections |
|
|
29
|
-
|------|-------------------|
|
|
30
|
-
| Feature / UX work | 01-vocabulary → 09-frontend → 04-routes |
|
|
31
|
-
| Add a model or field | 05-models → 06-schemas → 12-import-chains |
|
|
32
|
-
| Troubleshoot error | 02-topology → 03-environment → 14-proxy |
|
|
33
|
-
| Infrastructure / scaling | 16-infra-profile → 02-topology |
|
|
34
|
-
| Auth / security | 15-auth-config → 19-doc-pointers |
|
|
35
|
-
| What tools exist | 10-tools-commands |
|
|
36
|
-
| Background jobs | 08-background-jobs |
|
|
37
|
-
|
|
38
|
-
## Platform Quick Reference
|
|
39
|
-
|
|
40
|
-
- **Stack**: unknown / unknown
|
|
41
|
-
- **Map**: `.claude/project-map/PROJECT_MAP.md`
|
|
42
|
-
|
|
43
|
-
## Keeping the Map Current
|
|
44
|
-
|
|
45
|
-
Regenerates automatically via pre-commit hook.
|
|
46
|
-
Force: `python .claude/project-map/generate.py --force`
|
|
47
|
-
|
|
48
|
-
## Growing the Runbook
|
|
49
|
-
|
|
50
|
-
When you encounter a non-obvious operational issue, suggest adding it:
|
|
51
|
-
|
|
52
|
-
> "This looks like operational knowledge worth documenting. Want me to add it
|
|
53
|
-
> to the runbook? (Y/n)"
|
|
54
|
-
|
|
55
|
-
If agreed, append a concise entry (symptom → cause → fix) to
|
|
56
|
-
`.claude/rules/operational-runbook.md`.
|