/everything-copilot-cli:context-primefrom everything-copilot-cli
Loads live project context (structure, recent commits, test status) at session start or after a break. Reads identity files, tech stack, and compares agent instruction files for drift.
Ships in everything-copilot-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Copilot CLI reads .github/copilot-instructions.md automatically on every session start.
This skill layers additional context loading on top of that — fetching live project state
(recent commits, file structure, test status) that static instructions can't capture.
# Core identity files
Get-Content README.md | Select-Object -First 60
# Project instructions (Copilot reads this automatically, but re-surface it)
if (Test-Path .github/copilot-instructions.md) {
Get-Content .github/copilot-instructions.md
}
# Other agents' instruction files — read each one to compare it with the Copilot file
'AGENTS.md', 'CLAUDE.md', '.cursorrules' | Where-Object { Test-Path $_ } | ForEach-Object {
Write-Host "=== $_ ==="
Get-Content $_
}
When a repository has several instruction files, check whether they agree. Duplicated guidance
drifts. A split is worse and more common: each file holds different rules, and none is complete —
the build commands live only in AGENTS.md and the conventions only in the Copilot file. Note any
rule that appears in only one file before you rely on it, and suggest one canonical file (usually
AGENTS.md) with the others as short pointers to it. Do not rewrite the files during priming.
Adapted from johnpapa/ai-ready (MIT).
# List tracked files (respects .gitignore automatically)
git ls-files | Select-Object -First 100
# Or filtered by extension for a focused view
git ls-files | Where-Object { $_ -match '\.(ts|js|py|go|cs)$' } | Select-Object -First 80
# Top-level structure
Get-ChildItem -Depth 1 | Where-Object { $_.Name -notmatch '^\.' } |
Select-Object Name, PSIsContainer | Format-Table
If you use /add-dir to expose an extra directory tree, you generally do not need to keep
re-adding it during the session. Those added directories now persist across turns, which makes
context priming less fragile when the task spans multiple exchanges.
# Node.js
if (Test-Path package.json) {
$pkg = Get-Content package.json | ConvertFrom-Json
Write-Host "Project: $($pkg.name) v$($pkg.version)"
Write-Host "Scripts: $($pkg.scripts.PSObject.Properties.Name -join ', ')"
Write-Host "Key deps: $($pkg.dependencies.PSObject.Properties.Name -join ', ')"
}
# Python
if (Test-Path pyproject.toml) { Get-Content pyproject.toml | Select-Object -First 30 }
# .NET
Get-ChildItem -Recurse -Filter "*.csproj" | Select-Object -First 3 | Get-Content
# What branch and recent activity
git --no-pager log --oneline -5
git --no-pager status --short
# Any open issues or PRs being worked on -- default with gh on PATH (Copilot CLI omits list_issues and list_pull_requests):
gh issue list --state open
gh pr list
# When the MCP tools are exposed (no gh on PATH, or --add-github-mcp-tool=<name> for every GitHub MCP
# tool you need -- it replaces the default set -- or --enable-all-github-mcp-tools, which also enables write tools):
# Tool: github-mcp-server-list_issues owner: ... repo: ... state: OPEN
# Quick test status without full run
npm test -- --passWithNoTests 2>&1 | Select-Object -Last 5
# Or just see what test command exists
if (Test-Path package.json) {
(Get-Content package.json | ConvertFrom-Json).scripts
}
Long sessions can slowly lose coherence. Re-prime when you notice:
If degradation shows up:
> Prime context for this session:
> 1. Read README.md (first 50 lines)
> 2. List all tracked source files
> 3. Show the last 5 commits
> 4. Identify the tech stack from package.json / pyproject.toml
> 5. Summarize what this project does in 2-3 sentences
Copilot will run these steps and give you a compact project brief before you start working.
> Read README.md, list git ls-files output, and show me the last 3 commits.
> Then tell me: what does this project do, what stack is it using, and what was last worked on?
docs/ or ARCHITECTURE.md, include it.github/copilot-instructions.md is your long-term context: Use this skill for session-specific context (current branch state, open issues)[Unreleased] CHANGELOG section and recent commits tell you where things standsprint-workflow — full sprint starting with context primegithub-issue-triage — load current open issues as contextWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub drvoss/everything-copilot-cli --plugin everything-copilot-cli115 skills in this plugin
/actions-debuggingUse when a GitHub Actions workflow fails — diagnose the run log, identify the root cause, and apply a targeted fix/add-to-changelogUse when you've shipped a feature, fix, or breaking change and need to update CHANGELOG.md — follows Keep a Changelog format and syncs version numbers across package manifests./agent-governanceUse when designing or reviewing an AI agent system that needs policy-based access controls, intent classification, tool-level rate limiting, trust scoring for multi-agent workflows, or append-only audit trails.
Other plugins' skills for the same job