| name | ccctx-review |
| description | Review ccctx changes for correctness, regressions, security, tests, documentation, and release readiness. Use when asked to review pull requests, diffs, commits, branches, or proposed changes in this repository, especially changes touching Go CLI behavior, profile storage, Claude Code credential handling, exec isolation, docs, CI, or project skills. |
ccctx Review
Review as a maintainer of this repository. Prioritize findings over summary.
Context To Read
README.md
CONTRIBUTING.md
docs/architecture.md
docs/development.md
llms.txt
internal/ccctx/app.go
internal/ccctx/app_test.go
- files changed in the diff
Review Workflow
- Inspect the diff first with
git diff or the provided patch.
- Read surrounding implementation before deciding whether a change is wrong.
- Run targeted tests when possible, then
go test ./... and go vet ./... for broader changes.
- If skills or Claude plugin files changed, run
claude plugin validate . --strict when the claude CLI is available.
- Report findings first, ordered by severity, with file and line references.
- Include test gaps or residual risk after findings.
Invariants
- Saved Claude config, credential, and pi auth snapshots are sensitive. Do not print tokens or full credential payloads.
- Profile and credential files must use owner-only permissions.
- Switching pi auth must preserve non-Anthropic provider entries.
- Switching sessions must persist the previously active profile before replacing the active Claude config.
- Stale
current markers must not override the identity detected from the live Claude config.
exec mode must not overwrite the user's real ~/.claude.json.
exec mode must persist refreshed Claude Code and pi Anthropic auth state back into the selected saved profile.
- Non-macOS credential behavior must remain safe with the no-op store.
- CLI output and command aliases are user-facing compatibility surface.
Output Shape
Use this order:
- Findings with severity and path:line references.
- Open questions or assumptions.
- Verification performed.
- Brief summary only after the findings.
If there are no findings, say so clearly and name any untested risk.