Skip to content

About

No description, website, or topics provided.

Resources

Stars

29 stars

Watchers

0 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

Repository files navigation

   _                    _          _    _ _ _
  | |                  | |        | |  (_) | |
  | |__   __ ___      _| | __  ___| | ___| | |___
  | '_ \ / _` \ \ /\ / / |/ / / __| |/ / | | / __|
  | | | | (_| |\ V  V /|   <  \__ \   <| | | \__ \
  |_| |_|\__,_| \_/\_/ |_|\_\ |___/_|\_\_|_|_|___/

blind · parallel · independent Skills for shipping software with Claude Code, Codex, and OpenCode.

Install · Skills · The idea · Conventions


Install

Requires Bash and Python 3.9 or later. Run from a checkout:

./install.sh

Without --target, the installer asks which systems to use. Select one or several:

Choose where to install hawk-skills
   ❯ [ ] Claude Code
     [✓] Codex
     [✓] OpenCode
↑/↓ move · space toggle · a all · n none · enter confirm · q quit

Then choose an optional namespace prefix and select skills with the same checkbox controls. Required skills and specialist agents are included automatically.

To install without a checkout:

curl -fsSL https://raw.githubusercontent.com/hawkyre/hawk-skills/main/install.sh | bash

For scripts, specify each target. Repeat --only to select skills. Use --all to install every skill without the skill picker:

./install.sh --target codex --target opencode --only code-audit --prefix hawk-
./install.sh --target claude --all --no-statusline
./install.sh --target codex --all --dry-run

Without a terminal, --target is required. --select explicitly opens the skill picker. --help lists all options.

System Skills Specialist agents
Claude Code ~/.claude/skills/ ~/.claude/agents/*.md
Codex ~/.agents/skills/ ~/.codex/agents/*.toml
OpenCode ~/.agents/skills/ ~/.config/opencode/agents/*.md

The installer respects CLAUDE_CONFIG_DIR, CODEX_HOME, XDG_CONFIG_HOME, and XDG_STATE_HOME. Codex and OpenCode share skill files. Each skill includes references for the active system's tools. Claude keeps its configured agent models. Codex and OpenCode inherit the user's model unless configured otherwise. Restart a system if new skills or agents do not appear.

OpenCode also discovers Claude skill directories. The installer checks global skill directories for conflicting copies with the same name. Prefixes accept letters, digits, _, -, :, and ., including the original . prefix. When selecting OpenCode, use lowercase letters, digits, and hyphens, such as hawk-, to meet its documented naming rules. Untracked installations and local edits are preserved. If a path conflicts, move it aside or choose another prefix.

The optional hawk statusline applies only to Claude Code. Use --statusline to include it or --no-statusline to skip it. The installer preserves other settings. Removal restores the previous statusline if the installed setting is unchanged.

Remove installations from a checkout:

./uninstall.sh
./uninstall.sh --target codex --all --no-statusline
./uninstall.sh --target opencode --only code-audit --prefix hawk- --dry-run

Install records live in ~/.local/state/hawk-skills/manifest.json, or under XDG_STATE_HOME. Removal keeps dependencies and shared files while another selected skill or target needs them. Both commands support --dry-run, which writes nothing.

The runtime references require fresh reviewer conversations. Project instructions can still reach reviewers. Research and screenshot workflows require web and image tools in the active system.

Maintainer checks: python3 -m unittest discover -s tests -v (Python 3.11 or later for TOML checks).

The idea: blind, parallel, independent subagents

Most of the heavy skills here fan out to subagents that work in parallel, with a deliberately narrow brief, and no context on the overall goal. They don't read the plan. They don't know what feature this is. They see only the code, the standards, and their specialist brief.

A reviewer who knows the goal will rationalize the implementation toward the goal. A reviewer who only has the diff and a specialist brief evaluates the code on its own merits.

                ┌──────────────────┐
                │  diff / files    │
                └────────┬─────────┘
                         │
                         ▼
                ┌─────────────────┐
                │  audit-triage   │  ← haiku, ~1-2s
                │ (light/std/deep)│    classifies scope, picks subset
                └────────┬────────┘
                         │
        ┌────────┬───────┼───────┬────────┐
        ▼        ▼       ▼       ▼        ▼
   ┌───────┐ ┌──────┐ ┌─────┐ ┌──────┐ ┌──────┐
   │ logic │ │ sec  │ │simp │ │rsrch │ │ arch │  ← sonnet, parallel,
   └───┬───┘ └──┬───┘ └──┬──┘ └──┬───┘ └──┬───┘    fresh sessions,
       │        │        │        │        │       no plan, no goal
       └────────┴────────┼────────┴────────┘
                         ▼
                   ┌───────────┐
                   │  merged   │
                   │  FIX/NOTE │  → applied (cleanup) or reported (report)
                   └───────────┘

Each specialist is its own audit-* subagent file under agents/, defined once and called from every audit-using skill:

Specialist Looks for
1 audit-logic off-by-one, null/NaN, empty inputs, concurrency, ordering, error paths, boundary values
2 audit-security input validation, authn/authz, injection, XSS, SSRF, prompt injection, trust boundaries
3 audit-simplification long functions, deep nesting, dead code, duplication, names that don't match behavior
4 audit-research verifies third-party APIs against current docs via WebSearch + WebFetch — flags deprecated APIs and version-specific gotchas
5 audit-architecture layer separation, file placement, import direction, type-safety, public API stability

Plus audit-triage — a haiku-powered classifier that reads the diff and picks the specialist subset for the job. Light tasks get 2 specialists; risky ones get all five. The triage decision is internal — you don't see it unless you ask.

The same pattern is reused by code-audit-hardcore, implement-plan-audited, and review-large-pr. The plan skills (plan-small, plan-large) use a separate plan-reviewer agent for their self-review pass — same shape, plan-shaped brief.

Skills

Planning

Skill Job
coding-process Entry point. Reads the task, routes to the right skill below.
plan-small Single-PR Markdown plan with short use cases, the approach, and work paired with observable checks. Independent review checks correctness and concision.
plan-large Multi-PR Markdown plan with short use cases, explicit dependencies, and checks per PR. Detailed flows go in a linked document only when needed.
review-plan Adversarial review of a plan file.

Execution

Skill Job
implement-plan Execute an approved plan, increment by increment. Runs independent increments in parallel. Commits per increment by default — skipped on main/master, overridable with commit=yes/commit=no. Mirrors the repo's commit style.
implement-plan-audited Adds independent audits at risk or integration boundaries and completion. Records checkpoints and outcomes outside the plan. Supports manual or automatic execution with the same commit controls.

Quality

Skill Job
code-audit Blind specialists in parallel; subset chosen by audit-triage. mode=report (default) or cleanup. tier=auto|light|standard|deep to right-size or force the specialist subset.
code-audit-hardcore Same scope as code-audit, expanded to tangibly-related code (setup, wiring, siblings). Always-improve posture: when there's a choice between leaving relevant code as-is and improving it, it improves. Big refactors route through /plan-small or /plan-large.
hac Half-assed check. Inline, no subagents. Names the class of problems and the system that produces it, designs the best solution for that class without repo limits, lists each gap in the current proposal, and closes it or names a valid blocker. "It works" is not a blocker.
fix-bug Hypothesis-first root cause analysis. Always considers online research at the hypothesis stage; applies it when triggers match (third-party error, library used <3 times, version-specific behavior, "should work per docs").
refactor One-dimension refactors: readability, modularity, performance, type safety, dedup.
remove-code Trace-then-delete for features, dead code, dropped deps.
review-large-pr Chunked parallel review of 30+ file PRs.

Discovery & meta

Skill Job
learn-system Explore and explain a system — entry points, mental model, traced scenarios.
design-master Design system from first principles — color, typography, spacing, motion. Generates divergent directions and picks via blind judging.
design-hierarchy Per-screen guardrail for data-bearing UI — one primary element, self-describing values, one encoding per variable, legend or death.
write-agent Scope an LLM agent so it only does what it can — prompt, tools, guardrails agree. Fixes off-topic drift, hallucinated capabilities, answer-from-memory.
init-phoenix Bootstrap a Docker-based Phoenix project with the BEAM/macOS gotchas pre-solved.

Git

Skill Job
cap Stage, commit with a short message matching the repo's commit style, and push. No fuss.

Quick taste

Once installed, just type:

/coding-process       ← let it route the task
/plan-small           ← one-PR change
/plan-large           ← multi-PR feature
/code-audit           ← review a diff
/code-audit-hardcore  ← aggressive cleanup of the changes + tangibly-related code
/implement-plan-audited mode=auto   ← hours of unattended execution
/fix-bug              ← hypothesis-first bug fix
/hac                  ← check that a proposal does not cut corners

Read a skill's full prompt in the skill directory for your system. See the install paths above.

Conventions

These skills use the following paths:

Path What it is
.plans/<slug>/plan.md Main review document: purpose, short use cases, approach, work, and unresolved decisions.
.plans/<slug>/use-cases.md Optional detailed flows, linked from the main plan.
.plans/<slug>/state.json Execution status and audit markers.
.plans/<slug>/worklog.md Execution outcomes, audit notes, and evidence links.
.plans/_assets/ Wireframe CSS and publisher helper from design-window/references/assets/.
.plans/_wireframes/<window>/ Separate UI wireframes from design-window.
.agents/standards/ Your house conventions. Skills look up index.yml and read what's relevant.
.agents/common-mistakes/ Repo-specific gotchas. Same lookup pattern.

The index.yml files are plain YAML with topic → file mappings. Bootstrap them empty; the skills will tell you when they want one.

The project check command (bun run c, pnpm typecheck, mix test, etc.) is looked up — never assumed.

Reviewing plans

Open plan.md in your editor or Markdown viewer. Give feedback in chat; the agent revises the same file. The main document keeps short use cases. Longer branches and recovery flows can go in a linked use-cases.md. Schema details and mockups get separate files only when they help review a decision.

Small plans have one work list. Large plans have PR blocks with dependencies and observable checks. Execution logs stay outside the plan. Review findings need evidence; reviewers have no finding quota.

Big-output discipline

Heavy command output blows the agent's context window and stays expensive for every subsequent turn. Every skill in this repo follows the same recipe:

  1. Redirect any command whose output may exceed ~200 lines — project check command, full git diff, repo-wide search, long log, WebFetch of a long page — to a predictable file:

    <command> > /tmp/hawk-<skill>-<step>.log 2>&1

    Use ${TMPDIR:-/tmp} if /tmp is unavailable. Pick a stable <step> (e.g. check, diff, inc3, chunk2) so the same path is reused by the inspection call. Do not use $$ — Claude Code starts a new shell per Bash call, so $$ differs between calls.

  2. Inspect with rg -n (or grep -nE if rg is missing), capped:

    rg -n '<pattern>' /tmp/hawk-<skill>-<step>.log | head -50
  3. Read the capture file with offset/limit only after rg has identified line ranges, or to bound the slice (≤200 lines). Never Read an unbounded /tmp capture.

In scope (always redirect): typecheckers, test runners, linters, dialyzer, full git diff, git diff <range> with code, repo-wide rg/grep, docker compose logs, WebFetch payloads >~10KB (capture via curl -sSL <url> -o /tmp/hawk-<skill>-fetch.html).

Out of scope (inline is fine): git status, git log --oneline, git diff --name-only, git diff --stat, git rev-parse HEAD, focused Read of a known file, narrow rg over a small subdir.

Subagents inherit the rule. When a skill fans out to subagents, the orchestrator pastes narrowed slices (not raw captures) into the subagent prompt, and the prompt template includes this same Rules bullet so the subagent applies the recipe to its own commands.

Files are prefixed hawk-<skill>- so a session can prune with rm -f /tmp/hawk-* when finished.

Layout

hawk-skills/
├── install.sh           # installer entry point; supports curl-pipe use
├── uninstall.sh         # interactive uninstaller
├── installer/           # shared installer, dependency catalog, runtime references
├── tests/               # install, uninstall, and terminal checks
├── README.md
├── LICENSE
├── statusline/
│   └── statusline.sh    # optional Claude Code statusline
├── agents/              # subagent definitions (one .md per agent)
│   ├── audit-triage.md  # haiku-powered tier classifier
│   ├── audit-logic.md   # specialist briefs — referenced by skills
│   └── ...
└── skills/
    ├── code-audit/SKILL.md
    ├── code-audit-hardcore/SKILL.md
    ├── coding-process/SKILL.md
    └── ...

The audit-style skills (code-audit, code-audit-hardcore, implement-plan-audited, review-large-pr) call the audit-* subagents directly — Agent(subagent_type="audit-logic", …) and similar. The plan skills (plan-small, plan-large) call plan-reviewer the same way. Each specialist's brief, anti-bias contract, tool-usage policy, and output schema live in the agent file once instead of being inlined across every skill — update the agent and every skill that uses it gets the new behavior on the next call. Install-time --prefix rewrites both the agent filenames and every concrete subagent_type= reference in installed skills, so namespaced installs stay wired.

License

MIT — see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

29 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages