Skip to content

flurdy/agent-skills / skills/do-i-need-this

do-i-need-this

Verified

Read-only necessity check of one proposal: weighs doing nothing and smaller alternatives. Use when asked, or when a skill's contract names it; never a default gate. Advises do not do it, simplify, defer, or proceed.

FileKindSize
SKILL.mdskill md12.2 KB
tests/test-skill-contract.shexecutablescript1.3 KB

tests/test-skill-contract.sh

View on GitHub
#!/usr/bin/env bash
set -euo pipefail
SKILL="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/SKILL.md"
fail() { printf 'FAIL: %s\n' "$*" >&2; exit 1; }
frontmatter=$(awk 'NR==1&&/^---$/{f=1;next} f&&/^---$/{exit} f' "$SKILL")
if grep -Fq 'disable-model-invocation' <<<"$frontmatter"; then
    fail 'composed use requires the skill to be loadable by callers'
fi
grep -Eq '^allowed-tools: "Read,Grep,Glob,AskUserQuestion"$' <<<"$frontmatter" || fail 'allowed-tools must stay read-only'
for invariant in \
    '## Composed use' \
    'Exactly one target' \
    'ambiguous target' \
    'return it to the caller and' \
    'PROCEED** grants no implementation, tracker, or write' \
    'Assess once per call' \
    'never direction to this skill' \
    'Nothing here is runtime' \
    'does not invoke this skill'; do
    grep -Fq "$invariant" "$SKILL" || fail "missing invariant: $invariant"
done
for scenario in 'Composed: a caller whose contract' 'Composed: the caller supplies **PROCEED**' 'Composed: the caller supplies three candidate' 'Composed: supplied evidence says' 'Composed: the caller asks for a second'; do
    grep -Fq "$scenario" "$SKILL" || fail "missing acceptance scenario: $scenario"
done
grep -Fq 'Standalone, do not resume' "$SKILL" || fail 'standalone must keep report-and-stop'
printf 'ok\n'
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall