diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-28 09:13:51 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-28 09:13:51 -0500 |
| commit | bdf755d33aa6a207a538c85f18e38cc03f14e529 (patch) | |
| tree | f9c97e10d1408aa74e6aa17c5f731253e2c929ef /Makefile | |
| parent | 9f84ea2c7854e35ae30c0fb5fbd63f7b7115fb41 (diff) | |
| download | rulesets-bdf755d33aa6a207a538c85f18e38cc03f14e529.tar.gz rulesets-bdf755d33aa6a207a538c85f18e38cc03f14e529.zip | |
feat(status): add `make status` for compact health summary
scripts/status.sh prints a six-line summary composing existing checks:
- audit + doctor (one call, since audit.sh runs doctor internally)
- canonical/mirror sync state via sync-check.sh
- open todo count under * <Project> Open Work
- inbox count (excluding .gitkeep and PROCESSED- prefixes)
- git working-tree state with ahead/behind upstream
Sample output:
rulesets status — 2026-05-28 09:13 CDT
audit Summary: 41 ok, 0 warnings, 2 failures
sync canonical = mirror
todo 22 open
inbox 1 unprocessed
git main dirty — in sync with origin/main
The script adds no new logic beyond formatting. `make status` is the
entry point.
The scope here is limited per the triage disposition for codex item
#12. The rest of #12 was rejected. `make sync` duplicates the existing
sync flow, `make health` wraps existing checks without adding signal,
`make bootstrap-project` duplicates `install-ai` + `install-lang`.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -434,6 +434,9 @@ audit: ## Verify project .ai/ dirs against canonical ([APPLY=1] [FORCE=1] [NO_DO sync-check: ## Verify claude-templates/.ai/ canonical matches .ai/ mirror ([FIX=1]) @bash scripts/sync-check.sh $(if $(FIX),--fix) +status: ## Compact health summary (audit + doctor + sync + todo + inbox + git) + @bash scripts/status.sh + install-githooks: ## Point this repo's core.hooksPath at githooks/ (idempotent — enables pre-commit sync-check) @git config core.hooksPath githooks @echo "core.hooksPath=githooks (pre-commit will run scripts/sync-check.sh)" |
