agentleFS
zjp1997720zjp1997720/skill-open-sourcer/skills/skill-open-sourcer/SKILL.md

skill-open-sourcer

Skill5 starsChanged 5 months agoMITView on GitHub

Package and publish one local agent Skill, or audit and release a Registry-driven public Skill portfolio, as polished installable GitHub packages. Use when the user gives a SKILL.md, Skill directory, or multi-Skill repository and asks to open-source, publish, release, share, validate, detect drift, synchronize mirrors, manage versions, make installable with npx skills, prepare release documentation, or generate launch copy. The workflow includes safety, self-containment, declared capabilities, project-native README design, isolated installation, release planning, and publishing.

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. zjp1997720/zhijian-skills★ 778same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. About 0 are common, 11 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Default posture: move fast, but stop on release risk.

    line 10
  2. Distinctive:

    Run the repository-owned validator in either mode:

    line 18
  3. Distinctive:

    Run the environment check before packaging or publishing:

    line 28
  4. Very specific:

    Read the skill entrypoint and inspect directly referenced scripts/, references/, assets/, and agents/ files.

    line 37
  5. Distinctive:

    Run the safety scanner:

    line 38
  6. Distinctive:

    If the environment and safety scans are clear, create a fresh release repository outside the source skill directory.

    line 45
  7. Very specific:

    Read references/release-package.md before writing the release repo.

    line 58
  8. Distinctive:

    Keep the original skill behavior intact.

    line 92
  9. Very specific:

    Use a flat root layout only for a self-contained SKILL.md with no supporting payload.

    line 93
  10. Very specific:

    Prefer a lean SKILL.md; move detailed public guidance into references/ only when an agent will genuinely need it.

    line 94
  11. Distinctive:

    Do not add a README inside the skill folder.

    line 95
  12. Very specific:

    Put release-specific visuals under assets/readme/.

    line 99
  13. Distinctive:

    Keep install commands, requirements, links, and long explanations in Markdown.

    line 100
  14. Distinctive:

    Use MIT as the default license only when the source skill has no conflicting license and ownership is clear.

    line 101
  15. Very specific:

    Run scripts/check_release_env.py.

    line 105
  16. Very specific:

    If required commands are missing, stop and report the exact blockers.

    line 106
  17. Very specific:

    Run scripts/audit_release_readme.py <release-repo> --strict.

    line 108
  18. Very specific:

    Create or update the GitHub repository using the available GitHub surface (gh, GitHub MCP/app, or existing remote).

    line 115
  19. Very specific:

    Verify listing. In a Portfolio repository use its lockfile and --no-install.

    line 117
  20. Very specific:

    Run an isolated real install with copy mode, then verify the expected support files exist under the temporary agent skill directory.

    line 123
  21. Distinctive:

    If listing and the isolated install work, provide the install command:

    line 125
  22. Distinctive:

    After a successful release, draft concise social copy that explains:

    line 135

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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 Open Sourcer

Turn one local Skill into a clean public release package, or govern a complete public Skill portfolio from one canonical repository.

Default posture: move fast, but stop on release risk. If the safety scan finds secrets, private paths, client data, unpublished proprietary material, or ambiguous ownership, report the blockers and do not publish until the user resolves them.

Select the mode

  • A SKILL.md path or directory containing SKILL.md uses Single-Skill mode and follows the existing workflow below.
  • A repository root containing registry/skills.json uses Portfolio mode. Read Portfolio mode and Registry contract before auditing or releasing.
  • A directory matching neither contract is an input error. Do not guess which nested directory is authoritative.

Run the repository-owned validator in either mode:

python3 <skill-open-sourcer-dir>/scripts/portfolio.py validate-skill /path/to/skill
python3 <skill-open-sourcer-dir>/scripts/portfolio.py audit --repo /path/to/portfolio --strict

Quick Start

  1. Resolve the input to a real skill directory. Accept a SKILL.md file, a folder containing SKILL.md, or a symlink under .codex/skills, .agents/skills, .claude/skills, or another local skill root.
  2. Run the environment check before packaging or publishing:
SKILL_OPEN_SOURCER_DIR="${CODEX_HOME:-$HOME/.codex}/skills/skill-open-sourcer"
python3 "$SKILL_OPEN_SOURCER_DIR/scripts/check_release_env.py"

Required local commands are python3, git, node, and npx. gh is the default local GitHub publishing surface, but GitHub MCP/app or an existing authenticated remote can replace it. If no GitHub publishing surface is available, build and validate the repo locally, then stop with the missing setup.

  1. Read the skill entrypoint and inspect directly referenced scripts/, references/, assets/, and agents/ files. Do not copy unrelated local folders.
  2. Run the safety scanner:
SKILL_OPEN_SOURCER_DIR="${CODEX_HOME:-$HOME/.codex}/skills/skill-open-sourcer"
python3 "$SKILL_OPEN_SOURCER_DIR/scripts/scan_skill_release.py" /path/to/skill-or-SKILL.md
  1. If the environment and safety scans are clear, create a fresh release repository outside the source skill directory.
  2. Choose the package layout from the install payload. A truly self-contained, single-file Skill may keep SKILL.md at the repo root. If the Skill needs agents/, references/, scripts/, or agent-facing assets/, place the complete payload under skills/<skill-name>/. Current npx skills root-level remote installs intentionally copy only SKILL.md; a flat package with support files installs incompletely. Preserve applicable source license and third-party notice files. Multi-skill collections also use skills/<skill-name>/; add skills.sh.json only when curated grouping metadata is useful.
  3. Extract the release story, choose the README presentation tier, and build the public release files described in references/release-package.md. Read references/readme-design.md before writing either README or any assets/readme/ visual.
  4. Audit the README package before publishing:
