Borrowing it
Nothing to install: this file belongs to unbound-force/gaze. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/unbound-force/gaze/main/.opencode/skills/openspec-apply-change/SKILL.mdgit clone --depth 1 https://github.com/unbound-force/gazeWrote 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/unbound-force/gaze/openspec-apply-change)<a href="https://agentmods.dev/skills/unbound-force/gaze/openspec-apply-change"><img src="https://agentmods.dev/badge/skills/unbound-force/gaze/openspec-apply-change.svg" alt="Measured on agentmods" 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.00031 | $0.01833 |
| Opus 5 | $0.00015 | $0.00916 |
| Sonnet 5 | $0.00006 | $0.00367 |
| Haiku 4.5 | $0.00003 | $0.00183 |
Grade A, and why
openspec-apply-change 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 7d 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 — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Implement tasks from an OpenSpec change.
Input: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
Steps
-
Select the change
If a name is provided, use it. Otherwise:
- Infer from conversation context if the user mentioned a change
- Auto-select if only one active change exists
- If ambiguous, run
openspec list --jsonto get available changes and use the AskUserQuestion tool to let the user select
Always announce: "Using change: " and how to override (e.g.,
/opsx-apply <other>).
1a. Validate branch
Run git rev-parse --abbrev-ref HEAD to get the current branch.
- If the current branch is
opsx/<change-name>: proceed. - If the current branch is NOT
opsx/<change-name>: STOP with error:"Must be on branch
opsx/<change-name>to implement this change. Run:git checkout opsx/<change-name>"
1b. Retrieve implementation context from Dewey
Before implementing, query Dewey for relevant patterns:
dewey_semantic_searchwith the task description to find similar implementations in other reposdewey_semantic_search_filteredwithsource_type: "web"to find relevant toolstack documentationdewey_searchfor convention pack references related to the task's domain
Use the retrieved context to follow established patterns and avoid reinventing solutions that already exist in the ecosystem.
If Dewey is unavailable, proceed with direct file reads of convention packs and local code examples.
Dewey Availability Tiers
Adjust context retrieval based on Dewey availability:
Tier 3 (Full Dewey): Use dewey_semantic_search,
dewey_search, dewey_traverse, and
dewey_semantic_search_filtered for comprehensive cross-repo
and toolstack context.
Tier 2 (Graph-only, no embedding model): Use
dewey_search and dewey_traverse for keyword-based and
structural queries. Semantic search is unavailable.
Tier 1 (No Dewey): Fall back to direct file operations:
- Use the Read tool to read local specs, backlog items, and convention packs
- Use the Grep tool for keyword search across the codebase
- Reference
.opencode/uf/packs/for coding standards
All tiers produce valid results. Higher tiers provide richer cross-repo context but are never required.
-
Check status to understand the schema
openspec status --change "<name>" --jsonParse the JSON to understand:
schemaName: The workflow being used (e.g., "spec-driven")- Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
-
Get apply instructions
openspec instructions apply --change "<name>" --jsonThis returns:
- Context file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
- Progress (total, complete, remaining)
- Task list with status
- Dynamic instruction based on current state
Handle states:
- If
state: "blocked"(missing artifacts): show message, suggest using openspec-continue-change - If
state: "all_done": congratulate, suggest archive - Otherwise: proceed to implementation
-
Read context files
Read the files listed in
contextFilesfrom the apply instructions output. The files depend on the schema being used:- spec-driven: proposal, specs, design, tasks
- Other schemas: follow the contextFiles from CLI output
-
Show current progress
Display:
- Schema being used
- Progress: "N/M tasks complete"
- Remaining tasks overview
- Dynamic instruction from CLI
-
Implement tasks (loop until done or blocked)
For each pending task:
- Show which task is being worked on
- Make the code changes required
- Keep changes minimal and focused
- Test generation step (after code changes, before marking complete):
- Check if
gazeis available (which gazeorgo run ./cmd/gazein the gaze repo). If not available, silently skip this step (gaze is optional — composability). - Identify changed
.gofiles:git diff --name-only(exclude*_test.gofiles) - For each changed
.gofile, determine its package path - Run
gaze quality --format=json ./path/to/package/...to get contract coverage data - Check if any new/modified functions have
ContractCoverage.Gaps - If gaps exist, invoke the
gaze-test-generatoragent (via Task tool withsubagent_type: general) with the function source, gaps, hints, and fix strategy - Verify generated tests compile and pass
- Mode enforcement: Read
.gaze.yamlfortest_generation.mode(default:mandatory)mandatory: block task completion until generated tests compile and pass. If tests fail, pause and ask for guidance.advisory: show results but proceed to mark[x]regardless
- Check if
- Mark task complete in the tasks file:
- [ ]→- [x] - Continue to next task
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.
- 7d ago First seen · 217 lines · 31 tokens per session scan A 4a81c62d7b25
openspec-apply-change is a skill published in the GitHub repository unbound-force/gaze (2 stars, last pushed 3d ago), licensed Apache-2.0. It adds 31 tokens to every session and 1,833 once invoked, about $0.0002 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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…
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…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…