Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ShaftHQ/SHAFT_ENGINE --skill local-agencygit clone --depth 1 https://github.com/ShaftHQ/SHAFT_ENGINEWrote 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/shafthq/shaft_engine/local-agency)<a href="https://agentmods.dev/skills/shafthq/shaft_engine/local-agency"><img src="https://agentmods.dev/badge/skills/shafthq/shaft_engine/local-agency/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/shafthq/shaft_engine/local-agency"><img src="https://agentmods.dev/badge/skills/shafthq/shaft_engine/local-agency.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.00034 | $0.02035 |
| Opus 5.5 | $0.00014 | $0.00814 |
| Sonnet 5.5 | $0.00007 | $0.00407 |
| Haiku 4.5 | $0.00003 | $0.00203 |
Grade A, and why
local-agency 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 14d 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 — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Local agency (OpenCode)
Optional local coding agency path. Not a workflow owner; select the canonical workflow in execution workflows first.
Local agency vs session agents
| Path | When | Owner |
|---|---|---|
| Session subagents / Task | Default orchestrator labor on the host | Host adapter + delegation |
| Local agency (this skill) | Adopter asked for OpenCode / local OSS agency against local weights | This skill + READY runtime |
Hard rails (never regress)
- Prefer a READY local runtime: FreeToken (
:1919), then Ollama / LM Studio / llamacpp via local-openai-compat, then Colibri (:8000) via colibri (frontier MoE; prefer FreeToken for coding agency). - Configure OpenCode with ephemeral
OPENCODE_CONFIG/OPENCODE_CONFIG_CONTENTthat setsenabled_providersto the READY local provider. OpenCode merges global config; the allowlist keeps other providers out of that process.--pureonly disables external plugins. - Never write into durable
~/.config/opencode(helper refuses those paths), neverft launch/ft serve, never start local servers from CE. - Do not silently fall back to cloud OmniRoute. Missing local runtime:
tell the operator; continue with session agents /
SOLO/ OmniRoute only when the adopter explicitly asked for that path. - Do not install OpenCode from this skill. Operator install stays on vendor docs (README third-party table).
- Installer / doctor / status must not fail because OpenCode or a local runtime is missing.
- Never bind or probe a non-loopback URL from ChaosEngine.
- ROG FreeToken bind: Task/box writers must not claim FreeToken.
dispatch.py resolve --prefer freetokenandrequire_rog_freetoken.pyfail closed unless the hostname looks like ROG, cwd is the operator ROG checkout (see local-agency guide (repo-onlychaos-engine/guides/local-agency.md)), orCE_ALLOW_BOX_LOCAL_AGENCY=1. Process-owner Shell withmachineIdon ROG is mandatory for ROG FreeToken/OpenCode writers. Do not dispatch those writers via Task until Grok Bot exposesmachineIdto Task/executor Shell. Diagnostic:assert_parent_rog_shell.py. Clear error when FreeToken is not READY on this host.
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/coach-loop.md 6.5 KB
- references/design-turn-contract.md 1.8 KB
- references/mechanical-dispatch.md 3.0 KB
- references/parent-rog-shell.md 1.6 KB
- references/when-to-use-local.md 2.0 KB
- scripts/assert_parent_rog_shell.py 2.7 KB runs code
- scripts/design_turn_gate.py 3.8 KB runs code
- scripts/dispatch.py 26 KB runs code
- scripts/executor_brief.py 4.4 KB runs code
- scripts/require_rog_freetoken.py 7.7 KB runs code
- scripts/tests/test_assert_parent_rog_shell.py 1.2 KB runs code
- scripts/tip_preflight.py 9.7 KB runs code
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.
- 14d ago Changed · +3 lines dbd66b8a19c4
- 16d ago Changed · -50 lines 2d1e4fb60c66
- 20d ago Changed 2211628a7629
- 21d ago Changed · +8 lines 6cb4400a6bb9
- 23d ago Changed · +3 lines 0b3a2152df75
- 24d ago Changed · +9 lines d55c73387067
- 25d ago Changed · +61 lines 48550b147f78
- 26d ago Changed · +19 lines 7523282942b1
- 27d ago Changed · +4 lines 741ee070ed8c
- 28d ago First seen · 108 lines · 34 tokens per session scan A 1b1830f97b07
local-agency is a skill published in the GitHub repository ShaftHQ/SHAFT_ENGINE (414 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 2,035 once invoked, about $0.0001 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-09-17.
Other skills, from other repositories
Framework Architect
Skill thiết kế và scaffold automation framework hoàn chỉnh cho Playwright, Selenium, và Appium — bao gồm project structure, base classes, config management, reporting, và CI/CD integration.
Smart Locator Agent
Skill sinh locator ổn định và dễ bảo trì cho UI automation, hỗ trợ Playwright, Selenium và Appium.
QA Automation Engineer
Skill hỗ trợ agent thực hiện các tác vụ QA automation testing bao gồm generate test cases, automation scripts, API tests, locators, phân tích flaky tests, và tạo test data.
Locator Healer Agent
Skill tự động phát hiện và sửa chữa locators bị hỏng khi automation tests fail do thay đổi DOM.
web-test
A browser-automation tool for testing the 1C:Enterprise web client. It uses Playwright to navigate sections, fill forms, read tables and reports, and perform user actions in a browser.
Katalon Studio Testing
Comprehensive testing patterns for Katalon Studio including codeless record-and-playback, Groovy scripted testing, custom keywords, data-driven testing, cross-browser execution, and CI/CD integration with Katalon TestOps.