core — Project process and token economy
From the repositorypacks/core/README.md ↗
core — Project process and token economy
Section titled “core — Project process and token economy”Project initialization/context skills, plus always-on reading/reply rules and reusable command-output helpers. Some ideas reference caveman; its skills are not copied.
Lane: none. core provides shared project capabilities and global rules, not a work-type process. Software is the only implemented lane. The configured vault is available at every station, but consulted by relevant topic/decision only. Reuse unchanged evidence; revisit affected sources when code or scope changes. Helpers do not authorize browser, Docker, e2e or other commands outside the approved test boundary.
| Item | Purpose |
|---|---|
| core-init | Interview and propose project initialization/adoption; local minimal template, approval before writes |
| core-context | Reference: read relevant configuration, department duties and capability gaps; no writes or dispatch |
| rules.md | Brief replies, scoped reads, filtered output, file state; at most 300 estimated tokens per turn |
| test-summary <cmd> | Run tests; failures, summary and exit code only; full log in $TMPDIR |
| first-error <cmd> | First error with context; also accepts stdin |
| json-peek <file> [depth] [path] | JSON keys/types/array lengths, not a dump; jq with python3 fallback |
| git-compact <log|diff|status> [args] | Read-only git: one line per commit, stat + hunk headers (--full for the diff), short status; truncated with a per-run full log in $TMPDIR; refuses write/exec options; repository config runs nothing |
| code-context find <symbol> [path] | Literal whole-word search with rg and its default ignore rules. One path:line[,line…] row per file, no source text. Defaults to the current directory. |
| git-activity –since <date> [–until] [–authors] [–close] [–no-fetch] <repo>… | Commits per change ID (SDD convention: type(<id>):, first word after test(red|green|amend):) as TSV, --close lists [close] commits with Outcome/Validation; coverage line, exit 3 if a path was not read |
| spec-status [repo] | id state tasks per SDD change in specs/changes/ and specs/archive/ (defined, in-progress, implemented, validated, archived, archived-unvalidated). Completed active changes use validation.md, or the exact Validation: done line in tasks.md for a spec marked Artifacts: spec+tasks. |
| deferred add|list|clear | Work the owner defers during a change: one line per item in <git-common-dir>/rigorkit/deferred.md (shared by worktrees, never committed); list as TSV with a count; clear --first <n> --yes keeps items added later |
Install
Section titled “Install”Skills may be installed per project or globally. For a software project:
./install.sh --pack core,sdd --agent claude,codex,opencode --project ~/code/my-repo
Ask the agent for core-init; it proposes .rigorkit/project.yaml and an optional AGENTS diff before writes. Configuration-only never calls sdd-init. Full initialization offers software setup/adoption under their existing gates. No prompts lane/parser/workflow runtime or automatic installation is shipped. Missing context skill/config evidence is reported, not silently interpreted as approval.
Rules and helpers remain global only: personal preferences must not enter shared repo instructions. The one-line installer offers to install only the rules; the same is available later with --rules-only (global scope only, no skills or agents):
rigorkit install --pack core --agent claude,codex,opencode --global --rules-only --dry-run
(Preview with --dry-run, then run it again without it. CODEX_HOME, when set, must be an absolute path.) To skip the one-line installer’s offer, answer n or set RIGORKIT_NO_RULES to any non-empty value.
./install.sh --pack core --agent claude,codex,opencode --global --dry-run
./install.sh --pack core --agent claude,codex,opencode --global
Rules: Claude ~/.claude/CLAUDE.md; Codex ~/.codex/AGENTS.md (or $CODEX_HOME/AGENTS.md); OpenCode ~/.config/opencode/AGENTS.md. Cursor has no global file: the installer prints the rendered block to paste in Settings → Rules → User Rules. Scripts are not copied: the rules call them with '<clone>/bin/rigorkit' script <name>, custom scripts in ~/.rigorkit/custom/scripts first. Scripts already in ~/.local/share/rigorkit/scripts/ from 0.1.0 are left as they are.
Only the block between <!-- rigorkit:core:start --> and <!-- rigorkit:core:end --> is replaced, or appended when absent; reinstall never duplicates it. Outside content stays intact. Existing files get <file>.rigorkit.bak (same mode as the original) before change; –dry-run shows diff without writes.
Remove only rule blocks, with backups: ./install.sh --uninstall-rules --agent claude,codex,opencode. Compare real-feature usage before/after using Claude Code /cost or OpenCode session usage.
Terminal output
Section titled “Terminal output”The Rigorkit CLI adds semantic colors only to terminal destinations, independently for stdout and stderr. Set a non-empty NO_COLOR or TERM=dumb to disable them; agents with pseudoterminals use NO_COLOR=1. rigorkit script leaves each helper’s output and environment conventions to the helper itself. Core rules and generated or installed content contain no added styling.