| name | readme-gen |
| description | Generates project READMEs with two variants: a generic open-source template and a specialized 42 School project template. Use when the user asks to generate, update, or create a README file. |
README Generator Skill
Overview
This skill generates structured, professional README.md files. It supports two distinct variants based on the user's project context. Before generating, determine which variant applies (by looking for 42 specific files like subject.txt or asking the user) and apply the correct template.
Workflow
- Analyze: Check the project files (e.g.,
package.json, subject.txt, source code) to extract project details (name, tech stack, descriptions).
- Determine Variant: Decide whether to use the "Generic" or "42 School" variant.
- Draft: Construct the README content strictly following the matching template below.
- Write: Write the finalized markdown to the root
README.md.
Variant A: Generic Project Template
Use this for standard open-source projects, generic applications, and libraries.
- Title and Badges:
# <Project Name>. Include relevant standard badges (e.g., Build status, NPM Version, License).
- Overview: A concise description of what the project does, the problem it solves, and why it exists.
- Features: A bulleted list of the application's core features.
- Prerequisites: Minimum versions of tools or dependencies required (e.g., Node.js >= 18, Docker).
- Installation: Step-by-step commands to clone and build/install the project.
- Usage: Code examples or CLI commands demonstrating how to run or use the application.
- Architecture / Tech Stack: (Optional) Brief description of the technologies used.
- Contributing: Simple guidelines on how to submit PRs or issues.
- License: Standard license statement (e.g., MIT, GPL).
Variant B: 42 School Project Template
Use this exclusively for 42 School projects (e.g., Tokenizer, Web3, Core curriculum).
- Title and Badges
- Title:
# <Project Name> (42 <Track Name, e.g. Web3>)
- Badges (use shields.io):
, plus any tech stack badges (e.g., Web3, C, C++).
- Blockquote summary:
> 42 School project: [Brief description]
- Overview
- Describe the project and its requirements.
- Mention where the subject PDF/text is located.
- List the deliverables (e.g., code, deployment, documentation).
- Tech Stack
- Markdown table with Component and Technology (e.g., Language, Libraries, Target environment).
- Structure
- A tree-like code block showing the directory layout with brief explanations.
- Requirements
- e.g., Norminette compliance, specific compilers, EVM wallet, etc.
- Getting Started
- Step-by-step numbered list to compile (e.g.,
make), run, or deploy.
- Documentation
- Links to any inner markdown docs.
- Deployed Contracts / Live Demo
- (For Web3/Web projects) Network name, Contract Addresses, and Explorer links (use
TBD if not deployed).
- License
- Exactly:
This project is part of the 42 School curriculum.