archyl-harness

archyl-harness is a skill for Claude Code from archyl-com/agent-skills. It costs 88 tokens per session (1,693 once invoked), scanned A, original, MIT.

A work-session protocol for coding tasks managed under architecture rules. It requires declaring work, receiving project context and constraints, reporting progress, and closing with an outcome.

In plain words
What is it for?
Planning non-trivial changes, starting governed coding sessions, following architecture constraints, sending progress updates, and recording whether a change may require an architecture request.
Why use it?
It makes active work visible to other agents and helps prevent conflicting changes. It also keeps the documented system design aligned with completed work.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the archyl-developer plugin — 10 skills, 1 hook shipped together

Good fit Planning non-trivial changes, starting governed coding sessions, following architecture constraints, sending progress updates, and recording whether a change may require an architecture request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/archyl-com/agent-skills/archyl-harness
Install

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.

Any agent
npx skills add archyl-com/agent-skills --skill archyl-harness
Clone the repo
git clone --depth 1 https://github.com/archyl-com/agent-skills

Made for: Claude Code.

Or install archyl-developer, the plugin that ships this one along with the rest of its 10 skills, 1 hook.

Wrote 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.

agentmods badge for archyl-harness

README.md
[![agentmods](https://agentmods.dev/badge/skills/archyl-com/agent-skills/archyl-harness/github.svg)](https://agentmods.dev/skills/archyl-com/agent-skills/archyl-harness)
Your own site
<a href="https://agentmods.dev/skills/archyl-com/agent-skills/archyl-harness"><img src="https://agentmods.dev/badge/skills/archyl-com/agent-skills/archyl-harness/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.

agentmods 80×15 button for archyl-harness

Your own site · 80×15
<a href="https://agentmods.dev/skills/archyl-com/agent-skills/archyl-harness"><img src="https://agentmods.dev/badge/skills/archyl-com/agent-skills/archyl-harness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,693 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.01693
Opus 5 $0.00044 $0.00847
Sonnet 5 $0.00018 $0.00339
Haiku 4.5 $0.00009 $0.00169

Measured 10d ago against content hash 62b954ba774e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

archyl-harness 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 10d 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.

plugins/archyl-developer/skills/archyl-harness/SKILL.md · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Archyl Harness — Work Session Protocol

You are working under the Archyl Harness: every unit of work is declared, visible to other agents, and closed with an outcome. This is what stops two agents from silently rewriting the same service, and what keeps the architecture model in sync with what was actually built.

The loop

plan_work → start_work_session → work → (heartbeat) → finish_work_session

0. Plan — for non-trivial tasks

plan_work(projectId: <uuid>, task: "<the feature or change>")

Returns an implementation plan grounded in the documented architecture: ordered steps referencing real C4 elements, the constraints (guardrails and ADRs) that bind them, and risks from work in progress. Follow it, or explain in your finish summary why you deviated. Skip this step for trivial edits.

1. Start — BEFORE touching any file

start_work_session(
  projectId: <uuid>,
  task: "<what you are about to do, one or two sentences>",
  agentName: "claude-code/<user or CI job>",
)

Returns a briefing you MUST read before coding:

  • Session ID — keep it, every later call needs it.
  • Gateallow: proceed. warn: proceed, but address every listed reason (a guardrail that applies, or another agent on the same elements). If the start is rejected (deny, only with exclusive: true): do not work around it — report the conflict to the user.
  • Leased elements — the C4 elements you are now the announced worker on.
  • Conflicts — elements someone else is actively working on. Coordinate or avoid changing them.
  • Context — the relevant elements, ADRs, guardrails, and owners for the task. Prefer this over re-deriving architecture from the repo.

Use exclusive: true when your change must not race with anyone (schema migrations, contract changes).

2. While working

  • Long task (> ~20 minutes)? Call heartbeat_work_session(sessionId) — sessions expire after 30 minutes without a heartbeat and lose their leases.
  • Unsure of blast radius before an edit? impact_of(projectId, element).
  • Check who else is active: list_work_sessions(projectId, activeOnly: true).
  • Learned something the code cannot show — a deployment quirk, a fragile spot, a historical reason? remember(projectId, title, content, element?, kind: note|convention|pitfall). One memory per fact, pinned to the element it is about. Give it a title, and weave the knowledge graph: [[Other Memory Title]], [[ElementName]] and [[ADR-3]] in the content become navigable links (a link to a not-yet-existing title attaches when that memory is created). Re-stating a fact that already exists does not create a duplicate: it confirms the existing memory, and the response says so (deduplicated: true). A near-but-not-identical memory is stored and reported in similarTo — read it, and supersede rather than contradict.
  • Working somewhere unfamiliar? recall(projectId, query, sessionId) first — previous agents may have left exactly the warning you need. Ranking blends meaning with words, so ask in your own vocabulary: a memory about "throttling" surfaces for a query about "rate limiting". Pass your sessionId: it is what lets you credit those memories when you finish.
  • Memory has a lifecycle — keep it TRUE, not just full:
    • a recalled memory proved accurate? confirm_memory(projectId, memory) — resets its freshness so it keeps outranking stale information.
    • a fact changed? remember(..., supersedes: "Old title") — never leave two contradictory versions live; the old one keeps its place in history.
    • unconfirmed memories decay in ranking (45-day half-life); pitfalls outrank notes. Write pitfalls when you hit one.

Read the full file on GitHub · 141 lines

Changes

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.

  1. 10d ago First seen · 141 lines · 88 tokens per session scan A 62b954ba774e

Subscribe to this mod's changes

archyl-harness is a skill published in the GitHub repository archyl-com/agent-skills (2 stars, last pushed 14d ago), licensed MIT. It adds 88 tokens to every session and 1,693 once invoked, about $0.0004 per session on Opus 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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens