name: agent-context
description: Log progress and create or update agent context notes in agent-contexts/ using versioned filenames (00-00-short-desc.md), Obsidian frontmatter, session-scoped tags (frontend/<feature-module>, backend/<route-service>), and up to 2 semantically related prior-context links. Use when asked to log progress, capture context, document work done, or update agent-contexts files.
Agent Context Logging
Use this skill when the user asks to:
- Log or capture progress
- Save or document completed work
- Create/update
agent-contextsnotes
File Convention
Naming
Use: MM-NN-short-desc.md
MM: major milestoneNN: minor incrementshort-desc: kebab-case summary (2-4 words)
Versioning Rules
- Always append; never overwrite
- Increment
NNfor same milestone updates - Increment
MMfor a new milestone - If user specifies
MM-*, start atMM-00
Location
Store notes in: <project-root>/agent-contexts/
Obsidian Metadata
Every note must start with YAML frontmatter containing:
tagsdatepreviousrelated_contexts
Tag Taxonomy (Session-Scoped)
Always include:
agent-context
Derive additional tags from files changed in the current chat session only.
Allowed tags:
frontend/<feature-module>backend/<route-service>
Do not add global tags such as area/*, topic/*, or stack/*.
Derivation Rules
Use only changed files listed in the current note's Changes Made section.
Frontend mapping:
client/src/features/<feature>/...->frontend/<feature>client/src/modules/<module>/...->frontend/<module>client/src/app/...orclient/app/...->frontend/<first-route-segment>
Backend mapping:
server/src/app/api/<route...>/route.ts->backend/<route...>server/src/lib/modules/<module>/services/<service>.ts->backend/<module>/<service>server/src/lib/modules/<module>/...->backend/<module>
If both sides changed, include both tag types.
If only one side changed, include one tag type.
If neither changed, keep only agent-context.
Related Context Rule
Reference up to 2 prior context files that are semantically relevant.
Selection order:
- Highest overlap in changed paths and domain keywords
- If no semantic overlap, use the 2 most recent notes
- If fewer than 2 exist, include only available notes
Write references in:
- Frontmatter:
related_contexts - Body:
## Related Contexts
Template
Use: references/file-template.md
Workflow
- Determine next version:
ls <project>/agent-contexts/
- Create note file:
mkdir -p <project>/agent-contexts
touch <project>/agent-contexts/MM-NN-short-desc.md
- Fill template:
- Add summary, changes, decisions, next steps
- Derive tags from this session's changed files only
- Add up to 2 related context links
- Verify output:
ls -la <project>/agent-contexts/
Checklist
- Filename follows
MM-NN-short-desc.md - Frontmatter has
tags,date,previous,related_contexts - Tags follow
frontend/*and/orbackend/*from changed files only - No unrelated global taxonomy tags
- Up to 2 semantically relevant related context links included
- Summary, changes, decisions, next steps completed