context-prime
Skill47 starsChanged 4 months agoMITView on GitHub
Invoke when starting a session (or resuming after a break) on a repo before making changes, to load live project context (structure, recent commits, test status)
1 other project uses a version of this.
Adopted by
Most recently taken up by
- strikersam/autonomous-ai-agencytheir own version, first seen Aug 30, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- strikersam/autonomous-ai-agency★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository111 other files it gives its agents.
- AGENTS.mdAGENTS.md
- COPILOT-INSTRUCTIONS.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- ai-visibilitySkill
- content-strategySkill
- seoSkill
- actions-debuggingSkill
- agentic-engineeringSkill
- autopilot-patternsSkill
- background-agentSkill
- copilot-memorySkill
- cross-session-memorySkill
- ecosystem-intakeSkill
- fleet-parallelSkill
- github-code-searchSkill
- github-codespaces-efficiencySkill
- github-issue-triageSkill
- github-pr-workflowSkill
- ide-switchingSkill
- knowledge-curatorSkill
- mcp-builderSkill
- mcp-ecosystemSkill
- multi-model-strategySkill
- plan-mode-masterySkill
- scope-guardSkill
- session-managementSkill
- stack-detectorSkill
- sub-agent-sandboxingSkill
- task-intake-routerSkill
- team-plannerSkill
- token-cost-optimizerSkill
- api-and-interface-designSkill
- code-reviewSkill
- context-engineeringSkill
- cpp-debuggingSkill
- deprecation-and-migrationSkill
- diagnoseSkill
- fix-build-errorsSkill
- fix-github-issueSkill
- implementSkill
- improve-codebase-architectureSkill
- nestjs-prismaSkill
- nextjs-prismaSkill
- performance-optimizationSkill
- pr-multi-perspective-reviewSkill
- prototypeSkill
- react-vitestSkill
- receiving-code-reviewSkill
- refactor-cleanSkill
- reviewSkill
- skill-creatorSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- zoom-outSkill
- add-to-changelogSkill
- api-documentationSkill
- architecture-decisionsSkill
- code-tourSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
When resuming work after a long break (branch has moved, dependencies changed)
- Distinctive: line 21
Before running a large autopilot or fleet task — ensure the AI has full context
- Distinctive: line 22
When onboarding a new contributor — demonstrate the project structure interactively
- Very specific: line 52
If you use /add-dir to expose an extra directory tree, you generally do not need to keep re-adding it during the session.
- Distinctive: line 110
Start a fresh session if the context window is clearly fighting you
- Very specific: line 135
Include domain context: If the project has a docs/ or ARCHITECTURE.md, include it
- Very specific: line 136
.github/copilot-instructions.mdis your long-term context: Use this skill for *session-specific* context (current branch state, open … - Very specific: line 137
After a long break: Always re-prime — the [Unreleased] CHANGELOG section and recent commits tell you where things stand
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context Prime
Why This is Copilot-Exclusive
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.
When to Use
- At the start of any session before making changes to an unfamiliar codebase
- When resuming work after a long break (branch has moved, dependencies changed)
- Before running a large autopilot or fleet task — ensure the AI has full context
- When onboarding a new contributor — demonstrate the project structure interactively
Workflow
1. Read Project Identity
# 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
}2. Understand the File Structure
# 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-TableIf 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.
3. Understand the Tech Stack
# 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-Content4. Get Current Development Context
# What branch and recent activity
git --no-pager log --oneline -5
git --no-pager status --short
# Any open issues or PRs being worked on (Copilot MCP)
# Tool: github-mcp-server-list_issues owner: ... repo: ... state: OPEN5. Check Test and Build State (Optional)
# 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
}Context Degradation Signals
Long sessions can slowly lose coherence. Re-prime when you notice:
- Repeated questions about decisions that were already made
- Reintroduction of bugs or patterns that were already corrected
- New code drifting away from local conventions established earlier in the task
- Responses that suddenly assume conflicting project facts
If degradation shows up:
- Re-run this skill and reload live project state
- Save a short checkpoint of the goal, decisions, and open risks
- Start a fresh session if the context window is clearly fighting you
Example Session Start Prompt
> 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 sentencesCopilot will run these steps and give you a compact project brief before you start working.
Quick Variant (One-liner prompt)
> 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?Tips
- Run this before autopilot tasks: A well-primed session means fewer mid-task surprises
- Include domain context: If the project has a
docs/orARCHITECTURE.md, include it .github/copilot-instructions.mdis your long-term context: Use this skill for session-specific context (current branch state, open issues)- After a long break: Always re-prime — the
[Unreleased]CHANGELOG section and recent commits tell you where things stand
See Also
sprint-workflow— full sprint starting with context primegithub-issue-triage— load current open issues as context- Inspired by: awesome-claude-code/resources/slash-commands/context-prime
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

