agentleFS
almax000almax000/claude-skills/project/SKILL.md

project

Skill1 starsChanged 7 months agoMITView on GitHub

Unified project lifecycle manager — register, initialize, track status, archive, and health-check all local projects. Use for "new project", "list projects", "project status", "archive project", "project health", "register project", "scan projects", "新建项目", "项目列表", "项目状态", "归档项目".

39 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ingest, next and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JaimeGBASkill

    ingest

    Digest an external source (article, paper, transcript, URL, book chapter) and integrate its content into the knowledge base

    Also in 5 projects that use this

  • VercelSkill

    next

    Next.js renderer for json-render that turns JSON specs into full Next.js applications with routes, layouts, SSR, and metadata. Use when working with @json-render/next, building Next.js apps from JSON specs, or creating AI-generated multi-page applications.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    lint

    Run all linting and spell checking for TypeScript and Rust code. Run this before committing to catch style issues, clippy warnings, and misspellings.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    test

    Also in 6 projects that use this

  • OpenAISkill

    audit

    Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.

    Also in 5 projects that use this

  • GoogleSkill

    teach

    Teach the user a new skill or concept, within this workspace.

    Also in 4 projects that use this

  • +2 more from Azure

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. 0 are common, 11 are distinctive, and 11 are very specific to this project.

  • 0

    Common

    Most of the 32 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a new project with the full initialization pipeline.

    line 63
  2. Very specific:

    Ask user for target directory (default: ~/Documents/<name>)

    line 67
  3. Very specific:

    Add entry to project-registry.json with status active

    line 70
  4. Very specific:

    Create the modular .claude/ directory:

    line 75
  5. Very specific:

    Create .claude/product/ with template files:

    line 254
  6. Distinctive:

    Use AskUserQuestion to guide user through filling in VISION and SCOPE basics interactively.

    line 310
  7. Distinctive:

    Ask: "Does this project need localhost ports (e.g., dev server, API, database)?"

    line 314
  8. Very specific:

    Read ~/.claude/port-registry.json to find available ports in 9000-9999

    line 317
  9. Distinctive:

    Look up project in registry

    line 367
  10. Distinctive:

    If project has a local path, check:

    line 368
  11. Distinctive:

    If status change requested (user says "pause it", "archive it", etc.):

    line 374
  12. Distinctive:

    Update status in registry

    line 375
  13. Very specific:

    Update the updated date

    line 376
  14. Distinctive:

    If no name and running inside a project directory:

    line 379
  15. Very specific:

    Check if /Volumes/Sandisk is mounted

    line 389
  16. Very specific:

    Update status to archived in registry

    line 392
  17. Distinctive:

    Ask: "Delete local directory to free disk space?" (only if backup succeeded)

    line 393
  18. Very specific:

    If yes, delete and set path to null

    line 394
  19. Distinctive:

    Ask user for: description, tags

    line 433
  20. Very specific:

    Read scan_dirs from registry

    line 441
  21. Distinctive:

    Ask user: "Register all / select individually / skip?"

    line 445
  22. Very specific:

    Expand ~ to full path: when running shell commands, but store as ~ in registry for portability

    line 456

“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “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

/project — Unified Project Lifecycle Manager

Manage the full lifecycle of all local projects through a single registry at ~/.claude/project-registry.json.

Status lifecycle: active → paused → archived → deleted

Command Routing

Parse the user's input to determine which command to execute:

Input PatternCommand
/project new <name>New — Create a new project from scratch
/project listList — Show all registered projects
/project status [name]Status — View/update a project's status
/project archive <name>Archive — Archive a project
/project healthHealth — Scan for issues across all projects
/project registerRegister — Register the current directory as a project
/project scanScan — Auto-discover unregistered projects
/project (no args)List (default)

Registry Format

File: ~/.claude/project-registry.json

{
  "version": "1.0.0",
  "scan_dirs": ["~/Documents", "~/Movies", "~/Music", "~/Photos"],
  "projects": {
    "<name>": {
      "path": "~/Documents/<name>",
      "status": "active|paused|archived|deleted",
      "description": "One-line description",
      "stack": "Key technologies",
      "created": "YYYY-MM-DD",
      "updated": "YYYY-MM-DD",
      "tags": ["tag1", "tag2"],
      "ports": [3000, 5173],
      "remote": "https://github.com/...",
      "archive_note": "(only for archived projects)"
    }
  }
}

Command: /project new <name>

