Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
4e73944
chore(porch): 1951 init spir
waleedkadous Nov 23, 2026
74cdab6
[Spec 1951] Initial specification draft
waleedkadous Nov 23, 2026
93da5f3
chore(porch): 1951 specify build-complete
waleedkadous Nov 23, 2026
3e1f34e
[Spec 1951] Specification with multi-agent review
waleedkadous Nov 23, 2026
19aff4a
chore(porch): 1951 spec-approval gate-requested
waleedkadous Nov 23, 2026
b128907
chore(porch): 1951 spec-approval gate-approved
waleedkadous Nov 23, 2026
8f5c5f4
chore(porch): 1951 plan phase-transition
waleedkadous Nov 23, 2026
d35fed1
chore(porch): 1951 acknowledge context refresh
waleedkadous Nov 23, 2026
9fbc237
[Spec 1951] Initial implementation plan
waleedkadous Nov 23, 2026
c3fb8e6
chore(porch): 1951 plan build-complete
waleedkadous Nov 23, 2026
cbc82c0
[Spec 1951] Thread log: plan phase
waleedkadous Nov 23, 2026
d213afd
[Spec 1951] Plan with multi-agent review
waleedkadous Nov 23, 2026
97ceaa5
chore(porch): 1951 plan-approval gate-requested
waleedkadous Nov 23, 2026
f33a34c
[Spec 1951] Thread log: plan review
waleedkadous Nov 23, 2026
c619dc2
chore(porch): 1951 plan-approval gate-approved
waleedkadous Nov 23, 2026
beb8f4f
[Spec 1951] Final approved plan (main-36: cleanup uses shared scaffol…
waleedkadous Nov 23, 2026
b6c4ba8
chore(porch): 1951 implement phase-transition
waleedkadous Nov 23, 2026
d119eaa
[Spec 1951] Plan: forge verdict follows mergeable only; reviewDecisio…
waleedkadous Nov 23, 2026
01565e6
[Spec 1951][Phase: forge_read_concepts] feat: forge read concepts for…
waleedkadous Nov 23, 2026
1e135c6
[Spec 1951][Phase: forge_read_concepts] test: gitea pr-view shape car…
waleedkadous Nov 23, 2026
bb2ad27
[Spec 1951] Thread log: Phase 1
waleedkadous Nov 23, 2026
233372f
chore(porch): 1951 implement build-complete
waleedkadous Nov 23, 2026
0448553
[Spec 1951][Phase: forge_read_concepts] fix: review follow-ups — gitl…
waleedkadous Nov 23, 2026
6bc4b18
chore(porch): 1951 advance plan phase → readonly_core
waleedkadous Nov 23, 2026
2a3c23d
chore(porch): 1951 acknowledge context refresh
waleedkadous Nov 23, 2026
7f4dd48
[Spec 1951] Thread log: Phase 1 review
waleedkadous Nov 23, 2026
66b6921
[Spec 1951][Phase: readonly_core] feat: read-only runner, allow-list,…
waleedkadous Nov 23, 2026
9081d43
[Spec 1951] Thread log: Phase 2 built
waleedkadous Nov 23, 2026
89fc6a2
chore(porch): 1951 implement build-complete
waleedkadous Nov 23, 2026
91007fa
[Spec 1951] Commit spec and plan iteration-1 rebuttals
waleedkadous Nov 23, 2026
5dea9be
[Spec 1951][Phase: readonly_core] fix: review iteration 1 — closed st…
waleedkadous Nov 23, 2026
08fd449
chore(porch): 1951 implement re-iter (iter 2)
waleedkadous Nov 23, 2026
9983468
chore(porch): 1951 implement build-complete
waleedkadous Nov 23, 2026
93a87a4
[Spec 1951][Phase: readonly_core] fix: review iteration 2 — closed pe…
waleedkadous Nov 23, 2026
e21d4bb
chore(porch): 1951 implement re-iter (iter 3)
waleedkadous Nov 24, 2026
dcabaaf
[Spec 1951] Thread log: Phase 2 review rounds
waleedkadous Nov 24, 2026
da7f7f1
chore(porch): 1951 implement build-complete
waleedkadous Nov 24, 2026
aa7e34f
[Spec 1951][Phase: readonly_core] fix: review iteration 3 — stub chec…
waleedkadous Nov 24, 2026
c42251e
[Spec 1951][Phase: readonly_core] fix: ext:: refusal case uses no /tm…
waleedkadous Nov 24, 2026
8c9715a
chore(porch): 1951 implement force-advance (safety ceiling reached at…
waleedkadous Nov 24, 2026
360d0eb
chore(porch): 1951 advance plan phase → check_pr_mechanics
waleedkadous Nov 24, 2026
6a03300
[Spec 1951] Thread log: Phase 2 round 3 and force-advance
waleedkadous Nov 24, 2026
ea09967
[Spec 1951] Thread log: unreviewed-commits order
waleedkadous Nov 24, 2026
7eeec98
chore(porch): 1951 acknowledge context refresh
waleedkadous Nov 24, 2026
5bef2f5
[Spec 1951][Phase: check_pr_mechanics] feat: codev check pr — merge m…
waleedkadous Nov 24, 2026
7862069
chore(porch): 1951 implement build-complete
waleedkadous Nov 24, 2026
a1bd59d
chore(porch): 1951 advance plan phase → check_pr_forge
waleedkadous Nov 24, 2026
ac72f4a
[Spec 1951] Thread log: architect's Phase 3 verification on PR #1957
waleedkadous Nov 24, 2026
899e8e9
chore(porch): 1951 acknowledge context refresh
waleedkadous Nov 24, 2026
410d5ec
[Spec 1951][Phase: check_pr_forge] feat: codev check pr — state, forg…
waleedkadous Nov 24, 2026
8bf2a02
chore(porch): 1951 implement build-complete
waleedkadous Nov 24, 2026
e1cece6
[Spec 1951][Phase: check_pr_forge] fix: review iteration 1 — name wha…
waleedkadous Nov 24, 2026
1e29917
chore(porch): 1951 implement re-iter (iter 2)
waleedkadous Nov 24, 2026
82190ef
[Spec 1951] Thread log: architect keeps the mergeable-only forge verdict
waleedkadous Nov 24, 2026
45e4af3
chore(porch): 1951 implement build-complete
waleedkadous Nov 24, 2026
b357fe2
chore(porch): 1951 advance plan phase → check_deploy
waleedkadous Nov 24, 2026
2b59076
[Spec 1951] Thread log: Phase 4 review round 2, both approve
waleedkadous Nov 24, 2026
86a23cc
chore(porch): 1951 acknowledge context refresh
waleedkadous Nov 24, 2026
073790d
[Spec 1951][Phase: check_deploy] feat: codev check deploy — merged, o…
waleedkadous Nov 24, 2026
53f7e65
[Spec 1951] Thread log: Phase 5 check_deploy built, live runs
waleedkadous Nov 24, 2026
9745b63
chore(porch): 1951 implement build-complete
waleedkadous Nov 24, 2026
de04c72
chore(porch): 1951 advance plan phase → check_worktree
waleedkadous Nov 24, 2026
a9766d4
[Spec 1951] Thread log: Phase 5 review, both approve
waleedkadous Nov 24, 2026
5daa17f
chore(porch): 1951 acknowledge context refresh
waleedkadous Nov 24, 2026
b4ae918
Merge origin/main into builder/spir-1951
waleedkadous Nov 24, 2026
ef9502a
[Spec 1951][Phase: check_worktree] fix: Phase 5 review fold-ins in ch…
waleedkadous Nov 24, 2026
b6f7d4d
[Spec 1951][Phase: check_worktree] feat: codev check worktree
waleedkadous Nov 24, 2026
7f583ac
chore(porch): 1951 implement build-complete
waleedkadous Nov 24, 2026
dd21e15
[Spec 1951][Phase: check_worktree] fix: review iteration 1
waleedkadous Nov 24, 2026
95ae544
chore(porch): 1951 implement re-iter (iter 2)
waleedkadous Nov 24, 2026
161f583
chore(porch): 1951 implement build-complete
waleedkadous Nov 24, 2026
a56bf9a
[Spec 1951][Phase: check_worktree] fix: review iteration 2 — keep-lis…
waleedkadous Nov 24, 2026
8a66ff9
chore(porch): 1951 implement re-iter (iter 3)
waleedkadous Nov 24, 2026
71358d5
chore(porch): 1951 implement build-complete
waleedkadous Nov 24, 2026
a1ccc44
[Spec 1951][Phase: check_worktree] fix: review iteration 3 — spawn's …
waleedkadous Nov 24, 2026
9277951
chore(porch): 1951 implement force-advance (safety ceiling reached at…
waleedkadous Nov 24, 2026
68eef57
chore(porch): 1951 advance plan phase → docs_guidance
waleedkadous Nov 24, 2026
d437e74
chore(porch): 1951 acknowledge context refresh
waleedkadous Nov 24, 2026
7f2737b
Merge remote-tracking branch 'origin/main' into builder/spir-1951
waleedkadous Nov 24, 2026
f93aa60
[Spec 1951][Phase: docs_guidance] fix: one spawn-entry rule for clean…
waleedkadous Nov 24, 2026
827eed9
[Spec 1951][Phase: docs_guidance] docs: architect guidance and codev …
waleedkadous Nov 24, 2026
d92a07d
chore(porch): 1951 implement build-complete
waleedkadous Nov 24, 2026
0c02478
[Spec 1951][Phase: docs_guidance] fix: review iteration 1 — cleanup r…
waleedkadous Nov 24, 2026
32d7a57
chore(porch): 1951 implement re-iter (iter 2)
waleedkadous Nov 24, 2026
7f24e7a
chore(porch): 1951 implement build-complete
waleedkadous Nov 24, 2026
09a6c29
chore(porch): 1951 all plan phases complete → review
waleedkadous Nov 24, 2026
7d312a2
chore(porch): 1951 acknowledge context refresh
waleedkadous Nov 24, 2026
017f0ba
[Spec 1951][Phase: review] test: cleanup execFile mocks take the dirt…
waleedkadous Nov 24, 2026
cbd70ec
[Spec 1951] Review: retrospective, consultation dispositions, lessons…
waleedkadous Nov 24, 2026
d97668c
chore(porch): 1951 review build-complete
waleedkadous Nov 24, 2026
d5bc0b2
[Spec 1951][Phase: review] fix: pr review round 1 — a CLEAR describes…
waleedkadous Nov 24, 2026
1a6eb69
[Spec 1951] Review: PR round 1 rebuttal; config-order deviation recor…
waleedkadous Nov 24, 2026
e9baeee
Merge remote-tracking branch 'origin/main' into builder/spir-1951
waleedkadous Nov 24, 2026
30853b1
chore(porch): 1951 pr gate-requested
waleedkadous Nov 24, 2026
5bede63
[Spec 1951] Review: architect-run codex review of d5bc0b227; full loc…
waleedkadous Nov 24, 2026
5d80279
Merge remote-tracking branch 'origin/main' into builder/spir-1951
waleedkadous Nov 24, 2026
41fb24c
[Spec 1951] Review: the check pr run that stopped the gate; second fu…
waleedkadous Nov 24, 2026
80d25fc
Merge remote-tracking branch 'origin/main' into builder/spir-1951
waleedkadous Nov 24, 2026
7b2e06b
[Spec 1951] Thread log: main merged with PR #1964; hashes regenerated…
waleedkadous Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion .claude/skills/codev/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: codev
description: Codev project management CLI — init, adopt, bootstrap-docs, update, and doctor commands. Check this skill before running any `codev` command (except `consult`, `porch`, or `afx` which have their own skills). Use when setting up new projects, adding codev to existing repos, updating framework files, or diagnosing missing dependencies.
description: Codev project management CLI — init, adopt, bootstrap-docs, update, doctor, and the read-only check commands (check pr, check deploy, check worktree). Check this skill before running any `codev` command (except `consult`, `porch`, or `afx` which have their own skills). Use when setting up new projects, adding codev to existing repos, updating framework files, diagnosing missing dependencies, checking whether a PR is ready to merge, whether merged PRs reached the deploy branch, or whether a builder worktree can be removed.
---

# codev - Project Management CLI
Expand All @@ -13,6 +13,9 @@ codev adopt Add codev to the current directory
codev bootstrap-docs Draft the governance docs from this codebase
codev update Update protocols, roles, skills from package
codev doctor Check system dependencies
codev check pr <N> Read-only: is PR N ready to recommend for merge
codev check deploy <N>... Read-only: did merged PRs reach the deploy branch
codev check worktree <id|path> Read-only: would removing a builder worktree lose data
```

## codev init
Expand Down Expand Up @@ -63,6 +66,31 @@ Checks dependencies: Node.js (>=22), git (>=2.5), your forge's CLI and its auth
codev doctor
```

## codev check

Read-only: never merges, pushes, comments, deletes or moves a ref. Verdict on the first line,
then one line per check (`ok`, `ATTN`, `info`, `not run`, `off`, `skip`). Exit 0 clear, 1
something needs attention (a check that could not run counts), 2 the command failed. Works
from the main checkout or any builder worktree.

```bash
codev check pr 42 # before recommending a merge: head, state, mergeability,
# trial merge, CI on the code, attribution, watched files,
# linked issue, size, files to read
codev check deploy 42 43 # after merging: on the deploy branch, in the latest green deploy run
codev check worktree spir-42 # before afx cleanup: would removal lose data
codev check worktree .builders/spir-42 --json # a path works too; --json for agents
```

- Run `codev check pr` before `consult --type integration`: it checks mechanics, the
consultation reviews content.
- `REMOVABLE` means no data would be lost, not that the builder is finished: an open PR is
its own `ATTN` line and makes the exit 1.
- Configuration lives under `check.*` in `.codev/config.json` (`attribution`, `watch`, `flag`,
`notForReading`, `deploy.branch`, `deploy.workflow`, `skip`); the keep list is
`cleanup.keepIgnored`. A bad value is exit 2 naming the key and the file. `codev check --help`
and `codev check <sub> --help` list the subcommands and options.

## Common mistakes

- There is NO `codev tower` command — use `afx tower start/stop`
Expand Down
4 changes: 4 additions & 0 deletions .claude/skills/forge/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Forge concept commands decouple codev from direct `gh` CLI calls. Each GitHub op
| `pr-view` | `CODEV_PR_NUMBER`, `CODEV_INCLUDE_COMMENTS` (optional) | View PR details (JSON or text) |
| `pr-diff` | `CODEV_PR_NUMBER`, `CODEV_DIFF_NAME_ONLY` (optional) | Get PR diff |
| `auth-status` | — | Check forge authentication status |
| `commit-checks` | `CODEV_COMMIT_SHA` | Check results on one commit (JSON array `[{name, state, url?, workflow?}]`; `state` is `pass`, `fail`, `pending`, `skipped` or `neutral`). Read-only, used by `codev check` |
| `workflow-runs` | `CODEV_WORKFLOW`, `CODEV_BRANCH` | Runs of one workflow on one branch, newest first (JSON array `[{headSha, status, conclusion, url, createdAt}]`). Read-only, used by `codev check deploy` |

## Configuration

Expand All @@ -45,6 +47,8 @@ In `.codev/config.json`:

Built-in presets: `github` (default), `gitlab` (via `glab`), `gitea` (via `tea`), `linear` (Linear API), `jira` (Jira Cloud via `acli`). `linear` and `jira` are hybrid: they serve the issue concepts only, and every PR concept falls through to the `gh` default. Jira takes `jira-site` and `jira-project` keys; issue ids are work item keys (`ENG-123`).

`commit-checks` and `workflow-runs` are served by `github` (and by `linear` and `jira`, which use the github default for PR concepts). `gitlab` and `gitea` disable both, so `codev check` there reports `not run: commit-checks unavailable on gitlab` instead of calling `gh`; set an override to enable them.

**Note:** Non-GitHub presets are best-effort. Output schemas may differ from GitHub's JSON contracts. Non-conforming JSON returns `null` — consumers handle this gracefully. Override individual concepts if a preset doesn't match your CLI version.

**`CODEV_REPO` is overloaded.** For `repo-archive` it is an input: the `owner/repo` to download. For the Gitea preset's read concepts (`pr-view`, `pr-list`, `pr-exists`, `issue-view`, `recently-merged`) it is an override — `tea api` needs an explicit `owner/repo` in the endpoint path, which those scripts otherwise derive from the `origin` remote. Set it per invocation, not in your environment: exported globally it retargets every Gitea read at that repo.
Expand Down
30 changes: 29 additions & 1 deletion .codex/skills/codev/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: codev
description: Codev project management CLI — init, adopt, bootstrap-docs, update, and doctor commands. Check this skill before running any `codev` command (except `consult`, `porch`, or `afx` which have their own skills). Use when setting up new projects, adding codev to existing repos, updating framework files, or diagnosing missing dependencies.
description: Codev project management CLI — init, adopt, bootstrap-docs, update, doctor, and the read-only check commands (check pr, check deploy, check worktree). Check this skill before running any `codev` command (except `consult`, `porch`, or `afx` which have their own skills). Use when setting up new projects, adding codev to existing repos, updating framework files, diagnosing missing dependencies, checking whether a PR is ready to merge, whether merged PRs reached the deploy branch, or whether a builder worktree can be removed.
---

# codev - Project Management CLI
Expand All @@ -13,6 +13,9 @@ codev adopt Add codev to the current directory
codev bootstrap-docs Draft the governance docs from this codebase
codev update Update protocols, roles, skills from package
codev doctor Check system dependencies
codev check pr <N> Read-only: is PR N ready to recommend for merge
codev check deploy <N>... Read-only: did merged PRs reach the deploy branch
codev check worktree <id|path> Read-only: would removing a builder worktree lose data
```

## codev init
Expand Down Expand Up @@ -63,6 +66,31 @@ Checks dependencies: Node.js (>=22), git (>=2.5), your forge's CLI and its auth
codev doctor
```

## codev check

Read-only: never merges, pushes, comments, deletes or moves a ref. Verdict on the first line,
then one line per check (`ok`, `ATTN`, `info`, `not run`, `off`, `skip`). Exit 0 clear, 1
something needs attention (a check that could not run counts), 2 the command failed. Works
from the main checkout or any builder worktree.

```bash
codev check pr 42 # before recommending a merge: head, state, mergeability,
# trial merge, CI on the code, attribution, watched files,
# linked issue, size, files to read
codev check deploy 42 43 # after merging: on the deploy branch, in the latest green deploy run
codev check worktree spir-42 # before afx cleanup: would removal lose data
codev check worktree .builders/spir-42 --json # a path works too; --json for agents
```

- Run `codev check pr` before `consult --type integration`: it checks mechanics, the
consultation reviews content.
- `REMOVABLE` means no data would be lost, not that the builder is finished: an open PR is
its own `ATTN` line and makes the exit 1.
- Configuration lives under `check.*` in `.codev/config.json` (`attribution`, `watch`, `flag`,
`notForReading`, `deploy.branch`, `deploy.workflow`, `skip`); the keep list is
`cleanup.keepIgnored`. A bad value is exit 2 naming the key and the file. `codev check --help`
and `codev check <sub> --help` list the subcommands and options.

## Common mistakes

- There is NO `codev tower` command — use `afx tower start/stop`
Expand Down
4 changes: 4 additions & 0 deletions .codex/skills/forge/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Forge concept commands decouple codev from direct `gh` CLI calls. Each GitHub op
| `pr-view` | `CODEV_PR_NUMBER`, `CODEV_INCLUDE_COMMENTS` (optional) | View PR details (JSON or text) |
| `pr-diff` | `CODEV_PR_NUMBER`, `CODEV_DIFF_NAME_ONLY` (optional) | Get PR diff |
| `auth-status` | — | Check forge authentication status |
| `commit-checks` | `CODEV_COMMIT_SHA` | Check results on one commit (JSON array `[{name, state, url?, workflow?}]`; `state` is `pass`, `fail`, `pending`, `skipped` or `neutral`). Read-only, used by `codev check` |
| `workflow-runs` | `CODEV_WORKFLOW`, `CODEV_BRANCH` | Runs of one workflow on one branch, newest first (JSON array `[{headSha, status, conclusion, url, createdAt}]`). Read-only, used by `codev check deploy` |

## Configuration

Expand All @@ -45,6 +47,8 @@ In `.codev/config.json`:

Built-in presets: `github` (default), `gitlab` (via `glab`), `gitea` (via `tea`), `linear` (Linear API), `jira` (Jira Cloud via `acli`). `linear` and `jira` are hybrid: they serve the issue concepts only, and every PR concept falls through to the `gh` default. Jira takes `jira-site` and `jira-project` keys; issue ids are work item keys (`ENG-123`).

`commit-checks` and `workflow-runs` are served by `github` (and by `linear` and `jira`, which use the github default for PR concepts). `gitlab` and `gitea` disable both, so `codev check` there reports `not run: commit-checks unavailable on gitlab` instead of calling `gh`; set an override to enable them.

**Note:** Non-GitHub presets are best-effort. Output schemas may differ from GitHub's JSON contracts. Non-conforming JSON returns `null` — consumers handle this gracefully. Override individual concepts if a preset doesn't match your CLI version.

**`CODEV_REPO` is overloaded.** For `repo-archive` it is an input: the `owner/repo` to download. For the Gitea preset's read concepts (`pr-view`, `pr-list`, `pr-exists`, `issue-view`, `recently-merged`) it is an override — `tea api` needs an explicit `owner/repo` in the endpoint path, which those scripts otherwise derive from the `origin` remote. Set it per invocation, not in your environment: exported globally it retargets every Gitea read at that repo.
Expand Down
30 changes: 29 additions & 1 deletion codev-skeleton/.claude/skills/codev/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: codev
description: Codev project management CLI — init, adopt, bootstrap-docs, update, and doctor commands. Check this skill before running any `codev` command (except `consult`, `porch`, or `afx` which have their own skills). Use when setting up new projects, adding codev to existing repos, updating framework files, or diagnosing missing dependencies.
description: Codev project management CLI — init, adopt, bootstrap-docs, update, doctor, and the read-only check commands (check pr, check deploy, check worktree). Check this skill before running any `codev` command (except `consult`, `porch`, or `afx` which have their own skills). Use when setting up new projects, adding codev to existing repos, updating framework files, diagnosing missing dependencies, checking whether a PR is ready to merge, whether merged PRs reached the deploy branch, or whether a builder worktree can be removed.
---

# codev - Project Management CLI
Expand All @@ -13,6 +13,9 @@ codev adopt Add codev to the current directory
codev bootstrap-docs Draft the governance docs from this codebase
codev update Update protocols, roles, skills from package
codev doctor Check system dependencies
codev check pr <N> Read-only: is PR N ready to recommend for merge
codev check deploy <N>... Read-only: did merged PRs reach the deploy branch
codev check worktree <id|path> Read-only: would removing a builder worktree lose data
```

## codev init
Expand Down Expand Up @@ -63,6 +66,31 @@ Checks dependencies: Node.js (>=22), git (>=2.5), your forge's CLI and its auth
codev doctor
```

## codev check

Read-only: never merges, pushes, comments, deletes or moves a ref. Verdict on the first line,
then one line per check (`ok`, `ATTN`, `info`, `not run`, `off`, `skip`). Exit 0 clear, 1
something needs attention (a check that could not run counts), 2 the command failed. Works
from the main checkout or any builder worktree.

```bash
codev check pr 42 # before recommending a merge: head, state, mergeability,
# trial merge, CI on the code, attribution, watched files,
# linked issue, size, files to read
codev check deploy 42 43 # after merging: on the deploy branch, in the latest green deploy run
codev check worktree spir-42 # before afx cleanup: would removal lose data
codev check worktree .builders/spir-42 --json # a path works too; --json for agents
```

- Run `codev check pr` before `consult --type integration`: it checks mechanics, the
consultation reviews content.
- `REMOVABLE` means no data would be lost, not that the builder is finished: an open PR is
its own `ATTN` line and makes the exit 1.
- Configuration lives under `check.*` in `.codev/config.json` (`attribution`, `watch`, `flag`,
`notForReading`, `deploy.branch`, `deploy.workflow`, `skip`); the keep list is
`cleanup.keepIgnored`. A bad value is exit 2 naming the key and the file. `codev check --help`
and `codev check <sub> --help` list the subcommands and options.

## Common mistakes

- There is NO `codev tower` command — use `afx tower start/stop`
Expand Down
30 changes: 29 additions & 1 deletion codev-skeleton/.codex/skills/codev/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: codev
description: Codev project management CLI — init, adopt, bootstrap-docs, update, and doctor commands. Check this skill before running any `codev` command (except `consult`, `porch`, or `afx` which have their own skills). Use when setting up new projects, adding codev to existing repos, updating framework files, or diagnosing missing dependencies.
description: Codev project management CLI — init, adopt, bootstrap-docs, update, doctor, and the read-only check commands (check pr, check deploy, check worktree). Check this skill before running any `codev` command (except `consult`, `porch`, or `afx` which have their own skills). Use when setting up new projects, adding codev to existing repos, updating framework files, diagnosing missing dependencies, checking whether a PR is ready to merge, whether merged PRs reached the deploy branch, or whether a builder worktree can be removed.
---

# codev - Project Management CLI
Expand All @@ -13,6 +13,9 @@ codev adopt Add codev to the current directory
codev bootstrap-docs Draft the governance docs from this codebase
codev update Update protocols, roles, skills from package
codev doctor Check system dependencies
codev check pr <N> Read-only: is PR N ready to recommend for merge
codev check deploy <N>... Read-only: did merged PRs reach the deploy branch
codev check worktree <id|path> Read-only: would removing a builder worktree lose data
```

## codev init
Expand Down Expand Up @@ -63,6 +66,31 @@ Checks dependencies: Node.js (>=22), git (>=2.5), your forge's CLI and its auth
codev doctor
```

## codev check

Read-only: never merges, pushes, comments, deletes or moves a ref. Verdict on the first line,
then one line per check (`ok`, `ATTN`, `info`, `not run`, `off`, `skip`). Exit 0 clear, 1
something needs attention (a check that could not run counts), 2 the command failed. Works
from the main checkout or any builder worktree.

```bash
codev check pr 42 # before recommending a merge: head, state, mergeability,
# trial merge, CI on the code, attribution, watched files,
# linked issue, size, files to read
codev check deploy 42 43 # after merging: on the deploy branch, in the latest green deploy run
codev check worktree spir-42 # before afx cleanup: would removal lose data
codev check worktree .builders/spir-42 --json # a path works too; --json for agents
```

- Run `codev check pr` before `consult --type integration`: it checks mechanics, the
consultation reviews content.
- `REMOVABLE` means no data would be lost, not that the builder is finished: an open PR is
its own `ATTN` line and makes the exit 1.
- Configuration lives under `check.*` in `.codev/config.json` (`attribution`, `watch`, `flag`,
`notForReading`, `deploy.branch`, `deploy.workflow`, `skip`); the keep list is
`cleanup.keepIgnored`. A bad value is exit 2 naming the key and the file. `codev check --help`
and `codev check <sub> --help` list the subcommands and options.

## Common mistakes

- There is NO `codev tower` command — use `afx tower start/stop`
Expand Down
Loading
Loading