Skip to content

About

Agent Guards for long-lived AI agents: context-budget (audit per-turn token weight, fail CI on bloat) + claim-audit (flag unverified factual claims). Standalone tools + CI-ready, Claude Code / Codex / OpenCode compatible.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Agent Skills

Dependency-light Python tools for auditing AI-agent context, output, handoffs, recurring costs, gate overlap, and capability usage — plus portable creative skills for design, generative art, and browser testing.

Python 3.9+ License: MIT

Overview

Agent Skills is a collection of 67 Agent Skills in five families:

  • Guards — runnable audit skills (plus the interop CLIs), each combining an instruction file (SKILL.md) with a standalone Python CLI that produces human-readable or JSON output and can return a non-zero status when a configured threshold is exceeded. They run locally, accept files or standard input, and need no credentials or network access.
  • Interop — skill-sync unifies custom skills across every AI provider install into one universal directory, and session-handoff carries work context (session logs, history, files touched) between clients so any agent can continue work started in another.
  • Creative — design, art, frontend, and writing skills: three derived from anthropics/skills (Apache-2.0), consolidated and de-branded so any SKILL.md-reading agent can use them outside Claude Code, plus community CSS and technical-writing skills.
  • Process — engineering-discipline skills from obra/superpowers (MIT) and hiendinhngoc/unknowns (MIT): root-cause debugging, TDD, evidence-before-claims verification, git worktrees, pre-work blindspot recon, reference comprehension gates, deviation logging, and pre-merge quizzes.
  • Power tools — heavyweight skills ported from oh-my-opencode / omo-ai and anthropics/skills: git mastery, escalation web browsing with WAF bypass, LSP setup for 20 languages, AI-slop removal, skill authoring/evaluation, and herdr — full-surface control of a terminal workspace manager for coding agents (panes, tabs, workspaces, agent lifecycle, remote machines, and the 103-method socket API) from any client.

The repository can be used directly from a clone or installed as the agent-skills plugin for Claude Code or Codex.

Why your workload needs this

Every agent workload fails the same ways: the agent asserts instead of proving, context quietly bloats until quality drops, work fragments across clients, and AI-generated code smells pile up. These skills exist because each failure has a cheap, enforceable countermeasure. Find your workload:

