oauth-init 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/crafting-effective-readmes/README.md +180 -0
- package/.agents/skills/crafting-effective-readmes/SKILL.md +78 -0
- package/.agents/skills/crafting-effective-readmes/references/art-of-readme.md +536 -0
- package/.agents/skills/crafting-effective-readmes/references/make-a-readme.md +119 -0
- package/.agents/skills/crafting-effective-readmes/references/standard-readme-example-maximal.md +68 -0
- package/.agents/skills/crafting-effective-readmes/references/standard-readme-example-minimal.md +21 -0
- package/.agents/skills/crafting-effective-readmes/references/standard-readme-spec.md +242 -0
- package/.agents/skills/crafting-effective-readmes/section-checklist.md +17 -0
- package/.agents/skills/crafting-effective-readmes/style-guide.md +13 -0
- package/.agents/skills/crafting-effective-readmes/templates/internal.md +106 -0
- package/.agents/skills/crafting-effective-readmes/templates/oss.md +77 -0
- package/.agents/skills/crafting-effective-readmes/templates/personal.md +51 -0
- package/.agents/skills/crafting-effective-readmes/templates/xdg-config.md +71 -0
- package/.agents/skills/crafting-effective-readmes/using-references.md +35 -0
- package/README.md +61 -5
- package/dist/index.js +40 -1
- package/package.json +1 -1
- package/skills-lock.json +10 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# Crafting Effective READMEs
|
|
2
|
+
|
|
3
|
+
A skill for Claude Code that helps you write, update, and improve README files tailored to your specific project type and audience.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Not all READMEs are the same. An open-source library needs different documentation than a personal project or an internal tool. This skill provides:
|
|
8
|
+
|
|
9
|
+
- **Audience-aware guidance** - Different readers need different information
|
|
10
|
+
- **Project-type templates** - Ready-to-use structures for OSS, personal, internal, and config projects
|
|
11
|
+
- **Task-specific workflows** - Whether creating, updating, adding to, or reviewing READMEs
|
|
12
|
+
- **Quality checks** - Style guidance and section checklists to avoid common mistakes
|
|
13
|
+
|
|
14
|
+
## When to Use
|
|
15
|
+
|
|
16
|
+
Use this skill when you need to:
|
|
17
|
+
|
|
18
|
+
- Create a README for a new project
|
|
19
|
+
- Add a new section to an existing README
|
|
20
|
+
- Update stale documentation after changes
|
|
21
|
+
- Review and refresh README content
|
|
22
|
+
- Choose the right sections for your project type
|
|
23
|
+
|
|
24
|
+
**Trigger phrases:**
|
|
25
|
+
|
|
26
|
+
- "Write a README for this project"
|
|
27
|
+
- "Help me document this"
|
|
28
|
+
- "Create documentation for..."
|
|
29
|
+
- "Update the README"
|
|
30
|
+
- "Review my README"
|
|
31
|
+
- "What sections should my README have?"
|
|
32
|
+
|
|
33
|
+
## How It Works
|
|
34
|
+
|
|
35
|
+
The skill follows a three-step process:
|
|
36
|
+
|
|
37
|
+
### Step 1: Identify the Task
|
|
38
|
+
|
|
39
|
+
The skill determines what README task you are working on:
|
|
40
|
+
|
|
41
|
+
| Task | When to Use |
|
|
42
|
+
|------|-------------|
|
|
43
|
+
| **Creating** | New project with no README yet |
|
|
44
|
+
| **Adding** | Need to document something new in existing README |
|
|
45
|
+
| **Updating** | Capabilities changed, content is stale |
|
|
46
|
+
| **Reviewing** | Checking if README is still accurate |
|
|
47
|
+
|
|
48
|
+
### Step 2: Gather Context
|
|
49
|
+
|
|
50
|
+
Based on the task, the skill asks targeted questions:
|
|
51
|
+
|
|
52
|
+
- **Creating**: What type of project? What problem does it solve? What is the quickest path to "it works"?
|
|
53
|
+
- **Adding**: What needs documenting? Where should it go? Who needs this info most?
|
|
54
|
+
- **Updating**: What changed? Which sections are stale?
|
|
55
|
+
- **Reviewing**: Compares README against actual project state (package.json, main files, etc.)
|
|
56
|
+
|
|
57
|
+
### Step 3: Generate and Refine
|
|
58
|
+
|
|
59
|
+
The skill uses the appropriate template and follows up with: "Anything else to highlight or include that I might have missed?"
|
|
60
|
+
|
|
61
|
+
## Key Features
|
|
62
|
+
|
|
63
|
+
### Project Type Templates
|
|
64
|
+
|
|
65
|
+
| Type | Audience | Template |
|
|
66
|
+
|------|----------|----------|
|
|
67
|
+
| **Open Source** | Contributors, users worldwide | `templates/oss.md` |
|
|
68
|
+
| **Personal** | Future you, portfolio viewers | `templates/personal.md` |
|
|
69
|
+
| **Internal** | Teammates, new hires | `templates/internal.md` |
|
|
70
|
+
| **Config** | Future you (confused) | `templates/xdg-config.md` |
|
|
71
|
+
|
|
72
|
+
### Section Checklist by Project Type
|
|
73
|
+
|
|
74
|
+
| Section | OSS | Personal | Internal | Config |
|
|
75
|
+
|---------|-----|----------|----------|--------|
|
|
76
|
+
| Name/Description | Yes | Yes | Yes | Yes |
|
|
77
|
+
| Badges | Yes | Optional | No | No |
|
|
78
|
+
| Installation | Yes | Yes | Yes | No |
|
|
79
|
+
| Usage/Examples | Yes | Yes | Yes | Brief |
|
|
80
|
+
| What's Here | No | No | No | Yes |
|
|
81
|
+
| How to Extend | No | No | Optional | Yes |
|
|
82
|
+
| Contributing | Yes | Optional | Yes | No |
|
|
83
|
+
| License | Yes | Optional | No | No |
|
|
84
|
+
| Architecture | Optional | No | Yes | No |
|
|
85
|
+
| Gotchas/Notes | Optional | Optional | Yes | Yes |
|
|
86
|
+
| Last Reviewed | No | No | Optional | Yes |
|
|
87
|
+
|
|
88
|
+
### Reference Materials
|
|
89
|
+
|
|
90
|
+
The skill includes curated reference materials for deeper understanding:
|
|
91
|
+
|
|
92
|
+
- **art-of-readme.md** - Philosophy behind great READMEs, cognitive funneling
|
|
93
|
+
- **make-a-readme.md** - Practical, section-by-section guidance
|
|
94
|
+
- **standard-readme-spec.md** - Formal specification for OSS consistency
|
|
95
|
+
|
|
96
|
+
## Usage Examples
|
|
97
|
+
|
|
98
|
+
### Creating a New README
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
User: I need a README for my new CLI tool
|
|
102
|
+
|
|
103
|
+
Claude: What type of project is this - open source, personal, or internal?
|
|
104
|
+
|
|
105
|
+
User: Open source, it's a Node.js package
|
|
106
|
+
|
|
107
|
+
Claude: [Uses OSS template, asks about installation, usage, and contributing]
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Updating an Existing README
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
User: Update my README, I added a new feature
|
|
114
|
+
|
|
115
|
+
Claude: [Reads current README, identifies where to add the new feature,
|
|
116
|
+
proposes specific edits]
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Reviewing for Accuracy
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
User: Check if my README is still accurate
|
|
123
|
+
|
|
124
|
+
Claude: [Compares README against package.json, main files, etc.
|
|
125
|
+
Flags outdated sections and suggests updates]
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Best Practices
|
|
129
|
+
|
|
130
|
+
1. **Always ask about audience** - Don't assume OSS defaults for everything
|
|
131
|
+
2. **Show, don't just tell** - Include examples and code samples
|
|
132
|
+
3. **Use structure** - Headers, tables, and lists improve scannability
|
|
133
|
+
4. **Keep it current** - Add "last reviewed" dates for internal/config projects
|
|
134
|
+
5. **Include installation steps** - Never assume setup is obvious
|
|
135
|
+
6. **Write for YOUR audience** - Avoid generic tone
|
|
136
|
+
|
|
137
|
+
## Common Mistakes to Avoid
|
|
138
|
+
|
|
139
|
+
- No installation steps (never assume setup is obvious)
|
|
140
|
+
- No examples (show, don't just tell)
|
|
141
|
+
- Wall of text (use headers, tables, lists)
|
|
142
|
+
- Stale content (add "last reviewed" date)
|
|
143
|
+
- Generic tone (write for YOUR audience)
|
|
144
|
+
|
|
145
|
+
## Essential Sections (All Types)
|
|
146
|
+
|
|
147
|
+
Every README needs at minimum:
|
|
148
|
+
|
|
149
|
+
1. **Name** - Self-explanatory title
|
|
150
|
+
2. **Description** - What + why in 1-2 sentences
|
|
151
|
+
3. **Usage** - How to use it (examples help)
|
|
152
|
+
|
|
153
|
+
## Directory Structure
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
crafting-effective-readmes/
|
|
157
|
+
SKILL.md # Skill definition
|
|
158
|
+
section-checklist.md # Quick reference for sections by project type
|
|
159
|
+
style-guide.md # Common mistakes and prose guidance
|
|
160
|
+
using-references.md # Guide to reference materials
|
|
161
|
+
templates/
|
|
162
|
+
oss.md # Open source project template
|
|
163
|
+
personal.md # Personal/portfolio project template
|
|
164
|
+
internal.md # Internal/team project template
|
|
165
|
+
xdg-config.md # Configuration directory template
|
|
166
|
+
references/
|
|
167
|
+
art-of-readme.md # README philosophy
|
|
168
|
+
make-a-readme.md # Section-by-section guidance
|
|
169
|
+
standard-readme-spec.md # Formal specification
|
|
170
|
+
standard-readme-example-minimal.md # Minimal compliant example
|
|
171
|
+
standard-readme-example-maximal.md # Full-featured example
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## Related Skills
|
|
175
|
+
|
|
176
|
+
- `writing-clearly-and-concisely` - For general prose quality, clear writing, and avoiding AI patterns
|
|
177
|
+
|
|
178
|
+
## Attribution
|
|
179
|
+
|
|
180
|
+
- Original skill by @joshuadavidthomas from [joshuadavidthomas/agent-skills](https://github.com/joshuadavidthomas/agent-skills) (MIT)
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: crafting-effective-readmes
|
|
3
|
+
description: Use when writing or improving README files. Not all READMEs are the same — provides templates and guidance matched to your audience and project type.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Crafting Effective READMEs
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
READMEs answer questions your audience will have. Different audiences need different information - a contributor to an OSS project needs different context than future-you opening a config folder.
|
|
11
|
+
|
|
12
|
+
**Always ask:** Who will read this, and what do they need to know?
|
|
13
|
+
|
|
14
|
+
## Process
|
|
15
|
+
|
|
16
|
+
### Step 1: Identify the Task
|
|
17
|
+
|
|
18
|
+
**Ask:** "What README task are you working on?"
|
|
19
|
+
|
|
20
|
+
| Task | When |
|
|
21
|
+
|------|------|
|
|
22
|
+
| **Creating** | New project, no README yet |
|
|
23
|
+
| **Adding** | Need to document something new |
|
|
24
|
+
| **Updating** | Capabilities changed, content is stale |
|
|
25
|
+
| **Reviewing** | Checking if README is still accurate |
|
|
26
|
+
|
|
27
|
+
### Step 2: Task-Specific Questions
|
|
28
|
+
|
|
29
|
+
**Creating initial README:**
|
|
30
|
+
1. What type of project? (see Project Types below)
|
|
31
|
+
2. What problem does this solve in one sentence?
|
|
32
|
+
3. What's the quickest path to "it works"?
|
|
33
|
+
4. Anything notable to highlight?
|
|
34
|
+
|
|
35
|
+
**Adding a section:**
|
|
36
|
+
1. What needs documenting?
|
|
37
|
+
2. Where should it go in the existing structure?
|
|
38
|
+
3. Who needs this info most?
|
|
39
|
+
|
|
40
|
+
**Updating existing content:**
|
|
41
|
+
1. What changed?
|
|
42
|
+
2. Read current README, identify stale sections
|
|
43
|
+
3. Propose specific edits
|
|
44
|
+
|
|
45
|
+
**Reviewing/refreshing:**
|
|
46
|
+
1. Read current README
|
|
47
|
+
2. Check against actual project state (package.json, main files, etc.)
|
|
48
|
+
3. Flag outdated sections
|
|
49
|
+
4. Update "Last reviewed" date if present
|
|
50
|
+
|
|
51
|
+
### Step 3: Always Ask
|
|
52
|
+
|
|
53
|
+
After drafting, ask: **"Anything else to highlight or include that I might have missed?"**
|
|
54
|
+
|
|
55
|
+
## Project Types
|
|
56
|
+
|
|
57
|
+
| Type | Audience | Key Sections | Template |
|
|
58
|
+
|------|----------|--------------|----------|
|
|
59
|
+
| **Open Source** | Contributors, users worldwide | Install, Usage, Contributing, License | `templates/oss.md` |
|
|
60
|
+
| **Personal** | Future you, portfolio viewers | What it does, Tech stack, Learnings | `templates/personal.md` |
|
|
61
|
+
| **Internal** | Teammates, new hires | Setup, Architecture, Runbooks | `templates/internal.md` |
|
|
62
|
+
| **Config** | Future you (confused) | What's here, Why, How to extend, Gotchas | `templates/xdg-config.md` |
|
|
63
|
+
|
|
64
|
+
**Ask the user** if unclear. Don't assume OSS defaults for everything.
|
|
65
|
+
|
|
66
|
+
## Essential Sections (All Types)
|
|
67
|
+
|
|
68
|
+
Every README needs at minimum:
|
|
69
|
+
|
|
70
|
+
1. **Name** - Self-explanatory title
|
|
71
|
+
2. **Description** - What + why in 1-2 sentences
|
|
72
|
+
3. **Usage** - How to use it (examples help)
|
|
73
|
+
|
|
74
|
+
## References
|
|
75
|
+
|
|
76
|
+
- `section-checklist.md` - Which sections to include by project type
|
|
77
|
+
- `style-guide.md` - Common README mistakes and prose guidance
|
|
78
|
+
- `using-references.md` - Guide to deeper reference materials
|