update-readme
/update-readme
Use when adding, removing, or renaming a skill in this repository to keep the Available Skills table in README.md current.
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 4
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 10.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
- SKILL.md zawiera komentarze HTML (4). Nie widać ich w podglądzie Markdown, a model je czyta.
Scripts: update-readme.sh
What it does and when to use it
Use when adding, removing, or renaming a skill in this repository to keep the Available Skills table in README.md current.
Original author description
Use when adding, removing, or renaming a skill in this repository to keep the Available Skills table in README.md current.
How it works
- When to run
- Script
SKILL.md preview
---
name: update-readme
description: Use when adding, removing, or renaming a skill in this repository to keep the Available Skills table in README.md current.
---
# Update README
After any change to a skill's `name`, `description`, or directory, regenerate the Available Skills table by running the script below from the repo root:
```bash
bash update-readme/update-readme.sh
```
## When to run
- After adding a new skill directory
- After editing the `name` or `description` field in any `SKILL.md`
- After renaming or deleting a skill directory
## Script
Save as `update-readme/update-readme.sh`:
```bash
#!/usr/bin/env bash
# Regenerates the Available Skills table in README.md from SKILL.md frontmatters.
# Usage: bash update-readme/update-readme.sh
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
README="$ROOT/README.md"
skills_file=$(mktemp)
table_file=$(mktemp)
trap 'rm -f "$skills_file" "$table_file"' EXIT
# Parse name and description from a SKILL.md file.
# Handles inline values (quoted or unquoted) and block scalars (> and >-).
# Outputs: <name><TAB><description>
parse_skill() {
awk '
BEGIN { cnt=0; name=""; desc=""; in_desc=0 }
/^---[[:space:]]*$/ {
cnt++
if (cnt == 2) exit
next
}
cnt != 1 { next }
/^description:[[:space:]]*[>|]/ { in_desc=1; next }
/^description:[[:space:]]/ {
in_desc=0
val=$0; sub(/^description:[[:space:]]*/, "", val)
gsub(/^[[:space:]"]+|[[:space:]"]+$/, "", val)
desc=val
next
}
/^name:[[:space:]]/ {
in_desc=0
val=$0; sub(/^name:[[:space:]]*/, "", val)
gsub(/^[[:space:]"]+|[[:space:]"]+$/, "", val)
name=val
next
}
/^[a-zA-Z]/ { in_desc=0; next }
in_desc && /^[[:space:]]/ {
line=$0; sub(/^[[:space:]]+/, "", line)
desc=(desc=="" ? line : desc " " line)
next
}
END { printf "%s\t%s\n", name, desc }
' "$1"
}
# Return the first sentence of a string (up to the first .!?).
first_sentence() {
awk '{
if (match($0, /^[^.!?]+[.!?]/))
print substr($0, RSTART, RLENGTH)
else
print $0
exit
}' <<< "$1"
}
# Collect one tab-separated line per skill: name <TAB> dir <TAB> description
for dir in "$ROOT"/*/; do
skill_file="$dir/SKILL.md"
[ -f "$skill_file" ] || continue
result=$(parse_skill "$skill_file")
name=$(printf '%s' "$result" | cut -f1)
desc=$(printf '%s' "$result" | cut -f2-)
if [ -z "$name" ] || [ -z "$desc" ]; then
continue
fi
short=$(first_sentence "$desc")
dirname=$(basename "$dir")
printf '%s\t%s\t%s\n' "$name" "$dirname" "$short" >> "$skills_file"
done
# Sort case-insensitively by skill name
sort -f -o "$skills_file" "$skills_file"
# Build the Markdown table
printf '| Skill | Description |\n| --- | --- |\n' > "$table_file"
while IFS=$'\t' read -r name dirname desc; do
printf '| [`%s`](./%s/) | %s |\n' "$name" "$dirname" "$desc" >> "$table_file"
done < "$skills_file"
# Replace the region between <!-- skills-start --> and <!-- skills-end --> in README.md
awk -v table="$table_file" '
/<!-- skills-start -->/ { print; while ((getline line < table) > 0) print line; skip=1; next }
/<!-- skills-end -->/ { skip=0 }
!skip { print }
' "$README" > "$README.tmp" && mv "$README.tmp" "$README"
count=$(wc -l < "$skills_file" | tr -d ' ')
echo "✓ Updated README.md with $count skills"
```
Files in this package (2)
- SKILL.md 3 KB
- update-readme.sh 3 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · caidanw/skills | 100 | MIT |
| youngleadersdottech/young-leaders-tech-marketplace | 100 | MIT |
| athola/claude-night-market | 100 | MIT |
| FradSer/dotclaude | 100 | MIT |
Database snapshot: 13.11.2026 · package version 2a1a50375f9d (SHA-256 digest of the entire package)
Downloads in the last 30 days: 3 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95readme
When the user wants to create or update a README.md file for a project. Also use when the user says 'write readme,' 'create readme,' 'document this project,' 'project documentation,' or asks for he... - 96create-readme
Use when generating or updating a project README.md or CHANGELOG.md. - 100readme
Write or rewrite a project's README so it is short, accurate and specific to the project: what it is, how to install, use and build it, verified against the repo. Use when asked to create, write, update, rewrite or review a README. - 100rc-readme
Writes or refreshes a project README from evidence in the codebase. Use to generate or update one. Do not use for API specs or changelogs. - 100readme-updater
Update project README based on current project structure and code. Use when project structure changes. - 100readme-md-creator
Create, audit, or update a README for a repository, package, or document folder. Use when readers need accurate orientation, usage, or navigation.