skills/project-mgmt/create-context-file/SKILL.md
Creates a structured, date-stamped context file filed by typology (findings, plans, guides, follow-ups, merge-requests, tickets, decisions, notes, research) with YAML frontmatter. Use when saving a finding, writing a plan, capturing a guide, recording a decision, logging a follow-up, filing a merge-request note, plus ticket write-ups.
npx skillsauth add pantheon-org/tekhne create-context-fileInstall 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.
Persist a working artifact into the project's context directory, filed by typology and named with a date prefix so it sorts chronologically and never collides.
Choose the typology from the curated set. — Stop if: none fits and the need will not recur; reuse the closest match instead of adding a folder.
Inspect what already exists for that typology to avoid duplicates:
ls .context/findings/
Expected result: the existing files, so you can confirm none already covers this artifact.
Run the generator with a specific, task-tied title. — Verify: the printed path uses the expected typology plus date.
Fill in the body beneath the generated heading. — Stop if: the content spans two typologies; split it into separate files.
# Create a finding with tags
./scripts/create-context-file.sh --type findings --title "Auth token analysis" \
--tags "auth,oauth"
Expected result: a new dated finding file, printed as the only stdout line.
# Multi-line body via heredoc
./scripts/create-context-file.sh --type plans --title "Retriever rollout" << 'EOF'
## Phase 1
...
EOF
Expected result: a dated plan file containing the heredoc body.
# Preview without writing
./scripts/create-context-file.sh --type merge-requests --title "PLG-1234" --dry-run
Expected result: the target path plus full file body printed; nothing written.
# A deliberate one-off typology
./scripts/create-context-file.sh --type experiments --title "spike" --allow-new-type
Expected result: a file under a new typology folder, created knowingly.
Full option list: see the CLI reference below.
WHY: the same artifact captured twice fragments context and breaks search.
BAD: run the generator immediately for a plan that already exists. GOOD: list the folder, confirm nothing covers it, then create.
Consequence: duplicate, drifting files that later readers cannot reconcile — a common pitfall once a repository grows.
notes or todoWHY: vague slugs collide and read as noise when sorted by date.
BAD: --title "notes" yields a notes.md that clashes across tasks.
GOOD: --title "API refactor findings" yields a specific, searchable name.
Consequence: unsearchable filenames plus silent name clashes in production repositories.
WHY: a finding, a plan, and a follow-up have different lifecycles and readers.
BAD: one file holding analysis, a rollout plan, and open questions. GOOD: three files, one per typology, cross-referenced if needed.
Consequence: no file can be retired cleanly; each keeps stale content alive.
WHY: the date prefix plus ISO date power sorting and downstream tooling.
BAD: rename to drop the date, or set date: Jul 21st.
GOOD: let the generator produce both; keep the original date on later edits.
Consequence: broken chronological ordering plus frontmatter parse failures.
WHY: ad-hoc folders erode the curated set that makes context navigable.
BAD: create a bespoke folder for a single throwaway note.
GOOD: reuse the closest typology, or pass --allow-new-type knowingly.
Consequence: folder sprawl that defeats predictable retrieval — a slow pitfall.
tools
A skill that produces warnings but no errors.
testing
A well-formed example skill for testing the validator.
development
A skill with code blocks and imperative instructions for testing content and contamination analysis.
tools