agentleFS
hybridlabor-apihybridlabor-api/aos/skills/basic/skill-create/SKILL.md

skill-create

Skill9 starsChanged 21 days agoApache-2.0View on GitHub

Use when the user wants to capture a real repo's working patterns as a reusable skill — analyzes the local git log and diffs the agent runs itself and drafts a new SKILL.md describing the team's coding patterns, into a scratch/output path the user names. Never overwrites an existing skill.

  • Reads credentials

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use qa-phase, bkend-auth and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ww-w-aiSkill

    qa-phase

    Run QA tests at various levels (L1-L5) for features under PDCA management. Integrates with MCP tools to execute structured test plans.

    Also in 3 projects that use this

  • ww-w-aiSkill

    bkend-auth

    bkend.ai authentication guide. Signup, login, JWT tokens, sessions, role-based access control, and password management with bkend.ai BaaS. Triggers: bkend auth, bkend login, bkend signup, JWT, session, RBAC, password, bkend 인증, 로그인, 회원가입, bkend認証, ログイン, 新規登録, bkend认证, 登录, 注册, autenticacion bkend, authentification bkend, bkend-Auth Do NOT use for: data operations (use $bkend-data), file storage (use $bkend-storage).

    Also in 3 projects that use this

  • +10 more from ww-w-ai

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask two questions if they are not already answered:

    line 24
  2. Distinctive:

    Check whether the output file already exists.

    line 34
  3. Distinctive:

    Run the git commands yourself.

    line 41
  4. Distinctive:

    Stop if the repo has almost no history (under ~20 meaningful commits): a skill "learned" from three commits is guesswork wearing evidence's …

    line 51
  5. Distinctive:

    Every pattern you claim must cite its evidence: commit hashes and file counts.

    line 57
  6. Distinctive:

    Verify before you claim done:

    line 93
  7. Distinctive:

    No file anywhere in any real skills tree was touched.

    line 96
  8. Distinctive:

    Every pattern cites evidence as commit hashes and counts.

    line 97
  9. Very specific:

    Run npm run validate (or the dispatcher's equivalent) if the draft is written inside this repo's tree.

    line 98

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

skill-create — draft a skill from a repo's actual patterns

A skill written from memory of "best practices" is worth less than one written from what this repository actually does. The git history is the evidence: every convention the team follows shows up in the diffs as a pattern repeated across time. Analyze that history, find the patterns, and write them down as a SKILL.md draft the human can review.

Concept inspired by the instinct/skill-create ideas in affaan-m/ECC; no code copied.

1. Confirm scope with the user, before any analysis

Ask two questions if they are not already answered:

  1. Output path — where does the draft go? Default if the user has no preference: a scratch/output folder the user names, e.g. ~/skill-drafts/<skill-name>/SKILL.md. Never write into an existing skills directory as part of this run; installing a draft is the user's separate, later decision. Path rules, all hard:
    • The skill name must match [a-z0-9]+(-[a-z0-9]+)* (lowercase letters, digits, single hyphens). Refuse anything else.
    • Refuse any output path inside the skills/ tree of any repo.
    • Check whether the output file already exists; refuse and never overwrite an existing file. Pick a fresh name instead.
  2. Focus — the whole repo's general coding patterns, or one slice (testing, error handling, API style, commit conventions, MCP work)?

2. Read the history — read-only analysis, run by you

Run the git commands yourself. All of them are read-only analysis of this repository. Nothing in this step writes anywhere:

  • git log --oneline -100 — subject style, prefixes, scope conventions.
  • git log --stat -30 — which files change together, where things live.
  • git diff HEAD~30..HEAD --name-only — the churn map: hot directories are where the real conventions live.
  • git log -p --follow -30 -- <hot-file> — the actual code patterns handed around in review.

Stop if the repo has almost no history (under ~20 meaningful commits): a skill "learned" from three commits is guesswork wearing evidence's clothes. Say so and write nothing.

3. Extract the patterns with evidence — never copy secrets

Every pattern you claim must cite its evidence: commit hashes and file counts. Evidence is hashes, counts and paraphrase — never quoted diffs or quoted code. Paraphrase the pattern in your own words; quoting a diff into the draft is how a pasted secret becomes published.

Never copy into the draft:

  • Secret-shaped strings: tokens, API keys, Bearer …, key=/token=/ password= fragments, anything sk-/ghp_/github_pat_/xox/AKIA-shaped.
  • JWT-shaped strings: three dot-separated base64 parts (header.payload.signature).
  • .env, credential, *.pem, *.key files — do not open them and do not name their contents.
  • E-mail addresses and author names (git author is for counting patterns, not for copying into the draft — attribute style as "the team's", not a person's).
  • Absolute home paths (/Users/<name>/…, /home/<name>/…) — rewrite as ~ or describe the location in words.

Mark one-author patterns as one-author patterns; do not name the author.

4. Write the draft

Produce a SKILL.md that follows this repository's contract (see AGENTS.md): frontmatter name (lowercase hyphenated, matches its directory), a folded multi-line description that says what it does and when to invoke it, and category from the allowed list. Body: the extracted patterns with their evidence, at most ~80 lines. State source: community — this draft is written here from this repo's history.

Final scan-and-redact step, before writing: pass over the whole draft and remove anything matching the never-copy list in section 3 — secret shapes, token fragments, e-mail addresses, author names, absolute home paths. If a pattern cannot be stated without quoting the secret, drop the pattern, not the redaction.

Verify before you claim done:

  • The draft is in the path the user named, and no existing file was touched.
  • No file anywhere in any real skills tree was touched.
  • Every pattern cites evidence as commit hashes and counts.
  • Run npm run validate (or the dispatcher's equivalent) if the draft is written inside this repo's tree; otherwise tell the user to run validation before installing it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.