AGENT SKILL

note

Saves something worth remembering to dev-graph (team decisions, gotchas, invariants, follow-ups for this repo) or your second-brain (personal preferences, insights, people, open questions), always asking which one first. Use when the user says "remember that…", "note this", "add to my second brain", "add to dev-graph", "save this decision", "I always want…" or "open question: …".

License 许可
MIT
所属仓库
varun-singhh/lfg
最近更新
2026-10-26
Stars
★ 10
Forks
3

01 前言 Front Matter

name
note
lanes
[ "express", "standard", "full", "hotfix" ]
phase
helper
reads
[ "dev-graph", "second-brain" ]
author
Varun Singh
writes
[ "dev-graph Decision/Learning/Invariant/Principle/Issue", "second-brain Note/Person" ]
description
Saves something worth remembering to dev-graph (team decisions, gotchas, invariants, follow-ups for this repo) or your second-brain (personal preferences, insights, people, open questions), always asking which one first. Use when the user says "remember that…", "note this", "add to my second brain", "add to dev-graph", "save this decision", "I always want…" or "open question: …".
auto-trigger
true

03 SKILL.md 正文

Step 0: preflight

No graph preflight: /note never touches code. lfg rule remember for the item format and the stored queries. Optionally lfg run path to link the item to the current run; carry on if there is none.

Steps

  1. Distil what the user said into one or two plain sentences in their words. Several facts become several items.
  2. Classify each item and propose a graph (see the table in lfg rule remember):
    • dev-graph (team, this repo): Decision with its why, Learning (gotcha, root cause, landmine), Invariant, Principle, Issue (follow-up).
    • second-brain (personal, every project): Note with a kind (preference, insight, question, idea, reflection), or a Person.
  3. Check for secrets and others' personal data. Refuse to store that part and say why.
  4. Ask before writing, even when the user named a graph and it fits: show the Remember? block from the rule module (exact text, proposed graph and kind) and wait. The user can switch the graph, pick both, edit the text or skip.
  5. De-duplicate in the chosen graph with LFG's keyword queries from ~/.lfg/plugin/omnigraph/*.gq (find_decisions, find_learnings, find_invariants, find_notes; people_all for people). A near match becomes a proposal to update it; ask again.
  6. Write with the Omnigraph MCP mutate tool to the graph the user picked: record_decision, add_learning, create_issue, save_note (LFG's, keeps the text and tags), add_person; for Invariant/Principle read schema_get and insert. Tags: repo, topic, run id. Link to the repo's Component (dev-graph) or Project (second-brain, link_note_about_project) when one exists.
  7. Confirm in one line per item: graph, kind, text, node id.

Output

The approved nodes, plus a one-line confirmation per item in chat. Nothing in the repo or the run folder (except "To remember" in progress.md when the graph is down).

Rules

  • Never write before the user picked the graph for that item.
  • A Principle is enforced by /review-coach, so say that when proposing one.
  • Never store secrets or credentials, even if asked.
  • Store what the user said, not your elaboration of it.

04 同仓库更多 Skills

varun-singhh
varun-singhh/lfg

wizard

Guided start-to-finish run of the whole pipeline on an idea or a Linear issue. Runs every stage (grill, plan, build, check, secure, pentest, review, ship check, ship packet, learn), explains each one in plain words before and after, and loops failures through /fix until all 8 gates are green (max 3 loops per gate). Use when the user types "/wizard <idea>", "/wizard LIN-123", "/wizard resume", "walk me through everything", "do every step and explain it". Explicit only; never auto-triggered.

★ 10
varun-singhh
varun-singhh/lfg

why

Explains why code looks the way it does: the commits that shaped a file, a function or a few lines, what each one changed and why, and the issues, tickets and pull requests they mention. Use when the user asks "why is this here?", "why was this changed?", "who added this and what for?", "what's the story behind X?", or is about to change code they don't understand.

★ 10
varun-singhh
varun-singhh/lfg

which

Looks at graph status, the current run folder, git status and Linear, then tells you the single next skill to run and why. Use when the user says "which skill do I use?", "what now?", "what next?", "where was I?", "I'm lost", or starts a session without saying what they want.

★ 10
varun-singhh
varun-singhh/lfg

suggest-tests

Suggest tests you should write based on your code. Uses AST parsing to find functions and suggests tests based on code patterns. Use when writing new code or modifying existing code.

★ 10
varun-singhh
varun-singhh/lfg

spike

Builds a throwaway prototype to answer one design question, in a scratch folder inside the run folder, then deletes it and keeps only the conclusion. Use when the user says "try a quick prototype", "would this approach work?", "spike this", "let me feel this state model", "show me a few UI options", or when a plan has an open question that a cheap working artifact would settle.

★ 10
varun-singhh
varun-singhh/lfg

ship

Proves the change is shippable and hands it to you: re-runs the green gate, runs the ship check (Docker build, scan, run, smoke test, delete, verify cleanup) and the shipping checklist, then writes COMMIT_MSG.md and PR_BODY.md. Never commits, pushes or deploys. Use when the user says "ship it", "ready for a PR", "prep the commit", "is it shippable?".

★ 10