Create a new project with the full initialization pipeline.

Phase 1: Register

  1. Ask user for target directory (default: ~/Documents/<name>)
  2. Create directory: mkdir -p <path>
  3. Initialize git: cd <path> && git init
  4. Add entry to project-registry.json with status active
  5. Auto-detect: ask user for description, stack, tags

Phase 2: .claude/ Structure

Create the modular .claude/ directory:

.claude/
├── agents/
│   ├── code-reviewer.md
│   ├── debugger.md
│   ├── deep-researcher.md
│   ├── general-researcher.md
│   └── lite-researcher.md
├── hooks/
│   ├── error-lesson-reminder.sh
│   └── session-start-read-lessons.sh
├── rules/
│   ├── code-quality.md
│   ├── git-workflow.md
│   └── _error-lessons.md
└── settings.json

Agent templates:

code-reviewer.md:

---
model: sonnet
description: Code quality and security review
---
Review the code changes for: quality, security, maintainability, and test coverage.
Focus on: OWASP top 10, error handling, edge cases, naming clarity.
Output: structured review with severity levels (critical/warning/info).

debugger.md:

---
model: sonnet
description: Root cause analysis and minimal fixes
---
Diagnose the issue by: reading error messages, tracing code paths, checking recent changes.
Focus on root cause, not symptoms. Propose the minimal fix.
Do NOT refactor surrounding code or add unrelated improvements.

deep-researcher.md:

---
model: opus
description: Deep technical research — architecture, source analysis, advanced concepts
---
Conduct deep research. Read source code, analyze architecture, explore advanced concepts.
Return detailed analysis with complete code examples.

general-researcher.md:

---
model: sonnet
description: Daily research — comparisons, best practices, API usage
---
Research the topic efficiently. Compare options, check latest developments, find practical solutions.
Return concise summary with actionable recommendations.

lite-researcher.md:

---
model: haiku
description: Quick lookups and batch scanning
---
Quick research. Find the answer fast, keep it brief.

error-lesson-reminder.sh:

#!/bin/bash
echo "reminder: Check _error-lessons.md before ending session. Record any new lessons learned."

session-start-read-lessons.sh:

#!/bin/bash
if [ -f ".claude/rules/_error-lessons.md" ]; then
  echo "reminder: Review error lessons at .claude/rules/_error-lessons.md"
fi

code-quality.md:

# Code Quality Standards

## Limits
| Metric | Limit |
|--------|-------|
| Function length | <= 50 lines |
| File length | <= 700 lines (soft), 1000 lines (hard) |
| Cyclomatic complexity | <= 10 |

## Comments
- Minimize — code should be self-explanatory
- Only comment non-obvious business rules or platform gotchas
- 1 line preferred, 3 lines max

## Naming
- Components/Classes: PascalCase
- Functions/variables: camelCase
- Constants: UPPER_SNAKE_CASE
- Booleans: is/has/should/can prefix

git-workflow.md:

# Git Workflow

