plan-secure

plan-secure is a skill for Claude Code from easyinplay/harnessed. It costs 24 tokens per session (984 once invoked), scanned A, original, Apache-2.0.

A security-planning workflow that runs a threat-model review before the main implementation plan when a phase involves authentication or secret values. Threat modelling means identifying how a system could be attacked and what could go wrong.

In plain words
What is it for?
Use it for implementation phases that handle authentication, passwords, API keys, tokens, or other secrets, using the required helper workflow and completion record.
Why use it?
It adds a required security check before work involving sign-in systems or credentials is planned. The recorded checkpoint makes completion of that review verifiable.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents.

Good fit Use it for implementation phases that handle authentication, passwords, API keys, tokens, or other secrets, using the required helper workflow and completion record.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/easyinplay/harnessed/secure
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 easyinplay/harnessed --skill secure
Clone the repo
git clone --depth 1 https://github.com/easyinplay/harnessed

Made for: Claude Code.

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 plan-secure

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/easyinplay/harnessed/secure"><img src="https://agentmods.dev/badge/skills/easyinplay/harnessed/secure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 984 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.00024 $0.00984
Opus 5.5 $0.00010 $0.00394
Sonnet 5.5 $0.00005 $0.00197
Haiku 4.5 $0.00002 $0.00098

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

Security

Grade A, and why

plan-secure 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 25d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • plan-ui — 88% identical, 26 lines differ
workflows/plan/secure/SKILL.md · 40 lines

How it starts

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

plan-secure workflow

Overview

Run harnessed prompt plan-secure --task "$ARGUMENTS" --json, execute /gsd-secure-phase, then complete the registered checkpoint with verifiable output.

Invocation

Fires only when phase.has_auth_or_secrets == true.

How to invoke

!harnessed checkpoint intent plan-secure

The banner above (when present) means this invocation is REGISTERED with the engine (an intent marker) — not yet compliant: the steps below (prompt → spawn → checkpoint complete) resolve it, and a per-turn <workflow-intent> reminder persists until they run.

The numbered sequence below is the state machine — execute it with Bash. Do NOT improvise an equivalent flow from the Overview above: freelancing bypasses the engine (no ledger, no evidence guard). harnessed gives you the spawn-ready prompt; YOU spawn the subagent with a {{ host.native }} {{ host.spawn_subagent }} (keeps the session responsive + lets clarification round-trips reach the user).

Do NOT pipe to harnessed run plan-secure — that is the CI/headless path ({{ host.harnessed_run_warning_note.execution_tail }}

  1. Bash: harnessed prompt plan-secure --task "$ARGUMENTS" --json → parse {prompt, max_iterations, model, result_file}.
  2. Spawn a {{ host.native }} subagent ({{ host.spawn_subagent }}) with that prompt and model. The sub writes its own final result into result_file — the path that prompt names — so the FILE is the completion signal: do NOT wait for the sub's chat message, because a background or re-parented agent's message may never arrive. Then drive delivery with harnessed's own completion gate:
    • the gate is harnessed checkpoint complete plan-secure --result-file <result_file> --wait 60 — one call waits at most 60 seconds, so run the SAME command again when the sub needs longer; it is fail-closed on the declared artifacts, the TDD boundary, and the verbatim <promise>COMPLETE</promise>.
    • if it blocks, run harnessed checkpoint fail plan-secure --failing-tests <n> to record the attempt; it prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP when a stop condition is reached.
    • respawn ONLY while none of those three has fired. Any one of them means stop: re-scope the subtask, fix the blocker, or escalate to the user. Never respawn past a stop directive.
  3. If the sub’s output contains STATUS: NEEDS_CLARIFICATION + a question list (read it from result_file — the chat message may never arrive): STOP, relay them verbatim via {{ host.ask_user }}, append the answers to the spec, then re-spawn the same sub.
  4. When result_file carries the completion marker: Bash harnessed checkpoint complete plan-secure --result-file <result_file> --wait 60 --summary "<one-line>". Fail-CLOSED — it blocks unless every declared artifacts_expected file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim <promise>COMPLETE</promise> (or a structured COMPLETE status). --wait 60 bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. --result <text> is the inline variant; --result-file wins and is quoting-safe on Windows. A result-wait-timeout exit means the sub has not signalled YET — repeat the same command; --force records an audited override (evidence_status=overridden) — it does not silently pass.
  5. If the complete gate blocked: Bash harnessed checkpoint fail plan-secure --failing-tests <n> to record the attempt. It prints BUDGET-EXHAUSTED / NO-PROGRESS / BREAK-LOOP once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.

Read the full file on GitHub · 40 lines

Files

What ships with it

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

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. 25d ago Changed ea37935996c5
  2. 29d ago Changed · +6 tokens per session ebff41103eac
  3. 1mo ago First seen · 40 lines · 18 tokens per session scan A a967bf458273

Subscribe to this mod's changes

plan-secure is a skill published in the GitHub repository easyinplay/harnessed (2 stars, last pushed 25d ago), licensed Apache-2.0. It adds 24 tokens to every session and 984 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-10-31.

Related

plan-secure compared with skills from other repositories

plan-secure next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plan-secureeasyinplay/harnessedSkill225d agoApache-2.0A24Claude Code
octowizraelli/octowizSkill24mo agoMITB139Claude Code
forgezjio26/forgeSkill116mo agoMITB25Claude Code
setupraelli/octowizSkill24mo agoMITB57Claude Code
sxonowork-studio/notfair-pluginSkill4.4k3d agoMITA211Claude Code
meta-tags-optimizernowork-studio/notfair-pluginSkill4.4k3d agoMITA91Claude Code
chief-strategy-officercbrock84/headcountSkill2.6k3d agoMITA93Claude Code