Your workload What silently breaks Required skills
Long-running autonomous agents Context grows every turn; cost climbs and quality drops with no alarm context-budget, skill-decay, open-loops
Shipping agent-written code Narration comments, slop patterns, and unverified "done" claims reach main comment-checker, remove-ai-slops, verification-before-completion, claim-audit
Multi-client workflows (Claude Code + Codex + others) Skills fragment per client; work context dies when you switch skill-sync, session-handoff
Debugging and hard fixes Symptom patches instead of root causes; regressions hide behind refactors systematic-debugging, test-driven-development, git-master
Per-model working agreements Generic AGENTS.md bloat every model session; Astra needs lean, gated behavior instead astra-init
Unfamiliar or risky codebases Hidden landmines surface mid-change; misread reference code ports wrong blindspot, verify-ref, lsp-setup, using-git-worktrees
Design and frontend delivery Output looks AI-generated; CSS reinvents solved problems design, css-pro-tips, webapp-testing, algorithmic-art
Planning and review discipline Weak plans survive until implementation exposes them grilling, domain-modeling, merge-quiz, log-deviation, linus-level
Docs and technical writing Prose that buries the answer; docs that drift from reality nbj-write-clearly
Research behind blocked pages WAFs, JS-only rendering, and platform walls stop naive fetching ultimate-browsing
Security-sensitive repos Agents paste real credentials into examples; installed skills carry injection payloads secret-gate, skill-audit
Token cost control No client shows cross-client consumption; budgets blow silently usage-audit, context-budget
Backend / deployment New env keys never make it to prod; the deploy crashes at 2am; endpoints return 500s nobody checked env-gate, api-tester, gh-fix-ci, gh-address-comments, log-analyzer
Security / headers Pages ship without HSTS or CSP; clickjacking and downgrade attacks stay open sec-headers, secret-gate, skill-audit
Sysops / network "Is the box okay?" and "is it reachable?" have no fast deterministic answers sys-health, net-probe, cron-audit
Proxmox VE administration API calls can mutate cluster state or expose local files without a deliberate workflow proxmox-ve
3D / image generation First generations miss the brief; Three.js scenes look like tutorials image-gen, 3d-design, design
Graph / dependency data Dependency chains and state machines are edge lists nobody can query graph-tools
Browser extensions MV3 boilerplate wastes the first hour of every extension project ext-scaffold
Code review triage Reviewers waste time on debug prints, TODOs, and trivial assertions that a machine should catch first diff-review, comment-checker, code-review, merge-quiz
Finance / portfolio A brokerage export tells you what you own, not whether one position is too big portfolio-audit
Documents Agents can't read docx/pptx/xlsx without installing heavy tooling doc-reader
Web / SEO Pages ship without title, meta description, or alt text — invisible to search and share seo-audit
Career / job search Resumes get filtered by ATS before a human reads them; weak bullets and missing keywords are invisible to the writer resume-audit
Project onboarding Every project has "the agent did X wrong, we told it Y" moments that future sessions repeat session-rules
macOS automation Agents can't touch the user's Notes, Reminders, Maps, Mail, Calendar, Contacts, Photos, or run Terminal commands without an API layer apple-suite
UI / visual delivery Functional tests pass while the layout is broken, the font is wrong, or the CJK glyphs are corrupted visual-qa, webapp-testing, appshot
Agent administration Multiple agent clients run at once; nobody knows which are alive, stuck, or killable session-finder, session-handoff, usage-audit
Driving other agents in terminals Sibling agents get launched by hand; reading their output, waiting for them, and coordinating layout has no scriptable surface herdr
Independent second opinions Self-review rubber-stamps its own blind spots; pasting code into a chat loses scope, files, and any way to check the answer pro-review
Social research Social content is behind logins and JS walls; public APIs go unused social-research, ultimate-browsing
Personal ops Forgotten subscriptions keep billing subscription-audit
Maintaining a skill library itself Redundant gates, dead skills, bloated instructions tax every prompt gate-graph, skill-creator, skill-optimizer

Features

Skill Purpose Optional gate
context-budget Ranks text files by estimated token usage and reports total context size. --budget
claim-audit Classifies statements as grounded, hedged, bare, or opinion/meta to identify claims that need verification. It is a linter, not a fact-checker. --fail-over
open-loops Extracts unresolved commitments, deferrals, decisions, and questions from plain-text or JSON transcripts. --max-open
subscription-audit Detects repeated charges in exported bank or card CSV files and estimates monthly and yearly recurring spend. --budget
gate-graph Compares Python modules by AST-derived fingerprints and reports overlap and modules with no detected imports. --max-gates, --max-overlap
skill-decay Compares a declared skill inventory with usage logs and classifies capabilities as live, stale, or never used. --max-decay, --fail-on-never
skill-sync Discovers skills across all AI provider installs, reports provenance and conflicts, and symlinks or copies the union into one universal directory. --fail-on-conflict
comment-checker Flags unjustified new comments/docstrings in files or diffs; BDD markers, lint directives, licenses, and TODOs auto-pass. --fail-over
session-handoff Reads session logs from Claude Code, Codex, OpenCode/OMO, and Gemini CLI stores and produces a portable handoff briefing so any client can continue another's work. —
secret-gate Blocks credentials from entering code or diffs: AWS/GitHub/API key formats, private keys, JWTs, and high-entropy assigned strings. exit 1 on findings
skill-audit Security-scans installed skills for prompt-injection, data-exfiltration, and pipe-to-shell patterns before an agent trusts them. --fail-over
usage-audit Aggregates token consumption across Claude Code, Codex, and OpenCode stores by model, client, and project. --budget-tokens
env-gate Compares a deployed .env against .env.example: missing/empty/extra keys and placeholder values. Prevents the classic prod crash from env drift. exit 1 on drift
diff-review Mechanical review pass on a diff: debug output, unresolved markers, trivial assertions, deleted tests. Chains secret-gate and comment-checker into one command. --fail-over

