opencastle 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencastle",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Write your AI config once, for every assistant and every teammate: compiles instructions, agents, skills, commands and MCP servers for Claude Code, Copilot, Cursor, Windsurf, OpenCode, Codex and Antigravity, shared across your team's repositories.",
|
|
6
6
|
"bin": {
|
|
@@ -12,7 +12,7 @@ To change what the assistants are told, edit here — not the generated files.
|
|
|
12
12
|
|
|
13
13
|
| Path | What it is |
|
|
14
14
|
|------|------------|
|
|
15
|
-
| `project.instructions.md` | The project: stack, structure, commands, routes, environment, and which skill covers which part. `init` wrote it from the code; correct it and add what the code cannot say |
|
|
15
|
+
| `project.instructions.md` | The project: stack, structure, commands, routes, environment, and which skill covers which part. `init` wrote it from the code; correct it and add what the code cannot say. Every assistant always loads it, compiled by `sync` |
|
|
16
16
|
| `stack/*.md` | Details the stack's skills read: the API's endpoints, the database's models and migrations, how tests and browser checks run, how it deploys |
|
|
17
17
|
| `KNOWN-ISSUES.md` | Problems and accepted risks found while working, checked before starting a task |
|
|
18
18
|
| `LESSONS-LEARNED.md` | Index of `lessons/`, one file per lesson, written by `opencastle lesson`. Rewritten by `sync`; never edit it by hand |
|
|
@@ -44,7 +44,10 @@ replaces it; `exclude` in `config.json` drops one.
|
|
|
44
44
|
## Keeping it current
|
|
45
45
|
|
|
46
46
|
Update these files when the project changes — a new table, route, app or
|
|
47
|
-
environment.
|
|
47
|
+
environment. `project.instructions.md` is compiled into what every assistant
|
|
48
|
+
always loads, so run `npx opencastle sync` after editing it; until then the
|
|
49
|
+
assistants have the old version and `sync --check` fails. The other files are
|
|
50
|
+
read when a skill needs them, as they are. A file's "Still to describe" list is what `init` could not read
|
|
48
51
|
from the code; `/oc:bootstrap-customizations` (in Claude Code or Copilot Chat;
|
|
49
52
|
elsewhere, ask for the bootstrap-customizations prompt by name) has an agent fill
|
|
50
53
|
it in.
|
|
@@ -19,7 +19,7 @@ agent: 'Team Lead (OpenCastle)'
|
|
|
19
19
|
|
|
20
20
|
| File | Holds | Read by |
|
|
21
21
|
|------|-------|---------|
|
|
22
|
-
| `.opencastle/project.instructions.md` | Stack, structure, commands, routes, environment, domain → skill map | Every
|
|
22
|
+
| `.opencastle/project.instructions.md` | Stack, structure, commands, routes, environment, domain → skill map | Every session: compiled into what each assistant always loads |
|
|
23
23
|
| `.opencastle/stack/api-config.md` | Endpoints, server actions, middleware, external APIs | `api-patterns` |
|
|
24
24
|
| `.opencastle/stack/<database>-config.md` | Models, migrations, access rules | The database's skill |
|
|
25
25
|
| `.opencastle/stack/<cms>-config.md` | IDs, document types, queries | The CMS's skill |
|
|
@@ -58,12 +58,16 @@ Where only a person can know the answer — a production URL, a team ID behind a
|
|
|
58
58
|
- An ETL, scraping or import pipeline: create `stack/data-pipeline-config.md` — sources, commands, output format, key files.
|
|
59
59
|
- In `agents/agent-registry.md`, keep the Deepen-Plan scopes to directories that exist.
|
|
60
60
|
|
|
61
|
+
### 5. Compile
|
|
62
|
+
|
|
63
|
+
Run `npx opencastle sync`. `project.instructions.md` is part of what every assistant always loads, and they get your changes only once it is compiled. The `stack/` and `project/` files are read when a skill needs them and need no sync.
|
|
64
|
+
|
|
61
65
|
## Rules
|
|
62
66
|
|
|
63
67
|
- **Discover, don't assume.** Read the files; a Next.js app does not imply Supabase.
|
|
64
68
|
- **Names, never values.** Environment variable names only; never read `.env`.
|
|
65
69
|
- **Specific.** Real table names, endpoint paths and file paths — no placeholders, no empty tables.
|
|
66
|
-
- **Short.**
|
|
70
|
+
- **Short.** Every session loads `project.instructions.md` whole; write what an agent needs to act, not a tour of the code, and put detail in the `stack/` files.
|
|
67
71
|
|
|
68
72
|
## Output
|
|
69
73
|
|
|
@@ -5,7 +5,7 @@ description: "Templates for issue docs, ADRs, roadmap entries, changelogs and Me
|
|
|
5
5
|
|
|
6
6
|
# Documentation Standards
|
|
7
7
|
|
|
8
|
-
The project's own documents
|
|
8
|
+
The project's own documents are listed under Key Documentation in `.opencastle/project.instructions.md`.
|
|
9
9
|
|
|
10
10
|
## Templates
|
|
11
11
|
|