Dogfood
Dogfood pmat — rebuild, install, exercise every CLI command against pmat's own repo, check output integrity + self-quality, find next work. Read-only audit…
от paiml★ 171 звезда на GitHub
Установить Dogfood в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
PMAT Exhaustive Dogfood — Run pmat On Itself
Rebuild and install the local pmat, then exercise its entire command surface
against this repository (pmat analyzing pmat), check output integrity and
self-quality, and surface the next work. This is the canonical "does the binary
actually work end-to-end" audit — complementary to pmat verify (which runs the
CI gate) and make dogfood (which only touches a few analyze commands).
Lineage: modeled on ../aprender/.claude/skills/dogfood/SKILL.md (apr-cli
exhaustive QA), adapted to pmat's command surface and bug history.
Context
- pmat local version: !
grep '^version' Cargo.toml | head -1 - Current git commit: !
git rev-parse --short HEADon !git branch --show-current - Installed pmat version: !
pmat --version 2>/dev/null || echo "not installed" - Subcommand count: !
pmat --help 2>/dev/null | sed -n '/Commands:/,/Options:/p' | grep -cE '^ [a-z]' - Lib test count: !
grep -roE '#\[test\]|#\[tokio::test\]' src/ 2>/dev/null | wc -ltest attrs
Arguments
$ARGUMENTS
If arguments name a target directory, dogfood against it. Otherwise dogfood against this repo (the canonical pmat-on-pmat case).
Your Task
Run ALL gates below. For each: run the check, report PASS / FAIL / SKIP with one line of evidence. Run independent gates in parallel (use Agent for fan-out). At the end, give a single GO / WARN / FAIL verdict.
Do NOT modify source files. This is a read-only audit. If bugs are found,
file GitHub issues (gh issue create --repo paiml/paiml-mcp-agent-toolkit).
CRITICAL: exit-code capture (the gotcha that fakes bugs)
$? after a pipe reports the LAST stage's status, not your command's. NEVER do
pmat foo | tail; echo $? — tail always exits 0, so you'll report false
passes/fails. Always:
OUT=$(timeout 60 pmat <cmd> 2>&1); EC=$?
echo "$OUT" | tail -3; echo "exit=$EC"
This bug has been filed-then-retracted multiple times in this repo's history.
Every gate below uses the OUT=$(...); EC=$? pattern.
Gate 1: Build & Install
cargo install --path . --force 2>&1 | tail -5
pmat --version
PASS if the installed pmat --version matches Cargo.toml's [package] version.
(pmat does not embed the git SHA in --version, so match on the semver.)
FAIL on any build error or version mismatch.
Gate 2: Full Command Grid
Exercise every subcommand category against this repo. --help for mutating/slow
commands; real invocation for read-only analysis. SKIP (not FAIL) a command that
needs an arg/network it doesn't have; FAIL only on panic / thread 'main' panicked / non-zero exit where success is expected.
2a. Templates & scaffold
for c in "list" "search rust" "generate --help" "scaffold --help" "validate --help"; do
OUT=$(timeout 30 pmat $c 2>&1); EC=$?; echo "pmat $c -> exit=$EC :: $(echo "$OUT"|head -1)"
done
2b. Context (AST analysis)
for f in markdown json llm-optimized; do
OUT=$(timeout 150 pmat context --format $f -o /tmp/df-ctx.$f 2>&1); EC=$?
echo "context --format $f -> exit=$EC :: $(wc -c </tmp/df-ctx.$f 2>/dev/null) bytes"
done
2c. Query & semantic search
OUT=$(timeout 150 pmat query "error handling" --limit 5 2>&1); EC=$?; echo "query semantic -> exit=$EC :: $(echo "$OUT"|grep -c .) lines"
OUT=$(timeout 150 pmat query --regex 'fn\s+handle_\w+' --limit 5 2>&1); EC=$?; echo "query regex -> exit=$EC"
OUT=$(timeout 150 pmat query --literal 'unwrap()' --limit 5 --exclude-tests 2>&1); EC=$?; echo "query literal -> exit=$EC"
OUT=$(timeout 150 pmat query --coverage-gaps --limit 10 --exclude-tests 2>&1); EC=$?; echo "coverage-gaps -> exit=$EC"
2d. Analyze family
# NOTE valid flags (drift killed make dogfood before): complexity/churn --format = summary|full|json|sarif / summary|json|markdown|csv (NOT table); dag uses --target-nodes (NOT --top-files).
OUT=$(timeout 150 pmat analyze complexity --top-files 5 --format json 2>&1); EC=$?; echo "complexity json -> exit=$EC :: $(echo "$OUT"|jq -e 'keys' >/dev/null 2>&1 && echo OK || echo BAD-JSON)"
OUT=$(timeout 150 pmat analyze complexity --top-files 5 --format full 2>&1); EC=$?; echo "complexity full(render) -> exit=$EC"
OUT=$(timeout 150 pmat analyze churn --days 30 --top-files 5 --format json 2>&1); EC=$?; echo "churn json -> exit=$EC"
OUT=$(timeout 150 pmat analyze dag --enhanced --target-nodes 15 -o /tmp/df-dag.mmd 2>&1); EC=$?; echo "dag mermaid -> exit=$EC :: $(grep -cE 'graph|flowchart' /tmp/df-dag.mmd 2>/dev/null) header, $(wc -l </tmp/df-dag.mmd 2>/dev/null) lines"
OUT=$(timeout 150 pmat analyze satd --format json 2>&1); EC=$?; echo "satd -> exit=$EC"
OUT=$(timeout 150 pmat analyze dead-code --top-files 5 --format json 2>&1); EC=$?; echo "dead-code -> exit=$EC"
2e. Scoring family (use fast/default modes; do NOT trigger mutation or rust-score --full)
for c in "score --format json" "tdg . --format json" "repo-score --format json" "quality-gate --format js
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(cargo:*) - 02
Bash(pmat:*) - 03
Bash(gh:*) - 04
Bash(git:*) - 05
Bash(make:*) - 06
Bash(find:*) - 07
Bash(head:*) - 08
Bash(tail:*) - 09
Bash(wc:*) - 10
Bash(grep:*) - 11
Bash(diff:*) - 12
Bash(timeout:*) - 13
Bash(jq:*) - 14
Bash(python3:*) - 15
Bash(echo:*) - 16
Bash(cat:*) - 17
Bash(ls:*) - 18
Bash(rm:*) - 19
Read - 20
Glob - 21
Grep - 22
Agent
FAQ
Что делает скилл Dogfood?
Dogfood pmat — rebuild, install, exercise every CLI command against pmat's own repo, check output integrity + self-quality, find next work. Read-only audit; files issues for bugs.
Как установить скилл Dogfood?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Dogfood запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…