Domain skills

Skill Purpose Optional gate
portfolio-audit Analyzes an exported portfolio CSV for concentration risk, allocation drift, and gain/loss across stocks, crypto, ETFs, and any asset type. --max-position, --max-type
doc-reader Extracts text from docx, pptx, xlsx, html, markdown, and txt with zero dependencies (ZIP+XML stdlib). PDF delegates to pdftotext. —
seo-audit Scores on-page SEO for HTML files: title, meta description, h1, image alt, canonical, OG tags, html lang. --min-score
resume-audit Scores resume structure, quantified bullets, action verbs, and ATS keyword coverage against a job description. --min-bullet-ratio
session-rules Extracts corrections from a project's AI-session history and generates a RULE.md to prevent repeated mistakes. —
apple-suite Drives 11 macOS apps via AppleScript and URL schemes: Notes, Reminders, Maps, Mail, Calendar, Terminal, Shortcuts, Contacts, Photos, App Store search, Phone. Non-scriptable apps (VoiceMemos, Passwords, Find My, Activity Monitor) documented honestly. —
visual-qa Visual QA workflow: capture through real renderers, compare against baselines, structured good/bad verdict with evidence. —
skill-picker Queries the generated catalogue by persona, family, keyword, or tag to find the right skills for a workload, with install commands. —
session-finder Detects running AI agent processes (Claude Code, Codex, OMO, gjc, Hermes, Cursor, Gemini) with client grouping, uptime, watch mode, and validated safe-kill. —
appshot Screenshots any macOS app window, full screen, or region via native screencapture — zero dependencies. —
social-research Read-only social content discovery via public APIs: X syndication, Reddit JSON, HN Firebase/Algolia, Bluesky AT Protocol. Threads limitation documented honestly. —
api-tester Fires real HTTP requests and validates status, JSON field values, and latency — endpoint smoke tests from CI or an agent session. exit 1 on mismatch
proxmox-ve Safe Proxmox VE MCP workflow with audited source pinned as a Git submodule, API discovery, and explicit administration boundaries. —
log-analyzer Groups log errors by normalized pattern and ranks offenders; handles level-tagged and exception-style logs. --budget-errors, --max-patterns
json-diff Semantic JSON diff by path: added/removed/changed with values, nested objects, positional arrays. --max-changes
repo-audit Git repo structural health: LICENSE/README/tests/CI/gitignore, large files, stale merged branches. --fail-on
changelog-gen Categorized changelog skeleton from conventional commits since a tag: Added/Changed/Fixed/Docs/Internal with scopes. —
code-review Strict ice-cold review protocol: every dimension questioned, mandatory severities with file:line triggers, no rubber stamps, verdict with conditions. —
net-probe Port checks, DNS, TLS expiry budgets, HTTP latency — socket/ssl stdlib only, no nmap/dig/openssl. exit 1 on failure
sys-health Machine health snapshot: disk, memory, load, top processes, zombies, with budget alerts. --max-*-pct
sec-headers Grades HTTP security headers (HSTS, CSP, framing, cookies) with an A-F letter grade. --min-grade
graph-tools Directed-graph queries from JSON edge lists: degrees, cycles, BFS shortest paths. --fail-on-cycle
ext-scaffold Working Manifest V3 browser extension skeleton — valid on first load, no npm. —
cron-audit Parses crontabs into concrete schedules with plain-words explanations; flags invalid lines. exit 1 on invalid
3d-design Self-contained Three.js scene scaffolder (CDN, OrbitControls, lighting, primitives) plus 3D design discipline. —
image-gen Image-generation provider routing (gpt-image vs grok) and prompt-structure discipline for first-try results. —

