speckit-agent-context-update

Update the SPECKIT section in agent context files to reference the latest plan path.

Updated May 16, 2026
One-click install
npx skills add https://github.com/WeihanLi/Spark.OpenXml --skill speckit-agent-context-update
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-agent-context-update
Source: https://github.com/WeihanLi/Spark.OpenXml/tree/main/.agents/skills/speckit-agent-context-update
Command: npx skills add https://github.com/WeihanLi/Spark.OpenXml --skill speckit-agent-context-update

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refresh the managed Spec Kit section inside the active coding agent's context/instruction file (e.g. CLAUDE.md, .github/copilot-instructions.md, AGENTS.md) to ensure it points to the latest plan.

Core Features & Use Cases

  • Reads the agent-context extension config at .specify/extensions/agent-context/agent-context-config.yml to discover:
    • context_file
    • context_markers.start
    • context_markers.end
  • Replaces, creates, or appends the managed block so that the SPECKIT section points at the most recent plan path found under specs/<feature>/plan.md (auto-detects when a plan path is discoverable).
  • If context_file is empty or the file cannot be located, the command reports nothing to do and exits successfully.

Quick Start

Execute the script to refresh the SPECKIT section to reference the latest plan path.

Frequently Asked Questions about speckit-agent-context-update

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update agent context to point at the latest spec plan path?

To update agent context, run the script to refresh the SPECKIT section inside your context file, replacing the managed block to reference the latest plan path found under specs/<feature>/plan.md.

How does the agent-context config discover context markers for context management?

The agent-context config discovery reads .specify/extensions/agent-context/agent-context-config.yml to locate the context_file and extract the context_markers.start and context_markers.end values defining the managed block.

What happens if the context_file is empty or cannot be located during the update?

If the context_file is empty or cannot be located, the update command reports nothing to do and exits successfully without modifying any agent context files.

Can I use this to sync coding agent instructions for CLAUDE.md or AGENTS.md?

Yes, you can sync coding agent instructions for files like CLAUDE.md, AGENTS.md, or .github/copilot-instructions.md by updating the managed SPECKIT section to point at the most recent plan.

When do I need to refresh the Spec Kit section in my coding agent context?

You need to refresh the Spec Kit section when a new plan is generated under specs/<feature>/plan.md, ensuring your coding agent context automatically references the correct latest plan path.