skills/find-context-template/SKILL.md
Locate the context_template/ directory so initialize-repo and initialize-workspace can proceed. Use this whenever those skills need the template path and it isn't already known — triggered automatically by initialize-repo, initialize-workspace, and initialize-monorepo at startup, or directly when a user says "where is the context template", "find the skill kit template", or "I can't find context_template".
npx skillsauth add maestria-co/ai-playbook find-context-templateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reliably locate the context_template/ directory from the installed skill kit,
regardless of which AI tool (Copilot or Claude Code) was used to install it.
Stop at the first valid match and report clearly when none is found.
Try each location in order — stop at the first match:
~/.copilot/skills/_shared/context_template/ — Copilot install (default)~/.claude/skills/_shared/context_template/ — Claude Code install${COPILOT_HOME:-$HOME/.copilot}/skills/_shared/context_template/ — COPILOT_HOME override${CLAUDE_HOME:-$HOME/.claude}/skills/_shared/context_template/ — CLAUDE_HOME overridefindUse this safe command pattern that avoids nested command substitution:
template_dir=""
copilot_path="${COPILOT_HOME:-$HOME/.copilot}/skills/_shared/context_template"
claude_path="${CLAUDE_HOME:-$HOME/.claude}/skills/_shared/context_template"
if [ -d "$copilot_path" ]; then
template_dir="$copilot_path"
echo "Found at: $template_dir (Copilot)"
elif [ -d "$claude_path" ]; then
template_dir="$claude_path"
echo "Found at: $template_dir (Claude)"
else
echo "NOT_FOUND"
fi
Why this is safe:
find — deterministic paths only; find introduces non-determinism and is slow${VAR:-default} expansion — respects user-set overrides$(...) inside $()If absolute path normalization is required:
# Using cd and pwd (POSIX-compliant)
copilot_path="${COPILOT_HOME:-$HOME/.copilot}/skills/_shared/context_template"
if [ -d "$copilot_path" ]; then
template_dir=$(cd "$copilot_path" && pwd)
echo "Found at: $template_dir"
fi
Never use:
find ~/ -name "context_template" — non-deterministic, slow, matches wrong directories$(realpath $(echo ~/.copilot/...)) — nested substitution blocked${var@P} — parameter transformation blockedWhen the template is not found, report by tool:
./install.sh from the agent-defs repo to install the skill kit to ~/.copilot/"./install.sh --claude from the agent-defs repo to install to ~/.claude/"A valid context_template/ must contain all three:
overview.md (or overview.md.template)standards.md directorydomains/ directoryIf a path exists but fails verification, continue searching.
Found: Return the absolute path. Example:
/Users/alice/.copilot/skills/_shared/context_template
Not found: List every location that was searched and ask the user to provide the path directly. Never proceed with initialization without a verified template — context generated from scratch is inconsistent.
development
Writes and runs a test suite for a piece of code, covering happy path, edge cases, error cases, and security cases. Use when: implementation is complete and needs test coverage, a bug needs a reproduction test and fix validation, or code needs coverage before a refactor. Do not use when: the code under test is not yet implemented, or the spec is still unclear.
testing
Use when creating a new skill, editing an existing skill, or helping a user author a skill for this system. Covers structure, discoverability, quality, and discipline hardening.
development
Evidence-based verification process to run before marking any task complete. Use this skill every time you're about to report that work is done — for features, bug fixes, refactoring, or any code change. This catches the most common failure mode: declaring "done" without proof. If you're finishing up and about to tell the user the task is complete, run this checklist first.
development
Teaches agents how to discover, select, and invoke skills from the skill library. Use this skill whenever you're uncertain which skill applies to a task, when composing multiple skills for complex work, or when you need to understand what skills are available. This is your go-to when facing an ambiguous task and need to figure out the right approach before diving into implementation.