0
Fork 0
mirror of https://github.com/steipete/agent-scripts.git synced 2026-09-23 07:21:21 +00:00
Scripts for agents, shared between my repositories. https://steipete.me
  • Shell 49.7%
  • JavaScript 25.7%
  • TypeScript 10.1%
  • Python 9.9%
  • Ruby 4.2%
  • Other 0.4%
Find a file
History 2026-05-14 18:39:05 +01:00
.github/workflows ci: add smoke workflow 2026-05-14 18:39:05 +01:00
docs docs: remove stale subagent script references 2026-05-06 06:36:58 +01:00
hooks chore: validate skill front matter before commits 2026-05-09 04:21:45 +01:00
release fix: accept prerelease asset names 2026-01-21 09:22:31 +00:00
scripts feat: update nano banana image model 2026-05-09 07:43:32 +01:00
skills chore: update video transcript downloader dependency 2026-05-14 18:37:18 +01:00
.gitignore chore: ignore python bytecode caches 2026-05-11 07:52:57 +01:00
AGENTS.MD docs: tighten PR landing workflow 2026-05-14 12:34:19 +01:00
CHANGELOG.md chore: update video transcript downloader dependency 2026-05-14 18:37:18 +01:00
LICENSE chore: fix copyright header 2026-04-27 11:26:43 +01:00
README.md docs: rewrite agent scripts readme 2026-05-14 09:48:21 +01:00
tools.md chore(skills): version shared skills 2025-12-17 08:58:07 +01:00

Agent Scripts

Shared agent instructions, skills, and small portable helpers for Peter's local workspaces.

This repo is the canonical place for:

  • AGENTS.MD: shared hard rules for Codex/Claude-style agents
  • skills/: reusable workflow skills, including repo-owned skills exposed by symlink
  • scripts/: dependency-light helpers used across projects
  • hooks/: local guardrails such as skill validation

Skills

Skills are the main routing layer. Each skills/<name>/SKILL.md has YAML front matter:

---
name: skill-name
description: "Short generic trigger phrase."
---

Rules:

  • Keep descriptions short and generic; optimize for routing, not documentation.
  • Keep skill bodies terse and operational.
  • Prefer helper scripts under skills/<name>/scripts/ when a workflow has repeatable commands.
  • Validate after edits: scripts/validate-skills.
  • Quote description in front matter.

Global discovery usually points here:

  • ~/.codex/skills -> ~/Projects/agent-scripts/skills
  • ~/.claude/skills -> ~/Projects/agent-scripts/skills

Shared skills live as real folders in skills/. Repo-owned skills stay canonical in their repo and are exposed here with tracked relative symlinks, for example:

skills/discrawl -> ../../discrawl/.agents/skills/discrawl

Current symlinked repo-owned skills include birdclaw, discrawl, gog, imsg, slacrawl, wacli, and wacrawl.

Agent Instructions

Shared hard rules live in AGENTS.MD.

Global setup:

  • ~/.codex/AGENTS.md -> ~/Projects/agent-scripts/AGENTS.MD
  • ~/.claude/CLAUDE.md -> ~/Projects/agent-scripts/AGENTS.MD
  • ~/.claude/AGENTS.md -> ~/Projects/agent-scripts/AGENTS.MD

Downstream repos should use a pointer-style AGENTS.MD:

READ ~/Projects/agent-scripts/AGENTS.MD BEFORE ANYTHING (skip if missing).

Repo-specific rules go below that pointer. Do not copy the shared blocks into downstream repos.

Helpers

scripts/committer

  • Stages exactly the listed files.
  • Enforces a non-empty commit message.
  • Runs skill validation before committing.

scripts/validate-skills

  • Checks every skills/*/SKILL.md.
  • Verifies YAML front matter plus required name and description.
  • Enable as a local hook with git config core.hooksPath hooks.

scripts/docs-list.ts

  • Walks docs/.
  • Enforces summary and read_when front matter.
  • Prints onboarding summaries for repos that wire it in.

scripts/browser-tools.ts

  • Standalone Chrome DevTools helper.
  • Common commands: start --profile, nav <url>, eval '<js>', screenshot, search --content "<query>", content <url>, inspect, kill --all --force.
  • Build optional binary with bun build scripts/browser-tools.ts --compile --target bun --outfile bin/browser-tools.

Syncing

Treat this repo as canonical for shared agent rules and portable helper scripts.

When syncing downstream repos:

  • Pull latest here first.
  • Ensure each target repo starts with the pointer-style AGENTS.MD.
  • Preserve repo-local rules below the pointer.
  • Copy helper changes both directions only when the helper is meant to stay byte-identical.
  • Keep scripts dependency-free and portable; no repo-specific imports or path aliases.

For submodules, repeat the pointer check inside each subrepo, push those changes, then bump submodule SHAs in the parent repo.