## Commit Format
\`\`\`
<type>(<scope>): <subject>
\`\`\`

| Type | Description |
|------|-------------|
| feat | New feature |
| fix | Bug fix |
| docs | Documentation |
| refactor | Refactoring |
| test | Tests |
| chore | Build/tooling |

## Principles
- One commit, one logical change
- Concise, meaningful messages
- English by default (check project CLAUDE.md for overrides)

_error-lessons.md:

# Error Lessons

> Record mistakes to prevent repeating them.

## Template
\`\`\`
## EXXX: Short Title
**Severity**: HIGH / MEDIUM / LOW
**Date**: YYYY-MM-DD
**Context**: What were you doing?
**Mistake**: What went wrong?
**Rule**: What should be done instead?
\`\`\`

## Lessons

(none yet)

settings.json:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Stop",
        "hooks": [".claude/hooks/error-lesson-reminder.sh"]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "SessionStart",
        "hooks": [".claude/hooks/session-start-read-lessons.sh"]
      }
    ]
  }
}

Make all .sh files executable with chmod +x.

Phase 3: Product Context

Create .claude/product/ with template files:

VISION.md:

# Vision

## Problem
What problem does this project solve?

## Solution
How does it solve it?

## Differentiation
What makes this different from alternatives?

USERS.md:

# Users

## Primary User
- **Who**:
- **Use case**:
- **Pain point**:

## Secondary Users
(add as discovered)

SCOPE.md:

# Scope

## Core Features (IN)
-

## Out of Scope (NOT doing)
-

## Future Consideration
-

ROADMAP.md:

# Roadmap

## Current Milestone
- **Goal**:
- **Target**:

## Decision Log
| Date | Decision | Rationale |
|------|----------|-----------|

Use AskUserQuestion to guide user through filling in VISION and SCOPE basics interactively.

Phase 4: Port Reservation

Ask: "Does this project need localhost ports (e.g., dev server, API, database)?"

If yes:

  1. Read ~/.claude/port-registry.json to find available ports in 9000-9999
  2. Reserve requested number of ports
  3. Update port-registry.json
  4. Record ports in project-registry.json

Phase 5: CLAUDE.md Generation

Generate a project CLAUDE.md with:

  • Project name and description
  • Quick start commands
  • Directory structure reference
  • Port assignments (if any)
  • Reference to .claude/ modular structure

Phase 6: Summary

Output a creation summary:

Project "<name>" created at <path>

  .claude/     agents(5), hooks(2), rules(3)
  product/     VISION, USERS, SCOPE, ROADMAP
  ports:       <list or none>
  remote:      <not yet — run `git remote add origin <url>` when ready>

Next steps:
  1. cd <path>
  2. Start coding or run `/product update` to refine product context

Command: /project list

  1. Read ~/.claude/project-registry.json
  2. Output table sorted by: status (active first), then updated date (newest first)
  3. Format:
| # | Project | Status | Stack | Updated | Path |
|---|---------|--------|-------|---------|------|

Show summary counts: X active, Y paused, Z archived.


Command: /project status [name]

If name provided:

  1. Look up project in registry
  2. If project has a local path, check:
    • git log -1 --format="%ai" for last commit
    • du -sh for disk usage
    • git status --short for uncommitted changes
  3. Display full project info

If status change requested (user says "pause it", "archive it", etc.):

  1. Update status in registry
  2. Update the updated date
  3. Confirm change

If no name and running inside a project directory:

  • Auto-detect project from current working directory matching registry paths

Command: /project archive <name>

  1. Look up project in registry
  2. Confirm with user: "Archive <name>? This will update the registry. Options: backup to SanDisk / just mark as archived"
  3. If backup requested:
    • Check if /Volumes/Sandisk is mounted
    • zip -r -q /Volumes/Sandisk/<name>.zip <path>
    • Record archive location in archive_note
  4. Update status to archived in registry
  5. Ask: "Delete local directory to free disk space?" (only if backup succeeded)
  6. If yes, delete and set path to null

Command: /project health

Scan all projects and report issues:

1. Disk Usage (top 5)

For each registered project with a local path, run du -sh and rank.

2. Stale Projects

Projects with status: active but last git commit > 30 days ago. Suggest pausing.

3. Unregistered Projects

Scan scan_dirs for directories containing .git or .claude that are NOT in the registry. List them and offer batch registration.

4. Redundancy Detection

Projects with similar stack and tags where both are paused. Flag for potential consolidation.

5. Port Conflicts

Cross-reference ports across all projects. Flag any duplicates.

6. Summary & Recommendations

For each issue, suggest a specific action: register, pause, archive, cleanup, consolidate.


Command: /project register

Register the current working directory as an existing project.

  1. Determine project name from directory name (allow override)
  2. Auto-detect:
    • stack: from package.json (Node/TS), pyproject.toml/requirements.txt (Python), Cargo.toml (Rust), go.mod (Go), build.gradle (Java)
    • remote: from git remote get-url origin
    • created: from git log --reverse --format="%ai" | head -1
    • updated: from git log -1 --format="%ai"
    • ports: from existing port-registry.json entries matching this project
  3. Ask user for: description, tags
  4. Write to registry
  5. Confirm registration

Command: /project scan

  1. Read scan_dirs from registry
  2. For each dir, find subdirectories containing .git or .claude (max depth 2)
  3. Compare with registry — identify unregistered projects
  4. For each unregistered project, show: name, path, last commit date, size
  5. Ask user: "Register all / select individually / skip?"
  6. For selected projects, run the register flow (auto-detect + ask description/tags)

Important Rules

  • Always read ~/.claude/project-registry.json before any operation — it is the single source of truth
  • Always write back to registry after modifications — keep it in sync
  • Never delete local files without explicit user confirmation
  • Backup before delete — always offer backup option before removing local directories
  • Expand ~ to full path when running shell commands, but store as ~ in registry for portability

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.