dhpk-openspec-artifact-guard

dhpk-openspec-artifact-guard is a skill for Claude Code, Codex from hmj1026/dhpk. It costs 60 tokens per session (1,790 once invoked), scanned A, original, MIT.

A checklist for checking the structure and naming of OpenSpec files, where OpenSpec is a specification format and folder system for planned software changes.

In plain words
What is it for?
Use it while editing or reviewing files under openspec/, after renaming OpenSpec items, or before archiving a change to check artifact shape, change placement, and task or Git alignment.
Why use it?
It catches misplaced files, unsafe change names, and mismatches between tasks and version-control changes before an OpenSpec change is archived. It is not an implementation tool.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the dhpk plugin — 39 skills, 1 command, 1 agent, 3 hooks shipped together

Good fit Use it while editing or reviewing files under openspec/, after renaming OpenSpec items, or before archiving a change to check artifact shape, change placement, and task or Git alignment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmj1026/dhpk/dhpk-openspec-artifact-guard
View source ↗ hmj1026/dhpk
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 hmj1026/dhpk --skill dhpk-openspec-artifact-guard
Clone the repo
git clone --depth 1 https://github.com/hmj1026/dhpk

Made for: Claude Code, Codex.

Or install dhpk, the plugin that ships this one along with the rest of its 39 skills, 1 command, 1 agent, 3 hooks.

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 dhpk-openspec-artifact-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-openspec-artifact-guard/github.svg)](https://agentmods.dev/skills/hmj1026/dhpk/dhpk-openspec-artifact-guard)
Your own site
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-openspec-artifact-guard"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-openspec-artifact-guard/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 dhpk-openspec-artifact-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-openspec-artifact-guard"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-openspec-artifact-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,790 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.00060 $0.01790
Opus 5.5 $0.00024 $0.00716
Sonnet 5.5 $0.00012 $0.00358
Haiku 4.5 $0.00006 $0.00179

Measured yesterday against content hash 75b7e94d5d16, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dhpk-openspec-artifact-guard 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 yesterday.

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.

generated/claude-marketplace/package/modules/library-author/skills/dhpk-openspec-artifact-guard/SKILL.md · 210 lines

How it starts

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

OpenSpec artifact guard

OpenSpec's directory shapes are easy to mis-name. The most expensive mistake — editing openspec/specs/ directly during an active change — is also the most invisible: nothing throws, the file commits cleanly, and the delta-merge step on archive silently does nothing because the SSOT already matches.

This skill is the fast pre-archive guard. The deep verifier is openspec-verify-change (different skill). Run this one whenever openspec/** files are in the diff.

Background reading: modules/library-author/references/openspec-naming-gotchas.md


When to run

  • Editing any file under openspec/
  • Reviewing a PR whose diff touches openspec/
  • Before invoking openspec:archive on a change (last-line safety net)
  • After mass-rename in the openspec tree (slug normalization)

When NOT to Use

  • Editing source code that has nothing to do with the spec
  • Running openspec:verify already (it covers a superset of these checks)

Inputs

The diff under openspec/ (or, if no diff, the current working tree state):

git diff --name-only -- openspec/
# or, if no diff:
find openspec/ -type f -name '*.md' -newer openspec/project.md 2>/dev/null

Also read openspec/changes/*/ directory shapes (regardless of diff).


Checks

Check 1 — Direct SSOT edit during active change (CRITICAL)

Find files matching openspec/specs/** in the diff that are NOT in an archive commit.

git diff --name-only | grep -E '^openspec/specs/[^/]+/'

A new file or modified file here is suspect. The only legitimate way to update openspec/specs/ is through openspec:archive which applies delta directives from openspec/changes/<slug>/specs/ to the SSOT.

Confirm legitimacy by:

  • The commit message contains archive AND
  • The same commit touches openspec/changes/.archive/<slug>/ or openspec/changes/archive/<slug>/

If both conditions are met → APPROVE. Otherwise → CRITICAL: redirect the edit to openspec/changes/<current-change>/specs/<capability>/spec.md with delta markers.

Read the full file on GitHub · 210 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. yesterday Changed · +1 lines 75b7e94d5d16
  2. 1mo ago First seen · 209 lines · 60 tokens per session scan A e053f42c1391

Subscribe to this mod's changes

dhpk-openspec-artifact-guard is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 1,790 once invoked, about $0.0002 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-05.

Related

Other skills, from other repositories

opportunity-solution-tree

Build an Opportunity Solution Tree (OST) to structure product discovery — map a desired outcome to customer opportunities, possible solutions, and experiments. Based on Teresa Torres' Continuous Discovery Habits. Use when the team is unclear what to build next, when multiple opportunities compete, or before writing a…

avelikiy/great_cto · 71 tokens

done-blocked

Reusable reporting contract for any agent that hands work back to the pipeline. Forces ONE of two terminal statuses (DONE or BLOCKED) with a specific evidence shape. Stops vague "probably finished" and "kind of stuck" verdicts.

avelikiy/great_cto · 51 tokens

pm-planning

Decomposition methodology for pm agent — turns an approved ARCH document into a Beads task list with explicit dependencies, time-boxes, and acceptance criteria. The pipeline can only orchestrate work it can see; this skill defines what "seeable work" looks like.

avelikiy/great_cto · 57 tokens

import-spec-file

Imports a handwritten spec document into Shipyard in place of brainstorming. Use when a freeform spec, requirements, or design document already exists.

lgbarn/shipyard · 32 tokens

shipyard-writing-plans

Breaks a spec, requirements, or design into an implementation plan with file paths and verification commands. Use for any multi-step task before touching code. Also use when the user says "plan this", "break this down", "create tasks", or "decompose this feature", when a task needs more than 2-3 steps, or when tasks…

lgbarn/shipyard · 92 tokens

shipyard-handoff

Captures session context into .shipyard/HANDOFF.md so the next session can resume without losing progress. Use when the user says "handoff", "save context", or "I'm done for now", or when a long session ends and its state should be recorded.

lgbarn/shipyard · 60 tokens