agentleFS
shiqudashiquda/roadmap-skill/AGENTS.md

roadmap-skill

AGENTS.md78 starsChanged 10 months agoMITView on GitHub

All commit messages must be written in English. Follow Conventional Commits specification:

  • Commits and pushes
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 33,398 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.

  • In this repository2 other files it gives its agents.

The file

Show its rules and text

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

23 rules. About 0 are common, 14 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow Conventional Commits specification:

    line 9
  2. Distinctive:

    Unused code: Not allowed (noUnusedLocals, noUnusedParameters)

    line 73
  3. Distinctive:

    Implicit returns: Not allowed (noImplicitReturns)

    line 74
  4. Very specific:

    Use ES modules ("type": "module" in package.json)

    line 78
  5. Distinctive:

    Prefer named imports over default imports

    line 80
  6. Very specific:

    Private class members: Use private modifier (not # prefix)

    line 101
  7. Distinctive:

    Always define explicit return types for public functions

    line 105
  8. Very specific:

    Use interface for object shapes that may be extended

    line 106
  9. Very specific:

    Use type for unions, intersections, and complex types

    line 107
  10. Very specific:

    Prefer null over undefined for optional values

    line 108
  11. Distinctive:

    All dates are stored as ISO 8601 strings

    line 109
  12. Distinctive:

    Use explicit error checking instead of try-catch when possible

    line 124
  13. Very specific:

    Always check for ENOENT errors when reading files

    line 125
  14. Distinctive:

    Use JSDoc for public methods and functions

    line 146
  15. Distinctive:

    Keep comments concise and up-to-date

    line 147
  16. Distinctive:

    Use Vitest with globals enabled

    line 164
  17. Very specific:

    Test file pattern: tests//*.{test,spec}.{js,ts}

    line 165
  18. Very specific:

    Use describe/it blocks for organizing tests

    line 166
  19. Very specific:

    Use beforeEach/afterEach for setup/teardown

    line 167
  20. Distinctive:

    Do not use Taobao mirror or other third-party registries

    line 190
  21. Distinctive:

    Commit message follows Conventional Commits format (in English)

    line 200
  22. Distinctive:

    Before releasing a new version, ensure:

    line 216
  23. Distinctive:

    Add new version section at the TOP of CHANGELOG.md

    line 220

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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

Project Guidelines

Git Commit Messages

All commit messages must be written in English.

Format

Follow Conventional Commits specification:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Types

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • chore: Changes to the build process or auxiliary tools

Examples

feat: add task priority sorting to kanban board

fix: resolve CI build failure by switching from Taobao registry to npm official registry

docs: update README with installation instructions

refactor(storage): simplify task update logic

Build & Test Commands

# Development
npm run dev              # Start development mode with watch

# Building
npm run build            # Full build (Node + Web)
npm run build:web        # Build only web frontend

# Type checking
npm run typecheck        # Run TypeScript type checking without emitting

# Testing
npm run test             # Run tests in watch mode
npm run test:unit        # Run unit tests once
npm run test:integration # Run integration tests once

# Run a single test file
npx vitest run tests/unit/storage.test.ts

# Run tests matching a pattern
npx vitest run --reporter=verbose --testNamePattern="createProject"

Code Style Guidelines

TypeScript

  • Target: ES2022 with NodeNext module resolution
  • Strict mode: Enabled - all strict TypeScript options must pass
  • Unused code: Not allowed (noUnusedLocals, noUnusedParameters)
  • Implicit returns: Not allowed (noImplicitReturns)

Imports & Modules

  • Use ES modules ("type": "module" in package.json)
  • Include .js extension in imports: import { foo } from './bar.js'
  • Prefer named imports over default imports
  • Group imports: built-ins → external → internal (separated by blank line)

Example:

import { readFile } from 'fs/promises';
import { join } from 'path';

import { z } from 'zod';

import { Project } from '../models/index.js';
import { readJsonFile } from '../utils/file-helpers.js';

Naming Conventions

  • Files: kebab-case (e.g., file-helpers.ts, project-tools.ts)
  • Classes: PascalCase (e.g., ProjectStorage, TaskManager)
  • Interfaces/Types: PascalCase (e.g., ProjectData, TaskStatus)
  • Functions/Variables: camelCase (e.g., createProject, getFilePath)
  • Constants: UPPER_SNAKE_CASE for true constants only
  • Private class members: Use private modifier (not # prefix)

Types

  • Always define explicit return types for public functions
  • Use interface for object shapes that may be extended
  • Use type for unions, intersections, and complex types
  • Prefer null over undefined for optional values
  • All dates are stored as ISO 8601 strings

Example:

export interface Project {
  id: string;
  name: string;
  dueDate: string | null; // ISO 8601 date string or null
}

export type ProjectStatus = 'active' | 'completed' | 'archived';

Error Handling

  • Use explicit error checking instead of try-catch when possible
  • Always check for ENOENT errors when reading files
  • Log errors to console.error with descriptive messages
  • Exit process with code 1 on fatal errors

Example:

async readProject(projectId: string): Promise<ProjectData | null> {
  try {
    const filePath = this.getFilePath(projectId);
    return await readJsonFile<ProjectData>(filePath);
  } catch (error) {
    if (error instanceof Error && error.message.includes('ENOENT')) {
      return null;
    }
    throw error;
  }
}

Comments & Documentation

  • Use JSDoc for public methods and functions
  • Keep comments concise and up-to-date
  • Explain "why" not "what" (code should be self-documenting)

Example:

/**
 * Create a new project with generated ID and timestamps
 * @param input - Project creation data (without ID/timestamps)
 * @returns The complete project data including generated fields
 */
async createProject(input: CreateProjectInput): Promise<ProjectData> {
  // Implementation...
}

Testing

  • Use Vitest with globals enabled
  • Test file pattern: tests/**/*.{test,spec}.{js,ts}
  • Use describe/it blocks for organizing tests
  • Use beforeEach/afterEach for setup/teardown
  • Tests should be independent and not rely on execution order

Example:

describe('ProjectStorage', () => {
  let storage: ProjectStorage;

  beforeEach(() => {
    storage = new ProjectStorage();
  });

  describe('createProject', () => {
    it('should create a project with valid input', async () => {
      // Test code...
    });
  });
});

Dependencies

  • Always use npm official registry (https://registry.npmjs.org/)
  • Do not use Taobao mirror or other third-party registries
  • The .npmrc file enforces this - do not override it
  • Node.js version requirement: >=20.0.0

Pre-commit Checklist

Before committing, ensure:

  1. npm run typecheck passes
  2. npm run test:unit passes
  3. Code follows existing patterns in the codebase
  4. Commit message follows Conventional Commits format (in English)

Release Workflow

This project uses GitHub Actions for automated npm publishing.

Version Numbering

Follow Semantic Versioning:

  • MAJOR.MINOR.PATCH
  • MAJOR: Breaking changes
  • MINOR: New features (backward compatible)
  • PATCH: Bug fixes

Pre-release Checklist

Before releasing a new version, ensure:

  1. Update CHANGELOG
    • View changes since last tag: git log v0.2.8..HEAD --oneline
    • Add new version section at the TOP of CHANGELOG.md
    • Categorize changes: Added / Changed / Fixed / Removed
    • Format: ## [0.2.9] - 2026-02-26
  2. Run tests
    npm run typecheck
    npm run test:unit
  3. Build verification
    npm run build
  4. Commit CHANGELOG update
    git add CHANGELOG.md
    git commit -m "docs: update changelog for v0.2.9"

How to Release

  1. Bump version (creates git tag automatically):
    npm version patch   # or minor / major
  2. Push commits and tag:
    git push
    git push origin v0.2.9
  3. CI automatically publishes to npm registry

CI/CD Flow

  • On tag push (v*), GitHub Actions automatically:
    1. Runs tests on Node.js 20.x and 22.x
    2. Builds the project
    3. Publishes to npm with provenance

DO NOT run npm publish locally - let CI handle it via NPM_TOKEN secret.

Development Commands

# Development
npm run dev:web        # Frontend dev server (port 7861, with HMR)
npm run dev:server     # Backend server (port 7863)
npm run dev:full       # Start both frontend and backend

# Debug
npm run inspector      # Launch MCP Inspector for debugging

# Build & Test
npm run build          # Full build
npm run typecheck      # TypeScript check
npm run test:unit      # Unit tests

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.