You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The single starting point for any agent, in any repository. Before doing anything else, make sure the central workspace exists locally, then read from it.
4
4
5
+
## Main directive
6
+
7
+
Everything is a work in progress and can be updated and improved. Fix a small problem when it is directly in scope; register a larger or unrelated problem as an issue in the repository that owns it.
8
+
5
9
## First — bootstrap the workspace
6
10
7
-
The workspace is a git-isolated clone of the central repositories under `~/.msx`. Set it up (idempotent — clones what is missing, attempts to fast-forward the rest):
11
+
The workspace is a git-isolated clone of the central repositories under `~/.msx`. Set it up before reading context. Existing context repositories must be clean, on their default branch, and exactly synchronized with the remote:
throw "Context synchronization failed. Do not read context until every project is current."
124
+
}
22
125
```
23
126
127
+
Keep the MSXOrg entry and add only the additional project coordinates required by repositories that inherit this template. Every project reuses the same synchronization and validation implementation.
128
+
24
129
This produces:
25
130
26
-
-`~/.msx/docs` — how work is done: ways of working, coding standards, and agent roles. The same content published at <https://msxorg.github.io/docs/>.
131
+
-`~/.msx/docs.git` — bare backing repository for central docs.
132
+
-`~/.msx/docs` — clean, readable main worktree containing ways of working, standards, and workflow guidance.
27
133
-`~/.msx/memory` — what has been learned before: durable notes and prior session context.
28
134
29
135
Each clone has repository-local git config only; it never modifies the global git config or the repository being worked in (git still reads them, but only repository-local config is written).
@@ -32,10 +138,22 @@ Each clone has repository-local git config only; it never modifies the global gi
32
138
33
139
## Then — read before acting
34
140
35
-
1. Read the relevant pages under `~/.msx/docs` for the task at hand.
36
-
2. Read `~/.msx/memory` for prior decisions, pitfalls, and context.
141
+
1. Start at `~/.msx/docs/src/docs/index.md`.
142
+
2. Follow the Ways of Working index to `Workflow.md`.
143
+
3. Infer the current stage from the task and its artifacts, then read the linked stage procedure.
144
+
4. Read the relevant standards, repository context, and `~/.msx/memory`.
145
+
146
+
Clear task language may shortcut the index trail: `Review this PR <link>` enters Review, `Make this issue <description>` enters Define, and `Implement <issue>` enters Implement. The linked documentation owns each procedure; this file does not define a separate agent or skill.
147
+
148
+
## Work in the selected repository
149
+
150
+
1. Read its `README.md` to understand the repository and its build.
151
+
2. Read its `CONTRIBUTING.md` for the contribution and review contract.
152
+
3. Use a dedicated worktree and the branch naming defined by the canonical Ways of Working.
153
+
4. Make small, descriptive micro-commits and push every commit so remote state, CI, and the draft pull request stay current.
154
+
5. Capture verified reusable lessons in organization memory, following that repository's own instructions.
37
155
38
156
## Two write rules
39
157
40
-
-**Docs change through pull requests.**Branch inside `~/.msx/docs` and open a pull request; never push its `main`.
41
-
-**Memory pushes to main.**Commit and push notes directly inside `~/.msx/memory`; no pull request.
158
+
-**Docs change through topic worktrees and pull requests.**Create a topic worktree from `~/.msx/docs.git`; never branch or work inside the canonical `~/.msx/docs` main worktree.
159
+
-**Memory follows repository policy.**Read the selected memory repository's `AGENTS.md` and `CONTRIBUTING.md` before writing.
0 commit comments