agentleFS
jasonChen0604jasonChen0604/codebase-to-portfolio/skills/init-project-doc/SKILL.md

init-project-doc

Skill2 starsChanged 5 months agoMITView on GitHub

Auto-generate a portfolio-ready project doc (CLAUDE.md / AGENTS.md) from a project's directory structure and source code. Triggers when the user provides a project's directory tree or source snippets and asks to "generate a project doc", "initialize this project", "analyze this project", "產出作品集文件", or "初始化這個專案".

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read profile.config.json from the current working directory.

    line 17
  2. Distinctive:

    Read the following files, located in this skill's directory:

    line 23
  3. Very specific:

    Use the Write tool to write the generated content into <doc_filename> in the current working directory:

    line 51
  4. Distinctive:

    If the file doesn't exist: create it

    line 52
  5. Distinctive:

    If the file already exists: overwrite completely (do not preserve old content)

    line 53
  6. Very specific:

    After writing, print one confirmation line: ✅ <doc_filename> written: <absolute path>

    line 54
  7. Distinctive:

    After writing, print only the one confirmation line — no other explanation

    line 58
  8. Very specific:

    Keep technical terms in English (e.g.

    line 59
  9. Distinctive:

    Write descriptive text in the configured output language(s)

    line 60

≈ “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

Init Project Doc Skill

Role

You are a senior software architect and personal-brand consultant. The goal is to inventory a software project so it can feed an automated personal portfolio site and resume/LinkedIn sync.

Trigger

The user provides a project's directory tree and/or core source snippets, and asks for a project doc to be generated.

Execution Steps

Step 0: Read config

Read profile.config.json from the current working directory. If missing, tell the user to copy examples/profile.config.example.json to profile.config.json and fill it in, then stop.

  • doc_filename (default CLAUDE.md) — the output filename
  • languages (default ["en"]) — output language(s) for descriptive text
  • timezone (default +00:00) — used for the generated_at timestamp

Step 1: Read reference files

Read the following files, located in this skill's directory:

  • config.json → allowed_categories and allowed_statuses lists
  • template.md → output format (with YAML frontmatter) and all {{VARIABLE}} fields

Step 2: Analyze project code

From the user-provided tree structure and source code, identify:

  • Core language & framework (e.g. TypeScript + Next.js, Python + FastAPI)
  • Database / storage layer (e.g. PostgreSQL, Redis, SQLite)
  • Build tools / package manager (e.g. pnpm, Poetry, Gradle)
  • Deployment / cloud services (e.g. Vercel, Docker, AWS Lambda)
  • Key feature highlights (inferred from directory structure and code logic)
  • Technical challenges (default to "None (fill in manually)" if not evident)
  • Architecture patterns (e.g. MVC, Repository Pattern, Event-Driven)
  • State management (e.g. Zustand, Redux, Context API, none)
  • Auth / authorization mechanism (e.g. NextAuth, JWT, OAuth, none)

Step 3: Apply constraints

  • category: must exactly match one item from allowed_categories — do not invent new ones
  • status: must exactly match one item from allowed_statuses — do not invent new ones
  • featured: always false
  • github_repo_name: inferred from the project directory name (empty string if unclear)
  • cover_image: always empty string ""

Step 4: Fill in the template

Replace all {{VARIABLE}} placeholders in template.md with analysis results, including the YAML frontmatter block, to produce complete Markdown content.

  • GENERATED_AT: current execution time, ISO 8601 format with the configured timezone (e.g. 2026-06-16T14:30:00+00:00)

Step 5: Write the doc file

Use the Write tool to write the generated content into <doc_filename> in the current working directory:

  • If the file doesn't exist: create it
  • If the file already exists: overwrite completely (do not preserve old content)
  • After writing, print one confirmation line: ✅ <doc_filename> written: <absolute path>

Output Rules

  • Write to file, do not print the full Markdown content in the conversation
  • After writing, print only the one confirmation line — no other explanation
  • Keep technical terms in English (e.g. React, WebSocket, REST API)
  • Write descriptive text in the configured output language(s)

Field Guide

YAML Frontmatter Fields

VariableGuidance
PROJECT_NAMEProject directory name, or name from package.json
CATEGORYClosest match from allowed_categories
STATUSClosest match from allowed_statuses (default Completed if unclear)
TAGSDouble-quoted, comma-separated tech tags, e.g. "React", "TypeScript", "Tailwind"
GITHUB_REPO_NAMEInferred from directory name; empty string if unclear
ONE_LINE_DESCRIPTIONOne sentence describing what the project does and what problem it solves
CORE_TECHPrimary language + framework, e.g. TypeScript / Next.js 14
DATABASEDatabase or storage solution; None if not applicable
BUILD_TOOLSBuild tools & package manager, e.g. pnpm / Vite
DEPLOYMENTDeployment platform; None (fill in manually) if unclear
GENERATED_ATISO 8601 timestamp at execution time, e.g. 2026-06-16T14:30:00+00:00

Portfolio Summary Fields

VariableGuidance
SKILL_DEMONSTRATIONTechnical abilities this project demonstrates, first-person, focused on depth and breadth
PROJECT_BACKGROUNDProject background & motivation, first-person, explaining why it was built

Architecture & Conventions Fields

VariableGuidance
DEV_COMMANDSCommon dev commands (install / dev / build / test), inferred from package.json or README
FRAMEWORK_AND_VERSIONMain framework & version, e.g. Next.js 14 (App Router)
ARCH_CONTRACTSDirectory structure and module responsibilities, as a bullet list describing core folder design contracts
STATE_MANAGEMENTState management approach; None if not applicable
AUTH_FLOWAuth / authorization mechanism; None if not applicable
LINT_TOOLSESLint / Prettier / Ruff etc.; None if not applicable
GIT_COMMIT_RULESConventional Commits or other convention; None (fill in manually) if unclear
TESTING_RULESTest framework & conventions; None if not applicable

Features & Highlights Fields

VariableGuidance
FEATURE_TITLE_1 / FEATURE_DESC_11st most representative feature — title & description
FEATURE_TITLE_2 / FEATURE_DESC_22nd most representative feature — title & description
FEATURE_TITLE_3 / FEATURE_DESC_33rd most representative feature — title & description
METRIC_DECRIPTIONPerformance figures or scale metrics; None (fill in manually) if not applicable
CHALLENGE_DESCThe primary technical challenge; None (fill in manually) if not evident
SOLUTION_DESCThe corresponding solution; None (fill in manually) if not evident
DEPENDENCIES_LISTKey dependencies as a bullet list, e.g. - next: ^14.0.0, - prisma: ^5.0.0

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.