CO

context-instructions

Creates instruction files to configure AI coding assistants.

Install

mkdir -p .claude/skills/context-instructions && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15853" && unzip -o skill.zip -d .claude/skills/context-instructions && rm skill.zip

Installs to .claude/skills/context-instructions

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Generate Copilot instructions with enterprise context, tool references, and cross-tool workflows
96 charsno explicit “when” trigger
Intermediate

Key capabilities

  • List every MCP server from .mcp.json
  • Document key tools and when to use them for each MCP server
  • Reference relevant skills or agents
  • Express team intent as clear directives
  • Render classified autonomy boundaries as a structured table

How it works

This skill generates Copilot instructions by synthesizing enterprise context, tool availability, and team constraints into a standard document. It includes MCP server details, skill references, team intent, and autonomy boundaries.

Inputs & outputs

You give it
A request to generate or update `.github/copilot-instructions.md` with enterprise context
You get back
An updated `.github/copilot-instructions.md` file with enterprise context, tool references, and cross-tool workflows

When to use context-instructions

  • Update copilot instructions
  • Document mcp server tools
  • Configure enterprise agent context

About this skill

Generate or update .github/copilot-instructions.md with enterprise context based on everything configured so far.

Important: Include ALL configured MCP servers

List every MCP server from .mcp.json — both newly installed and pre-existing ones. For each, document:

  • What services it covers
  • Key tools and when to use them
  • Example: workiq covers M365 — "When user asks about emails, meetings, SharePoint docs, or Teams messages, use the workiq MCP server's ask_work_iq tool"

What to generate

Add an ## Enterprise Context section (or update it if it exists) with:

Per-tool blocks

For each configured MCP server/tool:

  • MCP server name
  • Key tools it provides (list the actual tool names agents should use)
  • When to use this tool vs. alternatives
  • Team conventions (project keys, space names, URLs)
  • Prefer MCP tools over CLI equivalents when available

Skills and agents

Reference any relevant skills or agents:

  • "Use the azure-deploy skill for deployments"
  • "The context-wizard agent can reconfigure this setup"

Team Intent & Constraints

Retrieve distilled intent from the session store:

SELECT value FROM session_state WHERE key = 'distilled_intent';

Fall back to conversation context if not available. If neither exists, skip this section and note: "No distilled intent available — run /context-distill to generate."

Include the distilled output from Phase 8 (Distill). This is the Intent layer of ISEE — codified so every agent inherits it.

Intent statements

Express what the team values as clear directives:

  • "This team prioritises reliability over feature velocity"
  • "Security reviews are required for all external-facing changes"

Constraints

Hard rules that agents must always respect:

  • "Production deployments require manual approval from a team lead"
  • "All PRs must reference a Jira ticket"
  • "Secrets must be stored in Azure Key Vault, never in environment variables"

Autonomy boundaries

Render the classified autonomy boundaries from Phase 8 as a structured table:

Before performing any action listed below, check its autonomy level. PROCEED actions can be taken without confirmation. ALWAYS ASK actions require explicit user approval via ask_user. NEVER actions must not be attempted.

ActionLevelNotes
Create pull requests✅ PROCEED
Merge pull requests🛑 ALWAYS ASKRequires team lead approval
Create Jira tickets✅ PROCEEDMust reference PR
Close Jira tickets🛑 ALWAYS ASK
Query production logs✅ PROCEEDRead-only
Modify infrastructure⛔ NEVERPlatform team only
Deploy to production🛑 ALWAYS ASKRequires manual approval

The table above is an example — populate it with the actual classifications confirmed by the user in Phase 8 (Distill). Use the icons consistently:

  • ✅ for PROCEED
  • 🛑 for ALWAYS ASK
  • ⛔ for NEVER

Team topology (if available)

Ownership and routing:

  • "Team Alpha owns the payments service"
  • "Security team must approve changes to auth modules"

Intent changelog reference

After writing the intent and constraints sections, add a footer linking to the changelog:

> Intent changelog: [.github/intent-changelog.md](intent-changelog.md) | Last updated: {date}

This makes the changelog discoverable from the instructions file and provides an audit trail for when and why guardrails changed.

Cross-tool workflows