Creative skills

Skill Purpose
design Claude-grade visual design direction for any agent: web/UI design principles, canvas/poster art philosophy, and a 10-theme styling library, with an on-demand OFL font fetcher instead of vendored binaries.
algorithmic-art Generative art with p5.js: seeded randomness, flow fields, particle systems, and an interactive parameter-exploration viewer.
webapp-testing Playwright-based browser QA for local web apps: frontend verification, UI debugging, screenshots, and console-log capture.
css-pro-tips Source-validated modern CSS/Tailwind patterns: resets, focus styles, container queries, Baseline-aware features.
nbj-write-clearly Reader-first technical writing grounded in the Google Developer Documentation Style Guide.

Process skills

Skill Purpose
systematic-debugging Four-phase root-cause-first debugging discipline with references on root-cause tracing, defense-in-depth fixes, and condition-based waiting.
test-driven-development Red-green-refactor discipline: watch the test fail first, write minimal code to pass, with a guide to writing good tests.
verification-before-completion Evidence before claims: run the verification commands and confirm output before declaring work complete.
using-git-worktrees Parallel development with git worktrees: isolation for risky work, safe directory selection, and cleanup.
blindspot Read-only reconnaissance pass over unfamiliar code to surface hidden risks before writing anything.
verify-ref Comprehension gate before porting or adapting reference code: prove understanding first.
log-deviation Records where implementation was forced to deviate from the plan; feeds future planning.
merge-quiz Pre-merge gate that quizzes the human on the riskiest parts of the branch diff.
grilling Relentless interview that stress-tests a plan, decision, or design before building.
domain-modeling Builds and sharpens a project's domain model: terminology, CONTEXT.md, ADRs.
linus-level A 1.0-10.0 engineering working-mode dial tuning agency, verification depth, questioning, and security posture.

Power tools

Skill Purpose
git-master Mode-gated git operations: atomic commits, rebase/squash/autosquash, blame, bisect, reflog, and history forensics.
ultimate-browsing Tiered escalation web access: headless extraction with WAF bypass (curl_cffi, yt-dlp, archives), platform-native APIs, and stealth-browser interaction.
lsp-setup Configure the right language server for 20 languages: detection, per-OS install, config for multiple harnesses, and diagnostics verification.
remove-ai-slops Behavior-preserving cleanup of AI-generated code smells: regression tests first, categorized passes, quality gates.
skill-creator Author, validate, package, and eval-test new agent skills, with grader/comparator agent prompts.
skill-optimizer Refines existing skills through real usage: saves tokens, eliminates redundancy, tightens instructions.
herdr Drives Herdr's terminal workspace manager from any agent client: workspaces, tabs, panes, agent lifecycle, worktrees, remote machines, integrations, config, and the full socket API surface with per-flag CLI detail.
pro-review Explicit second-opinion review: scopes the change set, filters secrets and oversized files, hands a sized brief to ChatGPT Pro through a pinned guarded browser transport (or to a client in a Herdr pane), and machine-checks the returned report. Needs Node.js 24+ and a ChatGPT Pro login.

All guard CLIs support JSON output, operate offline, and require no credentials or network access.

Architecture