SKILL_OPEN_SOURCER_DIR="${CODEX_HOME:-$HOME/.codex}/skills/skill-open-sourcer"
python3 "$SKILL_OPEN_SOURCER_DIR/scripts/audit_release_readme.py" /path/to/release-repo --strict
  1. Validate the packaged skill, npx skills listing, and one isolated real installation before publishing. Inspect the installed file tree; listing success alone does not prove support files were copied.
  2. Publish to GitHub when low-risk checks pass, then produce launch copy.

Read references/release-package.md before writing the release repo.

Output Contract

For a successful release, return:

  • GitHub repo URL.
  • Install command using npx skills.
  • Verification results for skill validation and npx skills add <owner>/<repo> --list.
  • README audit result, presentation tier used, and any visual assets deliberately included or omitted.
  • Short risk summary: what was scanned, what was removed or sanitized, and any residual assumptions.
  • GitHub Description and Topics recommendations when creating a new public repo.
  • Launch copy: at least one X/Twitter post, plus optional Chinese version when the user works in Chinese.

If blocked, return:

  • Blocker list with file paths and reasons.
  • Suggested sanitization steps.
  • The safest next action, usually "clean these files, then rerun the release".

Safety Rules

Hard stop when any of these appear in the source package:

  • API keys, tokens, private keys, cookies, credentials, .env files, or auth config.
  • Absolute personal paths such as /Users/..., /home/..., local vault paths, or machine-only cache paths that would confuse public users.
  • Customer names, private company data, internal docs, private URLs, unpublished prompts, or paid/proprietary assets without a clear license.
  • Symlinks that escape the package, large binaries, databases, logs, browser profiles, .DS_Store, or generated artifacts outside ignored cache directories. Exclude __pycache__ and dependency caches from every release package; their local presence alone is not a release blocker.
  • Unclear license or ownership for bundled code/assets.

Low-risk auto publish is allowed only when the scanner and manual review find no blockers. If the target GitHub repo already exists with unrelated content, stop and ask before overwriting or force pushing.

Packaging Rules

  • Keep the original skill behavior intact. Refactor only enough to remove private assumptions and make public installation reliable.
  • Use a flat root layout only for a self-contained SKILL.md with no supporting payload. Use skills/<skill-name>/ whenever installation must include agents/, references/, scripts/, or agent-facing assets/, including single-skill repositories.
  • Prefer a lean SKILL.md; move detailed public guidance into references/ only when an agent will genuinely need it.
  • Do not add a README inside the skill folder. Put human-facing documentation at the release repo root.
  • Preserve agents/openai.yaml when present. If absent, create it with display_name, short_description, and a default_prompt that explicitly mentions $<skill-name>.
  • Include scripts/ only for deterministic helper logic the skill actually uses.
  • Include assets/ only when licensing and size are safe for public release.
  • Put release-specific visuals under assets/readme/. Use real outputs or project-native diagrams; skip visuals when they add no explanatory value.
  • Keep install commands, requirements, links, and long explanations in Markdown. Visuals support the story and must not become the only carrier of essential information.
  • Use MIT as the default license only when the source skill has no conflicting license and ownership is clear.

Publication Flow

  1. Run scripts/check_release_env.py. Add --repo-dir <release-repo> when updating an existing local repo. Add --check-npx-skills when package/network access is uncertain.
  2. If required commands are missing, stop and report the exact blockers. If only gh is missing, continue only when GitHub MCP/app is available or the release repo already has an authenticated origin remote.
  3. Build the release repo locally, including the README package and any licensed proof assets.
  4. Run scripts/audit_release_readme.py <release-repo> --strict. Fix hard failures and review every warning; visual taste still requires local rendering and inspection.
  5. Validate with the repository-owned validator:
python3 "$SKILL_OPEN_SOURCER_DIR/scripts/portfolio.py" validate-skill /path/to/packaged/skill
  1. Create or update the GitHub repository using the available GitHub surface (gh, GitHub MCP/app, or existing remote). Avoid force push.
  2. Push the branch or main.
  3. Verify listing. In a Portfolio repository use its lockfile and --no-install; for a standalone release environment without a pinned dependency, record the resolved CLI version in the release evidence:
npx --no-install skills add <owner>/<repo> --list
  1. Run an isolated real install with copy mode, then verify the expected support files exist under the temporary agent skill directory. Use the exact target agent intended by the release. Never treat --list as sufficient package validation.
  2. If listing and the isolated install work, provide the install command:
npx skills add <owner>/<repo> -g -a codex --skill <skill-name> --copy -y

Adjust the agent flag and install wording when the target platform is not Codex.

Launch Copy

After a successful release, draft concise social copy that explains:

  • The problem the skill solves.
  • What a user gives it.
  • What it publishes or automates.
  • The install command or repo link.
  • One concrete example request.

For Chinese users, include a natural Chinese launch post. Keep it human-facing; do not over-explain scripts.

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.