Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/killernay/sandcastle-huahinnpx agentmods add skills/killernay/sandcastle-huahin/skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/killernay/sandcastle-huahin/skill)<a href="https://agentmods.dev/skills/killernay/sandcastle-huahin/skill"><img src="https://agentmods.dev/badge/skills/killernay/sandcastle-huahin/skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/killernay/sandcastle-huahin/skill"><img src="https://agentmods.dev/badge/skills/killernay/sandcastle-huahin/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00066 | $0.02681 |
| Opus 5.5 | $0.00026 | $0.01072 |
| Sonnet 5.5 | $0.00013 | $0.00536 |
| Haiku 4.5 | $0.00007 | $0.00268 |
Grade A, and why
sandcastle scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/sandcastle
Two modes. Pick by what the repo already has.
.sandcastle/missing → SETUP.sandcastle/present → CHECK (default; also use after a run misbehaves)
Never guess a value. Every item below is a command whose output decides the answer. Report a table of PASS / WARN / FAIL with the fix next to each failure, then offer to apply the fixes — don't apply silently.
CHECK
Run these from the repo root. Each line is one check.
# 1. harness files
ls .sandcastle/{main.mts,plan-prompt.md,implement-prompt.md,review-prompt.md,merge-prompt.md,Dockerfile}
# 2. deps + script (FAIL → npm i -D @ai-hero/sandcastle tsx zod; npm pkg set scripts.sandcastle="tsx .sandcastle/main.mts")
ls -d node_modules/@ai-hero/sandcastle && npm pkg get scripts.sandcastle
# 3. real .env, not just the example (FAIL → cp .sandcastle/.env.example .sandcastle/.env and fill it)
test -f .sandcastle/.env && grep -c "^GH_TOKEN=." .sandcastle/.env
# 4. WORKSPACE_DIR points at a real workspace (empty value = repo root is the workspace)
W=$(grep -m1 "^WORKSPACE_DIR=" .sandcastle/.env | cut -d= -f2); ls "${W:-.}/package.json"
# 5. the false-green guard — see "Three slots" below
test -f .sandcastle/workspace-hint.md
# 6. optional planner knowledge
test -f .sandcastle/planning-rules.md
# 7. DEP_ORDER_FILE, if set, must exist
D=$(grep -m1 "^DEP_ORDER_FILE=" .sandcastle/.env | cut -d= -f2); [ -z "$D" ] || ls "$D"
# 8. issues exist — github: the label has open issues; local: issue files present
S=$(grep -m1 "^ISSUE_SOURCE=" .sandcastle/.env | cut -d= -f2); S=${S:-github}
if [ "$S" = "local" ]; then ls .sandcastle/issues/*.md; else
L=$(grep -m1 "^ISSUE_LABEL=" .sandcastle/.env | cut -d= -f2); L=${L:-ready-for-agent}
gh label list --search "$L" | head -3; gh issue list --state open --label "$L" --limit 5
fi
# 9. models live + sandbox image built + prompt args wired + no built-in overridden
npx tsx .sandcastle/check-models.mts
# 9b. the harness's own rules and its docs agree with its code (~200ms, no Docker)
npx tsx --test .sandcastle/*.test.mts
# 10. how many runs are live — TWO lines per run, 0 before you start another
ps -eo pid,lstart,command | grep "[.]sandcastle/main[.]mts"
# 11. containers: 2 per issue in flight is normal; only non-zero with NO run live is a leak
docker ps -a --filter name=sandcastle -q | wc -l
# 12. worktrees left dirty by a killed run — startup auto-rescues these (WIP commit on the issue branch, then clears); listed here so you know a kill happened
for w in .sandcastle/worktrees/*/; do [ -d "$w" ] && git -C "$w" status --porcelain | head -3; done
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 202 lines · 66 tokens per session scan A 4a416f73b1f8
sandcastle is a skill published in the GitHub repository killernay/sandcastle-huahin (5 stars, last pushed 4mo ago), licensed MIT. It adds 66 tokens to every session and 2,681 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
sandcastle compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sandcastlekillernay/sandcastle-huahin | Skill | 5 | 4mo ago | MIT | A | 66 | Claude Code, Codex |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 332k | 6d ago | MIT | A | 21 | Claude Code |