Based on the tools configured AND the processes discovered in Phase 3/8, describe common workflows:

  • Bug triage: issue tracker → monitoring → fix → PR
  • Deployment: PR merge → CI/CD → cloud deploy → monitoring verify
  • Security: scanning tool → issue tracker ticket → fix → rescan
  • Documentation: code change → update docs → review
  • Add any team-specific workflows discovered during distillation (e.g., incident response, change advisory, release ceremonies)

Documentation sources

Reference the locations identified in Phase 3, using the content tags:

  • [intent] sources: "Team strategy and priorities are in SharePoint — search via workiq"
  • [constraint] sources: "Security policies are in the compliance repo"
  • [process] sources: "Deployment process is documented in Confluence space ENG"
  • [reference] sources: "API specs are in the repo under docs/api/"
  • "When asked about 'how we do X', search documentation sources tagged [process] first"

Important

  • Read the existing file first — preserve non-enterprise sections
  • Use the edit tool to add/update the Enterprise Context section
  • Keep instructions actionable — tell Copilot WHEN to use each tool
  • Reference actual tool names that Copilot can invoke
  • Intent statements and constraints should be written as directives, not descriptions — they tell agents what to do, not what the team thinks about

Merge algorithm for existing files

When updating copilot-instructions.md:

  1. File doesn't exist → create it with the full ## Enterprise Context section
  2. File exists, no ## Enterprise Context heading → append the new section at the end of the file
  3. File exists with ## Enterprise Context → replace everything from ## Enterprise Context up to (but not including) the next ## heading at the same level, or end of file if no next heading
  4. Preserve user content — all sections outside ## Enterprise Context are never modified. Custom instructions, notes, and other headings remain untouched
  5. Manual edit detection — if the existing Enterprise Context section contains content that doesn't match wizard-generated patterns (e.g., hand-written tool descriptions, custom workflows), warn the user via ask_user: "The Enterprise Context section appears to have manual edits. Regenerating will replace them. Proceed?"

Then mark this phase done:

UPDATE todos SET status = 'done' WHERE id = 'ctx-instructions';

When not to use it

  • The task is to generate code or perform actions directly
  • The task is about database schema evolution without API surface impact

Limitations

  • If no distilled intent is available, the section will be skipped
  • All sections outside `## Enterprise Context` are never modified
  • If the existing Enterprise Context section contains content that doesn't match wizard-generated patterns, the user will be warned

How it compares

This workflow centralizes and codifies enterprise context, intent, and constraints into a single instruction document, ensuring all AI agents are aligned with team standards, which is more structured than ad-hoc guidance.

Compared to similar skills

context-instructions side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
context-instructions (this skill)03moNo flagsIntermediate
prompt-optimizer436moNo flagsBeginner
prompt-optimize139moNo flagsAdvanced
ai-cost-optimizer95moCautionIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

prompt-optimizer

solatis

Optimize system prompts for Claude Code agents using proven prompt engineering patterns. Use when users request prompt improvement, optimization, or refinement for agent workflows, tool instructions, or system behaviors.

43147

prompt-optimize

YYH211

Expert prompt engineering skill that transforms Claude into "Alpha-Prompt" - a master prompt engineer who collaboratively crafts high-quality prompts through flexible dialogue. Activates when user asks to "optimize prompt", "improve system instruction", "enhance AI instruction", or mentions prompt engineering tasks.

13113

ai-cost-optimizer

ScientiaCapital

Save 40-70% on AI costs with intelligent multi-LLM routing. Automatically selects the optimal model based on task complexity across 40+ models from 8 providers.

990

prompt-library

davila7

Curated collection of high-quality prompts for various use cases. Includes role-based prompts, task-specific templates, and prompt refinement techniques. Use when user needs prompt templates, role-play prompts, or ready-to-use prompt examples for coding, writing, analysis, or creative tasks.

1169

context-compression

muratcankoylan

This skill should be used when the user asks to "compress context", "summarize conversation history", "implement compaction", "reduce token usage", or mentions context compression, structured summarization, tokens-per-task optimization, or long-running agent sessions exceeding context limits.

1350

prompt-lookup

f

Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.

738

Search skills

Search the agent skills registry