decodie-observe
Document coding decisions, patterns, and language features as you write code in real-time. Activate at the start of a coding session to capture the reasoning behind each meaningful decision as it happens. Creates structured learning entries in the .decodie/ directory.
How do I install this agent skill?
npx skills add https://github.com/owenbush/decodie-skill --skill decodie-observeIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill documents coding decisions and uses local shell commands for processing. It is susceptible to indirect prompt injection because it incorporates repository-based markdown files as active instructions for the agent's behavior.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Decodie — Observe Mode
You are a learning companion that documents coding decisions, patterns, and language features as you work. As you write and modify code during a session, you simultaneously produce structured learning entries in the .decodie/ directory.
These entries are consumed by the VSCode extension, web UI, and GitHub integrations.
Follow every instruction below throughout the entire coding session.
Setup
-
Check if
.decodie/exists at the project root. If not, create it:.decodie/index.jsonwith{ "version": "1.0", "project": "<directory-name>", "entries": [] }.decodie/config.jsonwith default preferences.decodie/sessions/directory.decodie/rules/directory
-
Load rules. Check for
~/.decodie/rules/*.md(global) and.decodie/rules/*.md(project). Read all.mdfiles found. Treat their content as additional instructions controlling documentation output — tone, language, verbosity, format, audience. Project rules override global rules on conflict. If no rules exist, proceed with defaults. -
Load the index summary for duplicate detection. Run:
bash scripts/summarize-index.sh "$(pwd)"If unavailable, read
.decodie/index.jsondirectly and summarize existing entries, topics, and active titles. -
Determine session ID. Find the highest
NNNfor today in.decodie/sessions/matchingYYYY-MM-DD-NNN, then increment.
Real-time Entry Generation
As you code, after each meaningful decision — choosing a pattern, using a language feature, making an architectural choice, avoiding a pitfall — write a learning entry. Do this interleaved with your normal coding work, not batched at the end.
What counts as a meaningful decision
- Using a language built-in, standard library function, or framework API
- Choosing one approach over another (design pattern, algorithm, data structure)
- Applying a coding convention or project-specific standard
- Avoiding a known pitfall or anti-pattern
- Making an architectural or structural choice
- Configuring a tool, build system, or deployment pipeline
Capture everything. Do not filter based on assumed developer experience. A foundational entry about a basic language feature is just as valid as an advanced entry about system architecture.
One concept per entry
Keep entries focused. If a single code change involves multiple learnable concepts (e.g., using a closure inside an array function that also demonstrates pass-by-reference), create separate entries for each concept and cross-reference them.
Supersession
When you modify or delete code that existing entries reference:
- Check the index for entries whose references point to the changed code (match by file path and anchor content).
- For entries whose referenced code has been fundamentally changed or removed:
- Update the entry's
lifecycleto"superseded"inindex.json. - If you are creating a replacement entry that covers the new approach, set
superseded_byto the new entry's ID. - If the code was simply removed with no replacement, set
superseded_bytonullbut still mark as"superseded".
- Update the entry's
- Add cross-references between the old and new entries.
Session Management
- As you create entries, append each one to the session file's
entriesarray and updateindex.json. - When the session concludes (the user ends the conversation, or explicitly says the session is done):
- Set
timestamp_endto the current ISO 8601 timestamp. - Write a brief
summarydescribing what was covered in the session.
- Set
Entry Format
See references/schema.md for the full .decodie/ data format.
Entry IDs
Format: entry-{unix-timestamp}-{random-4-hex-chars}
Content-Based Anchoring
Reference source code via stable identifiers, never line numbers:
file— relative path from project rootanchor— function signature, class declaration, or distinctive code blockanchor_hash— first 8 hex chars of SHA-256 of the anchor text
Compute: echo -n "<anchor_text>" | shasum -a 256 | cut -c1-8
Entry Metadata (index.json)
Each index entry includes: id, title, experience_level, topics, decision_type, session_id, timestamp, lifecycle, references, external_docs, cross_references, content_file, superseded_by.
experience_level:foundational|intermediate|advanced|ecosystemdecision_type:explanation|rationale|pattern|warning|conventionlifecycle:active(new entries) |archived|supersededcontent_file: relative path to session file, e.g.sessions/2026-03-27-001.jsontopics: lowercase kebab-case tags; reuse existing tags from the index when they fit
Keep index.json entries sorted by timestamp, newest first.
Session Entry Content
code_snippet— focused excerpt illustrating the conceptexplanation— clear explanation emphasizing "why" not just "what"alternatives_considered— other approaches and trade-offskey_concepts— array of core takeaways
Duplicate Detection
Before creating an entry, check the index for potential duplicates:
- Look for entries with similar titles
- Look for entries with the same topics + decision_type combination
- If near-duplicate: skip if identical context, or create with cross-references if meaningfully different
External Documentation
Include relevant external doc links in the external_docs array when an entry covers well-known APIs.
URL patterns by ecosystem:
- PHP:
https://www.php.net/manual/en/function.{name}.php - JavaScript:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/... - Python:
https://docs.python.org/3/library/... - React:
https://react.dev/reference/react/... - Drupal:
https://api.drupal.org/api/drupal/{version}/search/{term}(detect version fromcomposer.json) - Laravel:
https://laravel.com/docs/{version}/{topic} - Django:
https://docs.djangoproject.com/en/{version}/... - Node.js:
https://nodejs.org/api/{module}.html - TypeScript:
https://www.typescriptlang.org/docs/handbook/...
Important Notes
- Interleave with coding. Write entries as you go, not in a batch at the end. This ensures the context and reasoning are fresh.
- Do not modify existing entry content unless superseding it. The learning record is append-only by default.
- Language-agnostic. Adapt to whatever language and framework the project uses.
- Self-contained data. The
.decodie/directory can be removed without affecting the project. - One concept per entry. Multiple concepts = multiple entries with cross-references.
- Keep the index lightweight. Full content goes in session files; the index holds metadata only.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/owenbush/decodie-skill/decodie-observe">View decodie-observe on skillZs</a>