agentleFS
mufeedvhmufeedvh/code2prompt/.agents/skills/code2prompt-conventions/SKILL.md

code2prompt-conventions

Skill7.7k starsChanged 3 months agoMITView on GitHub

Follow code2prompt architecture and implementation conventions when changing or reviewing code.

Trending

Quiet since May.about the whole repository

Dec 2025: 2 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the mufeedvh/code2prompt repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about mufeedvh/code2prompt

The biggest 5 of 34 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 34

Talked about on GitHub, Bluesky and Hacker News (34 times).

On GitHub · 15

10 more on GitHub

On Bluesky · 15

10 more on Bluesky

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before changing an unfamiliar area, read the target code, a nearby example, and relevant tests.

    line 10
  2. Distinctive:

    Prefer existing abstractions and dependencies.

    line 35
  3. Very specific:

    Use Result/?; add context at filesystem, Git, parsing, and rendering boundaries.

    line 37
  4. Distinctive:

    Avoid runtime panics for recoverable failures.

    line 38
  5. Very specific:

    Put focused private Rust tests in local #[cfg(test)] mod tests.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
SKILL.md

code2prompt conventions

Before changing an unfamiliar area, read the target code, a nearby example, and relevant tests.

Ownership

  • code2prompt-core: reusable logic, configuration, files, Git, templates, tokenization, analysis, and sessions.
  • code2prompt: CLI, config precedence, stdout/stderr, clipboard, and TUI model/views/widgets.
  • code2prompt-python: thin PyO3 adapter over code2prompt-core.
  • website: site and product documentation, not product semantics.

Implement behavior once, in the lowest appropriate layer.

Code2PromptSession coordinates configuration, selection state, and loaded data. SessionData is the source of truth for loaded codebase and Git results, not for all session state.

Preserve

  • deterministic output where order is visible;
  • optional-feature behavior with and without the feature;
  • intended fallbacks and useful error context;
  • stdout for prompt/data output and stderr for human diagnostics;
  • existing public names, defaults, serialized values, CLI behavior, and Python API unless intentionally changed.

Style

  • Prefer existing abstractions and dependencies.
  • Avoid unrelated refactors.
  • Use Result/?; add context at filesystem, Git, parsing, and rendering boundaries.
  • Avoid runtime panics for recoverable failures.
  • Comments explain why, invariants, compatibility, or non-obvious algorithms.
  • Put focused private Rust tests in local #[cfg(test)] mod tests; use integration tests for public behavior.

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.