Claude Code / Codex / compatible Agent Skills host
                        |
               plugin manifests
                        |
                skills/<name>/
                |             |
             SKILL.md     [scripts/*.py]
                                |
                 files or stdin input
                                |
            text or JSON output + exit status

The plugin manifests in .claude-plugin/ and .codex-plugin/ expose the directories under skills/. Thirty-five skills are script-backed (guards, interop, security, backend, and domain CLIs); the rest are instruction-only — the SKILL.md is the skill. Every script is directly executable with Python and does not depend on an agent host.

Installation

Run from a clone

Python 3.9 or later is required (CI tests 3.9, 3.11, and 3.12).

git clone https://github.com/Trac3r00/agent-skills.git
cd agent-skills

All script-backed skills use only the Python standard library. context-budget also runs without third-party packages, but uses the cl100k_base tokenizer when tiktoken is installed and otherwise falls back to an approximate character-based count.

python3 -m pip install tiktoken  # optional, for tokenizer-based context counts

Install as a plugin

Claude Code:

claude plugin marketplace add Trac3r00/agent-skills
claude plugin install agent-skills@agent-skills

Codex:

codex plugin marketplace add Trac3r00/agent-skills
codex plugin add agent-skills@agent-skills

The plugin installs all 67 skills together. To use individual skills without the plugin, copy the relevant directory from skills/ into the skills directory supported by your agent host, or use the bundled skill-sync skill to link them into a universal directory.

Usage

Run commands from the repository root.

Audit context size

python3 skills/context-budget/scripts/context_budget.py \
  path/to/system-prompt.md path/to/skills/ \
  --budget 40000 --top 15

Identify unsupported claims

printf '%s\n' 'The service was launched in 2024.' \
  | python3 skills/claim-audit/scripts/claim_audit.py - --fail-over 0.4

Extract unresolved conversation items

python3 skills/open-loops/scripts/open_loops.py thread.jsonl --json

The transcript may be a JSON array, JSONL records containing role and content, or plain text using [speaker] message or speaker: message lines.

Audit recurring charges

python3 skills/subscription-audit/scripts/subscription_audit.py statement.csv \
  --budget 80 --json

The CSV must contain date, description or merchant, and amount data. Header names and common delimiters are detected automatically; use - as the input path to read CSV data from standard input.

Compare Python gate modules

python3 skills/gate-graph/scripts/gate_graph.py path/to/gates/ \
  --max-gates 49 --max-overlap 0.5 --json

Find unused or stale skills

python3 skills/skill-decay/scripts/skill_decay.py \
  --skills-dir path/to/skills/ \
  --logs path/to/agent-logs/ \
  --stale-days 30 --max-decay 20

Use python3 skills/<skill>/scripts/<script>.py --help for the complete interface of any tool.

Configuration

The project does not read environment variables or a shared configuration file. Behavior is configured through command-line arguments:

Tool Main options
context_budget.py --budget, --model, --top, --json
claim_audit.py --fail-over, --json
open_loops.py --max-open, --json
subscription_audit.py --budget, --min-charges, --stale-days, --currency, --json
gate_graph.py --max-gates, --max-overlap, --top, --full-matrix, --json
skill_decay.py --skills-dir or --names, --logs, --stdin, --stale-days, --max-decay, --fail-on-never, --as-of, --json

When a configured threshold is exceeded, the relevant command exits with status 1, making it suitable for local automation or CI. Input and usage errors handled by the scripts exit with status 2.

Development

The test suite requires pytest.

python3 -m pip install pytest
pytest tests/test_skills.py

The suite covers every script-backed CLI end-to-end and validates every skill's SKILL.md frontmatter (name matches directory, discoverable description). CI (.github/workflows/tests.yml) runs it on Python 3.9, 3.11, and 3.12 for pushes to main and pull requests.

To add a skill, follow the contributor contract in skills/AGENTS.md: frontmatter requirements, the CLI and gate conventions, and the manifest registration checklist.

Project structure

.
├── .claude-plugin/       # Claude Code marketplace and plugin metadata
├── .codex-plugin/        # Codex plugin metadata
├── .github/workflows/    # CI: pytest matrix + CLI smoke tests
├── skills/               # 67 skills: SKILL.md instructions, 35 with standalone Python CLIs
├── tests/test_skills.py  # End-to-end CLI tests + repo-wide frontmatter validation
├── LICENSE
└── README.md

License

Licensed under the MIT License.

About

Agent Guards for long-lived AI agents: context-budget (audit per-turn token weight, fail CI on bloat) + claim-audit (flag unverified factual claims). Standalone tools + CI-ready, Claude Code / Codex / OpenCode compatible.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages