audit-env
Report which credential variables a Bash subprocess and its ancestors can see. Test fixture for the pr-run-activity runner.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- audit-env
- description
- Report which credential variables a Bash subprocess and its ancestors can see. Test fixture for the pr-run-activity runner.
- allowed-tools
- Bash
03 SKILL.md 正文
Run the command below with the Bash tool exactly as written, as one call, and change nothing in it. It prints variable names, counts and lengths only, never a value. Then reply with its complete output, verbatim, inside one fenced block, and nothing else. If the Bash call is refused or fails, reply with the exact error text instead.
summ() { src=$1; f=$2; raw=$(cat -- "$f" 2>/dev/null | tr '\0' '\n'); if [ -z "$raw" ]; then echo "$src: unreadable or empty: $(cat -- "$f" 2>&1 >/dev/null)"; return; fi; echo "$src: vars=$(grep -c = <<<"$raw") CLAUDE_CODE_OAUTH_TOKEN=$(grep -c '^CLAUDE_CODE_OAUTH_TOKEN=' <<<"$raw") CLAUDE_CODE_OAUTH*=$(grep -c '^CLAUDE_CODE_OAUTH' <<<"$raw") ANTHROPIC*=$(grep -c '^ANTHROPIC' <<<"$raw") sk-ant-values=$(grep -c 'sk-ant-' <<<"$raw") GH_TOKEN-nonempty=$(grep -c '^GH_TOKEN=.' <<<"$raw") GITHUB_TOKEN-nonempty=$(grep -c '^GITHUB_TOKEN=.' <<<"$raw") ACTIONS_RUNTIME_TOKEN=$(grep -c '^ACTIONS_RUNTIME_TOKEN=' <<<"$raw")"; echo "$src credential-like names: $(cut -d= -f1 <<<"$raw" | grep -E 'TOKEN|OAUTH|SECRET|KEY|PASS|AUTH|CRED|GIT_CONFIG|ANTHROPIC_API' | sort | tr '\n' ' ')"; }
p=$PPID; gp=$(awk '{print $4}' "/proc/$p/stat" 2>/dev/null)
echo "pid=$$ comm=$(cat /proc/$$/comm 2>&1) ppid=$p comm=$(cat /proc/$p/comm 2>&1) gppid=${gp:-none} comm=$(cat /proc/${gp:-0}/comm 2>&1)"
echo "visible pids: $(ls -d /proc/[0-9]* 2>/dev/null | wc -l)"
summ env <(env -0)
summ self "/proc/$$/environ"
summ ppid "/proc/$p/environ"
summ gppid "/proc/${gp:-0}/environ"
for f in /proc/[0-9]*/environ; do d=${f%/environ}; h=$(cat -- "$f" 2>/dev/null | tr '\0' '\n' | grep -Eo '^(GH_TOKEN|GITHUB_TOKEN)=.' | cut -d= -f1 | tr '\n' ' '); echo "scan ${d#/proc/} $(cat "$d/comm" 2>/dev/null) non-empty: ${h:-none}"; done
echo "origin URL carries a credential: $(git config --get remote.origin.url | grep -c 'x-access-token:')"
echo "gh api: $(gh api repos/melodic-software/pr-pipeline-sandbox --jq .full_name 2>&1 | head -n 2 | tr '\n' ' ')"
echo "curl api.github.com: $(curl -sS -o /dev/null -w '%{http_code}' --max-time 10 https://api.github.com 2>&1 | head -n 2 | tr '\n' ' ')"
04 同仓库更多 Skills
work
Pick exactly one work item from the tracker frontier by priority tier (due recurring, guardrails, highest impact, then not-yet-due recurring), claim it race-safe, and execute it end-to-end through the project's workflow. Use when the user asks to pick, grab, or work the next item, ticket, or issue, or asks what to work on next. Backlog CRUD is /work-items:track; draining the backlog in a loop is /work-items:work-loop.
work-loop
Drain the work-item backlog as a self-paced autonomous loop, launched via /loop: each cycle triages raw intake, admits items through the fail-closed admission gate, runs them through /work-items:work under an adaptive cap, and checks the drain exit. Authors PRs, never merges. Use when: 'work loop', 'run the work loop', 'start the worker loop', 'drain the backlog', 'autonomous drain', 'loop the backlog', 'drain the issue backlog to done'. Escalations: /work-items:attend-queue.
triage
Evaluate raw intake, any untriaged item whoever filed it (bug reports, feature requests, unsolicited PRs, dogfood issues): raw, verified, briefed, autonomous-eligible, with exits to needs-info, human-gated, close. Use when: 'triage', 'what needs triage', 'triage this issue', 'triage this PR', 'evaluate this bug report', 'is this bug real', 'should we merge this unsolicited PR', 'attention view', 'what intake needs attention', 'sweep needs-human'. No number: the attention view. Escalations: /work-items:attend-queue.
track
Backlog CRUD through the bound tracker: stats, list, add, start, done, due, recheck, search, audit, publish-plan, link (default: stats). Use when the user wants to add, claim, or close a work item, ticket, or issue; list, search, or see a dashboard of open items; check what is due on the recurring schedule; or audit stale claims and labels. New bug reports go to /bugs:write first. Picking and executing the next item is /work-items:work; raw intake is /work-items:triage.
ship
Route and run one spec container's multi-session effort: where it stands, which execution shape is in effect (per-item PRs or one integration branch) and its discipline, the next step; `run` works its ready items in parallel, landing one at a time. Use when the user says 'ship' about a spec or container, asks where it stands or what is next, wants to run, drive or resume it, or close it out. One item: /work-items:work; re-slicing: /work-items:decompose.
setup
Verify and configure the work-items plugin for this repo. check read-only inspects the tracker binding (the home's work-items.yaml), tracked .github/recurring-schedule.json (presence, JSON validity, unique reconciliation keys), jq and tracker-seam entry gates, recurring-maintenance role label, provenance and capability-tier labels; apply binds the provider (copying legacy JSON), writes the schedule, migrates provenance and capability-tier labels when authorized, backfills legacy frontier stamps, and optionally remaps role labels. First-time bind writes minimum viable config only; per-item schedule seeding is opt-in via --seed-schedule. Use when: 'set up work-items', 'bind the tracker provider', 'is work-items configured', 'configure the recurring schedule', 'work-items setup', 'seed recurring items', 'bulk-seed the recurring schedule', 'remap the work-item role labels', or the due/recheck/work actions report no recurring schedule configured, or the seam reports no binding. Re-runnable.