roadmap-skill
AGENTS.md81 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 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.
In this repository6 other files it gives its agents.
- llms-full.txtllms.txt
- llms.txtllms.txt
- roadmap-planning-viewsSkill
- roadmapSkill
- roadmap-task-flowSkill
- roadmap-web-visualizationSkill
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
- Distinctive: line 9
Follow Conventional Commits specification:
- Distinctive: line 73
Unused code: Not allowed (noUnusedLocals, noUnusedParameters)
- Distinctive: line 74
Implicit returns: Not allowed (noImplicitReturns)
- Very specific: line 78
Use ES modules ("type": "module" in package.json)
- Distinctive: line 80
Prefer named imports over default imports
- Very specific: line 101
Private class members: Use private modifier (not # prefix)
- Distinctive: line 105
Always define explicit return types for public functions
- Very specific: line 106
Use interface for object shapes that may be extended
- Very specific: line 107
Use type for unions, intersections, and complex types
- Very specific: line 108
Prefer null over undefined for optional values
- Distinctive: line 109
All dates are stored as ISO 8601 strings
- Distinctive: line 124
Use explicit error checking instead of try-catch when possible
- Very specific: line 125
Always check for ENOENT errors when reading files
- Distinctive: line 146
Use JSDoc for public methods and functions
- Distinctive: line 147
Keep comments concise and up-to-date
- Distinctive: line 164
Use Vitest with globals enabled
- Very specific: line 165
Test file pattern: tests//*.{test,spec}.{js,ts}
- Very specific: line 166
Use describe/it blocks for organizing tests
- Very specific: line 167
Use beforeEach/afterEach for setup/teardown
- Distinctive: line 190
Do not use Taobao mirror or other third-party registries
- Distinctive: line 200
Commit message follows Conventional Commits format (in English)
- Distinctive: line 216
Before releasing a new version, ensure:
- Distinctive: line 220
Add new version section at the TOP of CHANGELOG.md
≈ “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.
Files
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 featurefix: A bug fixdocs: Documentation only changesstyle: 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 featureperf: A code change that improves performancetest: Adding missing tests or correcting existing testschore: 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 logicBuild & 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
.jsextension 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
privatemodifier (not#prefix)
Types
- Always define explicit return types for public functions
- Use
interfacefor object shapes that may be extended - Use
typefor unions, intersections, and complex types - Prefer
nulloverundefinedfor 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
ENOENTerrors when reading files - Log errors to
console.errorwith 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/itblocks for organizing tests - Use
beforeEach/afterEachfor 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
.npmrcfile enforces this - do not override it - Node.js version requirement:
>=20.0.0
Pre-commit Checklist
Before committing, ensure:
npm run typecheckpassesnpm run test:unitpasses- Code follows existing patterns in the codebase
- 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:
- 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
- View changes since last tag:
- Run tests
npm run typecheck npm run test:unit - Build verification
npm run build - Commit CHANGELOG update
git add CHANGELOG.md git commit -m "docs: update changelog for v0.2.9"
How to Release
- Bump version (creates git tag automatically):
npm version patch # or minor / major - Push commits and tag:
git push git push origin v0.2.9 - CI automatically publishes to npm registry
CI/CD Flow
- On tag push (
v*), GitHub Actions automatically:- Runs tests on Node.js 20.x and 22.x
- Builds the project
- 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 testsDoes 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
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.

