external/ag-shared/prompts/skills/recall/SKILL.md
/recallLoad branch-scoped context from .context/ and optionally browse project-scoped memory in .rulesync/.
Run the co-located script to resolve paths and load any existing context. Use the skill base directory from the header above:
bash "<skill-base-directory>/context-path.sh" --list-rules
Parse the structured output:
BRANCH= — current branch nameSLUG= — filename slugCONTEXT_FILE= — full path to context fileSTATUS=found|not_found — whether context exists---CONTENT--- — existing context file contents (if found)---RULES--- — list of project rule files (if present)If found, present its contents:
## Branch Context Loaded: {branch}
**Intent**: {summary of intent section}
**Key Patterns**: {count} patterns documented
**Known Gaps**: {count} gaps tracked
**References**: {count} references available
---
{Full context file contents}
If not found, inform the user:
No saved context found for branch
{branch}.Run
/rememberand choose Branch to create context for this branch.
After presenting branch context, offer to show project memory:
Project rules and learnings in
.rulesync/rules/load automatically based on file-pattern globs. Want to browse the project memory files?
If the user says yes:
---RULES--- section of the script output.rulesync/rules/) is committed and shared with the team