Repo readme

From ksmaster03/claude-canfly-skill · View interactive version

Repo readme is an AI agent skill from the GitHub repository ksmaster03/claude-canfly-skill. Create or refresh a project's GitHub face — bilingual README (README.md English + README.th.md Thai, cross-linked), a hero illustration generated with chatgpt-bridge, and the GitHub repo itself if it does not exist. Called by /handoff on every run; also trigger on /repo-readme or "สร้าง repo ใหม่บน

How to use this skill

Skill file

/repo-readme — bilingual README + hero image + GitHub repo

Makes a project presentable and resumable on GitHub. Three parts; each is skipped when already up to date.

Input (optional)

0. Decide what is needed

cd <repo> && git remote -v && git status -sb
ls README.md README.th.md docs/*-hero.* 2>/dev/null

| State | Do |

|---|---|

| No README or only a stub (bun init / framework default) | Write both files + image |

| README exists in one language | Add the other language, keep existing content |

| Both exist | Update only what changed this session: commands, API, numbers, limitations. Do not rewrite prose that is still true |

| Hero image exists | Keep it. Regenerate only if the user asks or the project's purpose changed |

origin is not always GitHub (DockSync is Azure DevOps). If origin points elsewhere, write the README and image but do not create a GitHub repo unless the user asked for one.

1. README (two files, cross-linked)

Section order (drop any that do not apply):

  1. One-paragraph what and why
  2. What it does (short list)
  3. Quick start: commands that were actually run this session
  4. Usage / API table
  5. How it works (only the non-obvious design decisions)
  6. Results or benchmarks, with the command that reproduces them
  7. Known limitations
  8. License (only if a LICENSE file exists)

Rules:

2. Hero illustration (chatgpt-bridge)

mkdir -p <repo>/docs
cd $PROJECTS/chatgpt-bridge
node chatgpt-img.mjs "<ASCII-only English prompt>" "$PROJECTS/<repo>/docs/<name>-hero.png"

ffmpeg -y -i docs/<name>-hero.png -vf "scale=1600:-2" -q:v 3 docs/<name>-hero.jpg then delete the PNG. Target under 400 KB.

3. GitHub repo

Security gate first, same as /handoff: .gitignore covers .env*, keys, node_modules/, data dirs; after staging check git status --porcelain and git ls-files for secrets; grep staged files for AKIA, BEGIN PRIVATE KEY, sk-, sm_, password=.

git add <explicit paths>          # never git add -A / git add .
git commit -F <message-file>      # message via file if it contains Thai
gh repo create <owner>/<name> --private --source . --remote origin --description "<ASCII one-liner>"
git push -u origin <branch>
gh repo edit <owner>/<name> --add-topic <topic> ...

Report

Repo URL · visibility · commit hash · which README sections changed · image path and size (or why there is none) · anything left uncommitted on purpose.

Anti-patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.