使用 AI 编程助手为任意项目生成专业美化的 README 文件 Generate Professional & Beautified README Files For Any Project Using AI Assistants Skill.
SaferSkills independently audited general-readme-skill (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generate professional, human-feeling README files for any project. Strictly follow real project content, reject filler text and placeholder content.
Full workflow: Configure → Scan → Generate → Beautify → Output Zero external dependencies. All rules, templates and assets are embedded in the skill. No third-party CLI, runtime or network service required for core functions.
Trigger this skill when user inputs match any of the following:
/readmeCollect configuration options from developer before generation. All options have fixed default values for quick use.
Defaults (used when user supplies no configuration):
If the user provides no configuration, use these defaults.
Select README writing style:
Select shields.io badge appearance:
File naming follows rules in language-guide.md.
Use built-in Read, Grep, Glob tools to scan local project directory.
Rules: Only read static files. Never execute, modify or delete any project files. Ignore directories: node_modules, .git, build, dist, __pycache__, .venv, .next, coverage, logs
Detector priority and tie-break rules (deterministic order):
If multiple sources conflict, prefer the earlier item in this list. If manifests conflict (multiple package roots), prompt the user to choose which package root to document or follow the manifest precedence rules below.
Primary Language.package.json > pyproject.toml > go.mod > Cargo.toml.Parse dependency fields to identify used frameworks:
Classify overall project architecture:
Identify interface type:
LICENSE / LICENSE.mdIf no LICENSE file is present, do not add a license section; instead add a one-line recommendation: No LICENSE file detected. Add a LICENSE to clarify project licensing. If multiple conflicting license files are present, list them and prompt the user to confirm which to use (for example: Detected license files: LICENSE, LICENSE.md. Please confirm which to use.).
git or other tools that alter state..git directory or static contributor file (e.g., CONTRIBUTORS, AUTHORS) exists and can be inspected without executing commands, extract contributors' names only (no emails). Redact or omit sensitive metadata. Example: Contributors: 3 (Alice, Bob, and 1 other)..git, shallow clone, permission denied, or cannot be read without executing), skip contributor detection and include this note: Contributor history unavailable (no git metadata access). Offer an option to supply contributors manually..github/commit-convention.md, CONTRIBUTING.md)—do not execute or parse live git logs.Scan root & config folders for .env, .env.example, .config, .yml, *.yaml etc.
Load all reference files first, then generate content strictly by rules.
All references located in references/ folder:
tone-profiles.md — Style rules & sample phrasesbadge-styles.md — Badge layout & grouping rulesbadges.md — Technology to shields.io badge mappingdiagram-templates.md — Mermaid templates + SVG fallbacksection-guidelines.md — Section writing rules & banned phraseslanguage-guide.md — Multi-language naming & switcher rulesReference-file missing / invalid behavior:
references/ exist and are readable. If any are missing or malformed, abort generation and return: Missing or invalid reference files: <list>. Generation paused.proceed-with-defaults flag to continue using built-in safe defaults; require explicit user confirmation to proceed.Do NOT reorder sections. Skip any section if no matched project data. No N/A, Coming soon or placeholder content.
Fixed-order application and manual content preservation:
<!-- MANUAL-START --> and <!-- MANUAL-END -->, or when a top-level section is not tagged <!-- AUTO-GENERATED -->.The Hero section uses HTML <p align="center"> tags for a professional, centered appearance. This layout is inspired by modern open-source projects like Understand Anything.
Structure:
<h1 align="center">{PROJECT_NAME}</h1>
<p align="center">
<strong>{ONE_LINE_DESCRIPTION}</strong>
<br />
<em>{SUBTITLE_WITH_KEYWORDS}</em>
</p>
<p align="center">
<a href="#quick-start"><img src="https://img.shields.io/badge/{QUICK_START_TEXT}-{COLOR}?style=for-the-badge" alt="Quick Start" /></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/{LICENSE_TEXT}-{COLOR}?style=for-the-badge" alt="License" /></a>
</p>
<p align="center">
{PLATFORM_BADGES}
</p>
<p align="center">
{LANGUAGE_SWITCHER}
</p>Rules:
<h1 align="center"> instead of Markdown #<p align="center"> with <strong> for main description<em> for keywords/features linefor-the-badge style for visibility (Quick Start, License)<p align="center"> with anchor tagsPlatform Badge URLs:




badge-styles.md.section-guidelines.md.README.md already exists:<!-- MANUAL-START --> and <!-- MANUAL-END -->, and any top-level sections not tagged <!-- AUTO-GENERATED -->.<!-- AUTO-GENERATED --> or other clearly auto-scanned regions.Precedence (constraint resolution order):
If constraints conflict, follow the numeric precedence above.
After Phase 3 generates the README, this phase automatically triggers to enhance visual presentation by replacing suitable Markdown syntax with HTML.
--no-beautify flag)<!-- BEAUTIFIED -->)Step 1: Analysis (Automatic) Scan the generated README.md and identify beautifiable elements:
Step 2: Confirmation (User Interaction) Display beautification suggestions to user:
AI: README generation complete! Analyzing beautification opportunities...
Found the following beautification suggestions:
1. ✅ [Hero] Title centered → <h1 align="center">
2. ✅ [Hero] Description centered and bold → <p align="center"><strong>
3. ✅ [Hero] Add CTA buttons
4. ✅ [Hero] Platform badges centered
5. ⚪ [Content] Tables keep Markdown (easier to maintain)
6. ⚪ [Code] Code blocks keep Markdown (has syntax highlighting)
Accept these suggestions?
[Accept All] [Confirm Each] [Reject All]Step 3: Execution (Automatic) Apply selected beautifications based on user confirmation.
Hero Region (Mandatory):
# Title → <h1 align="center">Title</h1>> Description → <p align="center"><strong>Description</strong></p><p align="center"><em>keywords</em></p>[Quick Start](#) → <a href="#"><img src="badge?style=for-the-badge"></a> → <p align="center"><img src="url"></p>[EN](README.md) → <p align="center"><a href="README.md">EN</a></p>Content Region (Optional):
Code Region (Keep As-Is):
Structure Region (Optional):
---references/beautification-rules.md — Detailed beautification rules and HTML templatesreferences/section-guidelines.md — Section-specific beautification notes<!-- BEAUTIFIED --> marker after successful beautificationREADME.md in selected primary language.README-{lang}.md for each extra language.language-guide.md).README generated successfully. Please review and adjust manually if needed.
No valid project content detected, cannot generate README.All supporting files are independent and can be updated separately without modifying main skill.
| File Name | Core Purpose |
|---|---|
| tone-profiles.md | Definition & examples for 3 writing tones |
| badge-styles.md | Layout, size, grouping rules for 3 badge styles |
| badges.md | Mapping table: technology name → shields.io badge URL |
| diagram-templates.md | Reusable Mermaid diagrams + SVG fallback templates |
| section-guidelines.md | Global writing rules, banned phrases, per-section constraints |
| language-guide.md | Multi-language file name rules & language switcher format |
| beautification-rules.md | Phase 4 beautification rules, HTML templates, transformation examples |
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.