ilancohen/lodestar-skills

lodestar-docs

- Harvests leftover knowledge from lodestar-owned docs staging into existing canonical homes, then deletes files that would not help an agent starting fresh.

查看源码
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

You are running lodestar-docs. The job is to harvest, then delete leftover writeups so the docs tree stays small. Historical record is not a goal. Git history is the archive.

This skill is optional. The other skills do not depend on it (the other six can run without it). It does not modify application source — only markdown (and, if the user ticks it, an existing Docs map in AGENTS.md).

Scripts live beside this SKILL.md under scripts/. Invoke node <this-skill>/scripts/scope.mjs survey --root <repo> (add --full or --tree <path> when the user widened scope).

Load references one hop from this file. Do not copy their procedures back here.


How to talk to the user

Anything you print or ask is read by a person who is skimming.

  • Ask one clear question at a time. Say what happens for each answer.
  • Name a file by its path, not by an internal key.
  • Never trim or postpone a warning. A live audit run, a harvest with no home, or a spec-vs-code clash stays in.
  • Point first. Bullets, not paragraphs. Blank line between blocks.
  • Bold the first few words of each bullet.

Milestones

Concise chat progress — not diagnostic logs or run files:

  • Opening — docs scope, homes, checks, mutation/commit policy
  • Before long work — survey / propose / harvest / delete
  • At boundaries — proposed counts and next step
  • Closing — harvested/deleted paths, protected skips, actionable failures

Inputs

If .agents/lodestar/context.md is missing, follow references/discover-context.md and continue — observe docs trees the same way setup would. A named --tree or --full also proceeds without context. Do not invent docs/audit as a fallback when nothing is observed and the user named no folder.

When context exists, it is the primary file for repo facts. Do not read AGENTS.md for layout, output-root, or commit policy.

Capture from the survey JSON:

  • <output-root>, <architecture-root>, <commits>
  • <docsLayout> — recorded (or observed) path/role rows
  • <homes> — markdown under home rows
  • <trees> — directories and loose files in this run
  • <files> — each path, size, last commit, protected

Protected rows are out of scope. Never propose deleting them.


Keep-bar

For every file, ask:

Would an agent starting fresh work tomorrow be worse off without this?

The default answer is no. The default action is delete.

A file survives only when you can name the concrete future task it helps. "Someone might want to know how we got here" is not such a task.


Steps

Work in order. Load the named reference before each step.

  1. Scopereferences/scope.md. Run the survey.

Say what you are covering and why. If the tree is already tight, say so and stop.

  1. Homesreferences/homes.md. Route harvested

facts only into <homes>. Never create a new home.

  1. Triagereferences/operations.md. One

operation per file.

  1. Propose, then mutatereferences/workflow.md.

One written proposal. Wait for OK. Harvest commit, then delete commit, honoring <commits>.


Never

  • Application source (packages/**, src/**, or the equivalent in

Package Layout).

  • .agents/lodestar/context.md.
  • Skill definition files (.agents/skills/, .cursor/skills/,

.claude/skills/). If pruning invalidates a skill's assumptions, report that at the end and do not edit the skill.

  • Live audit runs (INDEX.md plus NNN-*.md in the run root).
  • In-flight plans (anything under docs/plans/ except done/ and

abandoned/).

  • Silently updating a spec to match the code when they disagree. Ask

"spec or code?" with file:line on both sides.

来自同一仓库

更多 Skills

全部 Skills
ilancohen
社区

lodestar-audit

- Audits a codebase against the review rubric in context.md ( Review Rubric, or principles only when that section is absent) and writes self-contained findings and action items under the output-root in context.md (default docs/audit/). Discovery only; never modifies application source. Restartable from findings.md. Do not load unless the user explicitly invokes lodestar-audit by name.

安装量
1
GitHub Stars
0
最近更新
9月10日
ilancohen
社区

lodestar-fix

- Triages and executes action items produced by lodestar-audit. Updates item status, verifies changes, and can commit with consent. Modifies application source code. Do not load unless the user explicitly invokes lodestar-fix by name.

安装量
1
GitHub Stars
0
最近更新
9月10日
ilancohen
社区

lodestar-plan

- Writes an implementable plan under the resolved plans root (default docs/plans/) with a rigor: light | standard | full tier. Grounds named files and commands before creating the root or any plan files. The filesystem is the index — no ledger. Does not implement the plan and does not edit application source. Do not load unless the user explicitly invokes lodestar-plan by name.

安装量
1
GitHub Stars
0
最近更新
9月10日
ilancohen
社区

lodestar-setup

- Sets up the lodestar suite in a repository: writes .agents/lodestar/context.md (package layout, conventions, optional dependency policy, audit scope when audit is installed). Principles resolve from the installed lodestar-setup skill. Measures git churn when audit is present. Do not load unless the user explicitly invokes lodestar-setup by name.

安装量
1
GitHub Stars
0
最近更新
9月10日