agentleFS
mryeminaungmryeminaung/documentation-assistant/CLAUDE.md

documentation-assistant

CLAUDE.md9 starsChanged 5 months agoMITView on GitHub

Documentation Assistant is an AI-powered tool that helps developers understand, analyze, and generate documentation for software projects. The main goal of this project is to reduce the effort required to document codebases by using AI assistance to: When writing code: Since this project focuses on documentation: When assisting with this project: Before creating commits: Common commit types: feat: add repository scanning feature fix: handle missing documentation files docs: update installation guide refactor: simplify file processing logic test: add documentation parser…

  • Reads credentials

The file

Show its rules and text

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

26 rules. About 0 are common, 24 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈24

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Create a simple workflow that developers can use with minimal setup.

    line 22
  2. Distinctive:

    Always understand the existing project structure before making changes.

    line 30
  3. Distinctive:

    Do not modify files unrelated to the requested feature.

    line 31
  4. Distinctive:

    Prefer simple and maintainable solutions.

    line 32
  5. Distinctive:

    Follow existing coding patterns in the repository.

    line 33
  6. Distinctive:

    Keep functions small and focused.

    line 34
  7. Distinctive:

    Write clean and readable code.

    line 43
  8. Distinctive:

    Use meaningful variable and function names.

    line 44
  9. Distinctive:

    Add comments only when the logic is not obvious.

    line 45
  10. Distinctive:

    Keep the project easy for new contributors to understand.

    line 48
  11. Distinctive:

    Do not invent information that does not exist in the source code.

    line 57
  12. Distinctive:

    Always verify generated content against the actual implementation.

    line 58
  13. Distinctive:

    When assisting with this project:

    line 71
  14. Distinctive:

    Avoid large refactoring unless requested.

    line 77
  15. Distinctive:

    Ensure the application builds successfully.

    line 85
  16. Distinctive:

    Check for syntax errors.

    line 86
  17. Distinctive:

    Verify that existing features still work.

    line 87
  18. Distinctive:

    Make sure the commit message clearly describes the actual changes.

    line 89
  19. Very specific:

    Avoid generic commit messages such as update, changes, or modify.

    line 91
  20. Distinctive:

    Update documentation if needed.

    line 122
  21. Distinctive:

    Never expose API keys or secrets.

    line 128
  22. Very specific:

    Do not commit .env files.

    line 129
  23. Distinctive:

    Avoid executing unsafe user-provided code.

    line 132
  24. Distinctive:

    Before considering a task complete:

    line 138
  25. Distinctive:

    Test the changed functionality.

    line 140
  26. Distinctive:

    Ensure documentation matches the implementation.

    line 143

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.md
<!-- Before doing or changing anything, read CLAUDE.md and README.md first. -->

Project Overview

Documentation Assistant is an AI-powered tool that helps developers understand, analyze, and generate documentation for software projects.

The main goal of this project is to reduce the effort required to document codebases by using AI assistance to:

  • Analyze project structure
  • Understand source code
  • Generate meaningful documentation
  • Help developers quickly understand unfamiliar repositories

Project Goals

  1. Build a reliable documentation generation assistant.
  2. Provide clear and useful explanations of code.
  3. Generate developer-friendly documentation.
  4. Maintain accuracy by using the existing codebase as the source of truth.
  5. Create a simple workflow that developers can use with minimal setup.

Development Guidelines

General Rules

  • Always understand the existing project structure before making changes.
  • Do not modify files unrelated to the requested feature.
  • Prefer simple and maintainable solutions.
  • Follow existing coding patterns in the repository.
  • Keep functions small and focused.
  • Avoid unnecessary dependencies.

Code Quality

When writing code:

  • Write clean and readable code.
  • Use meaningful variable and function names.
  • Add comments only when the logic is not obvious.
  • Handle errors properly.
  • Avoid duplicated code.
  • Keep the project easy for new contributors to understand.

Documentation Rules

Since this project focuses on documentation:

  • Generated documentation must be clear and beginner-friendly.
  • Do not invent information that does not exist in the source code.
  • Always verify generated content against the actual implementation.
  • Explain:

    • Purpose of files
    • Important functions/classes
    • Data flow
    • Dependencies
    • Setup instructions

AI Assistant Behavior

When assisting with this project:

  1. First analyze the repository structure.
  2. Understand the existing implementation before suggesting changes.
  3. Explain the reason behind recommended changes.
  4. Prefer incremental improvements.
  5. Avoid large refactoring unless requested.

Git Workflow

Before creating commits:

  • Ensure the application builds successfully.
  • Check for syntax errors.
  • Verify that existing features still work.
  • Review changed files before committing.
  • Make sure the commit message clearly describes the actual changes.
  • The commit message name must be related to the features added, bugs fixed, or improvements made.
  • Avoid generic commit messages such as update, changes, or modify.

Common commit types:

  • feat: — Add a new feature
  • fix: — Fix a bug or unexpected behavior
  • docs: — Update documentation
  • refactor: — Improve code structure without changing functionality
  • test: — Add or update tests
  • chore: — Update configuration or maintenance tasks

Examples:

feat: add repository scanning feature fix: handle missing documentation files docs: update installation guide refactor: simplify file processing logic test: add documentation parser tests chore: update project dependencies


Feature Development Process

For new features:

  1. Understand the requirement.
  2. Review existing architecture.
  3. Plan the implementation.
  4. Implement the smallest working solution.
  5. Test the feature.
  6. Update documentation if needed.

Security Guidelines

  • Never expose API keys or secrets.
  • Do not commit .env files.
  • Validate external inputs.
  • Handle file access carefully.
  • Avoid executing unsafe user-provided code.

Testing

Before considering a task complete:

  • Test the changed functionality.
  • Check edge cases.
  • Verify error handling.
  • Ensure documentation matches the implementation.

Project Philosophy

The Documentation Assistant should help developers understand software faster.

Prioritize:

  1. Accuracy over assumptions.
  2. Simplicity over complexity.
  3. Helpful explanations over technical jargon.
  4. Maintainable code over quick hacks.

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.