@stdd/plugin 0.9.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-plugin/plugin.json +9 -0
- package/.codex-plugin/plugin.json +21 -0
- package/LICENSE +21 -0
- package/README.md +47 -0
- package/extensions/stdd.mjs +77 -0
- package/hooks/claude-hooks.json +28 -0
- package/hooks/codex-hooks.json +28 -0
- package/package.json +38 -0
- package/runtime/adapters/README.md +158 -0
- package/runtime/cli/check.mjs +555 -0
- package/runtime/cli/ci.mjs +190 -0
- package/runtime/cli/claude-hooks.mjs +689 -0
- package/runtime/cli/config.mjs +27 -0
- package/runtime/cli/evidence.mjs +249 -0
- package/runtime/cli/generated-files.mjs +1693 -0
- package/runtime/cli/held-fs.mjs +415 -0
- package/runtime/cli/init.mjs +883 -0
- package/runtime/cli/ledger.mjs +1470 -0
- package/runtime/cli/lib.mjs +909 -0
- package/runtime/cli/path-bytes.mjs +83 -0
- package/runtime/cli/policy.mjs +112 -0
- package/runtime/cli/recorders.mjs +188 -0
- package/runtime/cli/review-fs.mjs +825 -0
- package/runtime/cli/review.mjs +1065 -0
- package/runtime/cli/runtime.mjs +32 -0
- package/runtime/cli/scope.mjs +185 -0
- package/runtime/cli/snapshot.mjs +897 -0
- package/runtime/cli/state-validation.mjs +168 -0
- package/runtime/cli/status.mjs +580 -0
- package/runtime/cli/stdd.mjs +536 -0
- package/runtime/cli/worker-fs.mjs +971 -0
- package/runtime/cli/worker-metadata.mjs +139 -0
- package/runtime/cli/worker.mjs +779 -0
- package/runtime/method/README.md +634 -0
- package/runtime/method/reference-commands.md +147 -0
- package/runtime/method/reference-generated-state.md +151 -0
- package/runtime/method/reference-integration.md +233 -0
- package/runtime/package.json +65 -0
- package/runtime/playbooks/brainstorming.md +46 -0
- package/runtime/playbooks/debugging.md +36 -0
- package/runtime/playbooks/delegate-slice.md +129 -0
- package/runtime/playbooks/finish-change.md +46 -0
- package/runtime/playbooks/implement.md +26 -0
- package/runtime/playbooks/investigation.md +33 -0
- package/runtime/playbooks/managed-playbooks.json +14 -0
- package/runtime/playbooks/planning.md +177 -0
- package/runtime/playbooks/pr-green.md +50 -0
- package/runtime/playbooks/start-change.md +37 -0
- package/runtime/playbooks/worktrees.md +45 -0
- package/runtime/prebuilds/stdd-fs/darwin-arm64/stdd-fs +0 -0
- package/runtime/prebuilds/stdd-fs/darwin-x64/stdd-fs +0 -0
- package/runtime/prebuilds/stdd-fs/linux-arm64/stdd-fs +0 -0
- package/runtime/prebuilds/stdd-fs/linux-x64/stdd-fs +0 -0
- package/runtime/prebuilds/stdd-fs/manifest.json +47 -0
- package/runtime/prebuilds/stdd-fs/win32-arm64/stdd-fs.exe +0 -0
- package/runtime/prebuilds/stdd-fs/win32-x64/stdd-fs.exe +0 -0
- package/runtime/sdk/adapters.mjs +279 -0
- package/runtime/sdk/file-observation.mjs +12 -0
- package/runtime/sdk/index.d.ts +140 -0
- package/runtime/sdk/index.mjs +31 -0
- package/runtime/sdk/native-fs.mjs +1235 -0
- package/runtime/sdk/path.mjs +71 -0
- package/runtime/sdk/text.mjs +42 -0
- package/runtime/sdk/workflow.mjs +294 -0
- package/runtime/templates/deferred-design.md +47 -0
- package/runtime/templates/github-stdd.yml +42 -0
- package/runtime/templates/gitlab-stdd.yml +72 -0
- package/runtime/templates/pr-description.md +35 -0
- package/scripts/adopting-root.mjs +42 -0
- package/scripts/stdd-hook.mjs +72 -0
- package/skills/stdd-brainstorming/SKILL.md +48 -0
- package/skills/stdd-debugging/SKILL.md +38 -0
- package/skills/stdd-delegate-slice/SKILL.md +118 -0
- package/skills/stdd-finish-change/SKILL.md +40 -0
- package/skills/stdd-implement/SKILL.md +28 -0
- package/skills/stdd-investigation/SKILL.md +35 -0
- package/skills/stdd-planning/SKILL.md +165 -0
- package/skills/stdd-pr-green/SKILL.md +52 -0
- package/skills/stdd-start-change/SKILL.md +39 -0
- package/skills/stdd-worktrees/SKILL.md +46 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stdd-worktrees
|
|
3
|
+
description: "Work in an isolated workspace without fighting the platform's native isolation. Use when: Starting implementation work that should not disturb the user's current checkout."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- generated by stdd plugin build v0.9.0 — do not edit -->
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# Isolated Workspaces
|
|
10
|
+
|
|
11
|
+
## Order of preference
|
|
12
|
+
|
|
13
|
+
1. **Detect existing isolation.** If you are already in a linked worktree or
|
|
14
|
+
a platform-managed sandbox, use it. Never nest worktrees. (Check:
|
|
15
|
+
`git rev-parse --git-dir` differs from `--git-common-dir`, and you are not
|
|
16
|
+
in a submodule.)
|
|
17
|
+
2. **Use the platform's native worktree tool** if one exists. Manual
|
|
18
|
+
`git worktree add` alongside a native tool creates state the platform
|
|
19
|
+
cannot see or clean up.
|
|
20
|
+
3. **Fall back to `git worktree add`** only when neither applies:
|
|
21
|
+
- Put worktrees in a dedicated ignored directory (`.worktrees/` at the
|
|
22
|
+
repo root by default).
|
|
23
|
+
- Verify the directory is git-ignored **before** creating the worktree;
|
|
24
|
+
add it to `.gitignore` first if not.
|
|
25
|
+
- Branch from the repository's integration branch unless told otherwise.
|
|
26
|
+
|
|
27
|
+
## After creating
|
|
28
|
+
|
|
29
|
+
- Run the project's dependency setup (install, build) so the workspace is
|
|
30
|
+
self-sufficient.
|
|
31
|
+
- Run `stdd doctor --readiness` before trusting any verification output in
|
|
32
|
+
a fresh worktree — a missing install or unbuilt package produces phantom
|
|
33
|
+
failures that look like your change broke something.
|
|
34
|
+
- Untracked and gitignored files (env files, credentials, build output)
|
|
35
|
+
exist per checkout — a fresh worktree never has them.
|
|
36
|
+
- Run the narrowest baseline verification before changing anything. If the
|
|
37
|
+
baseline is already red, report it and ask before proceeding — otherwise
|
|
38
|
+
you cannot tell your breakage from pre-existing breakage.
|
|
39
|
+
|
|
40
|
+
## Shared state warnings
|
|
41
|
+
|
|
42
|
+
- The git stash stack is shared across all worktrees of one repository.
|
|
43
|
+
Prefer a temporary WIP commit over stashing; if you must stash, tag the
|
|
44
|
+
entry and apply (not pop) by its SHA.
|
|
45
|
+
- Never `cd` out of your assigned worktree into the main checkout to "fix
|
|
46
|
+
something quickly" — open work there belongs to someone else.
|