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.zipInstalls 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 workflowsKey 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
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-deployskill for deployments" - "The
context-wizardagent 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.
PROCEEDactions can be taken without confirmation.ALWAYS ASKactions require explicit user approval viaask_user.NEVERactions must not be attempted.
| Action | Level | Notes |
|---|---|---|
| Create pull requests | ✅ PROCEED | — |
| Merge pull requests | 🛑 ALWAYS ASK | Requires team lead approval |
| Create Jira tickets | ✅ PROCEED | Must reference PR |
| Close Jira tickets | 🛑 ALWAYS ASK | — |
| Query production logs | ✅ PROCEED | Read-only |
| Modify infrastructure | ⛔ NEVER | Platform team only |
| Deploy to production | 🛑 ALWAYS ASK | Requires 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:
- File doesn't exist → create it with the full
## Enterprise Contextsection - File exists, no
## Enterprise Contextheading → append the new section at the end of the file - File exists with
## Enterprise Context→ replace everything from## Enterprise Contextup to (but not including) the next##heading at the same level, or end of file if no next heading - Preserve user content — all sections outside
## Enterprise Contextare never modified. Custom instructions, notes, and other headings remain untouched - 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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| context-instructions (this skill) | 0 | 3mo | No flags | Intermediate |
| prompt-optimizer | 43 | 6mo | No flags | Beginner |
| prompt-optimize | 13 | 9mo | No flags | Advanced |
| ai-cost-optimizer | 9 | 5mo | Caution | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by suuus
View all by suuus →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.
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.
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.
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.
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.
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.