agentleFS
xigua-wangxigua-wang/skill-doctor/AGENTS.md

skill-doctor

AGENTS.md275 starsChanged 8 months agoMITView on GitHub

Keep new logic close to the runtime that uses it: scanner/storage behavior belongs in src-core/, entrypoint orchestration in scripts/, UI behavior in src/App.tsx, and presentation-only updates in src/styles.css. Typical workflow: run npm run typecheck, then npm run build, then npm run serve to verify the UI against fresh history data.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep new logic close to the runtime that uses it: scanner/storage behavior belongs in src-core/, entrypoint orchestration in scripts/, UI …

    line 12

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Repository Guidelines

Project Structure & Module Organization

skill-doctor is a local-first inspector with a typed scanner core and a local React app:

  • scripts/*.ts: local CLI, frontend build, and dev server entry points.
  • src-core/: scanner, storage, validation, and model-analysis modules.
  • src/: React + TypeScript frontend.
  • public/data/: bundled demo datasets such as demo-scan.json.
  • docs/: product notes, tech plans, and generated reports such as latest-report.md.

Keep new logic close to the runtime that uses it: scanner/storage behavior belongs in src-core/, entrypoint orchestration in scripts/, UI behavior in src/App.tsx, and presentation-only updates in src/styles.css.

Build, Test, and Development Commands

  • npm run scan: scan the current project, run model analysis, and write an immutable snapshot under ~/.skill-doctor/scans.
  • npm run report: generate a fresh scan plus docs/latest-report.md.
  • npm run build: build the React frontend into dist/.
  • npm run serve: start the local Node server at http://localhost:4173.
  • npm run typecheck: run the TypeScript compiler without emitting files.

Typical workflow: run npm run typecheck, then npm run build, then npm run serve to verify the UI against fresh history data.

Coding Style & Naming Conventions

Use modern TypeScript/ESM with 2-space indentation, semicolons, and single quotes, matching src/ and scripts/. Prefer small, focused functions and clear object literals over abstractions. Use camelCase for variables and functions, PascalCase for React components and TypeScript types, and kebab-case for filenames. Avoid new dependencies unless they materially simplify the codebase.

Testing Guidelines

There is no formal automated test suite yet. Validate scanner or analysis changes by running npm run scan or npm run report and checking the stored snapshot or generated report for expected conflicts, precedence chains, risk findings, and analysis output. For UI changes, run npm run build and npm run serve, then verify both history-backed data and the bundled demo dataset in the browser. If you add tests later, place them near the affected module or under a dedicated tests/ directory.

Commit & Pull Request Guidelines

This workspace snapshot does not include .git, so historical commit conventions cannot be verified here. Use short, imperative commit messages such as Add scan history filter or Force model analysis language. Pull requests should describe the behavior change, list validation steps, and include screenshots when src/App.tsx or src/styles.css changes the dashboard.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.