← 返回 Skills 市场
openghz

github-open-source-project-polish

作者 Ge Haizhou · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
89
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install open-source-project-polish
功能描述
Turn a project folder into a polished open source project. Use when: open source ready, polish README, default MIT license, add LICENSE/CONTRIBUTING/CODE_OF_...
使用说明 (SKILL.md)

Open Source Project Polish

Goal

Transform an existing project folder into a high-quality open source repository by improving public-facing documentation, community files, repository metadata, and Git/GitHub setup while preserving the original source code.

Hard Boundaries

  • Do not modify original product/source code, generated logic, tests, notebooks, assets, or runtime behavior unless the user explicitly asks.
  • Allowed changes are limited to project-facing metadata and documentation such as README, LICENSE, CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, CHANGELOG, SUPPORT, CITATION, issue/PR templates, release notes, badges, .gitignore, .gitattributes, .editorconfig, and GitHub workflow/docs scaffolding.
  • Never include user-specific local machine paths in README or public docs, such as /home/\x3Cuser>/..., /Users/\x3Cuser>/..., drive-letter paths, personal workspace names, download folders, or machine-specific absolute project paths. Use relative paths, $HOME, \x3Crepo>, or placeholders instead.
  • Default to MIT licensing when no license exists and no user preference overrides it.
  • Default to automated public GitHub publication for folders without a Git remote. Determine the target owner/name if not obvious, then create a public remote and push documentation-only changes after secrets checks pass.
  • If a network/GitHub command fails, retry once with the configured local proxy before declaring the remote step blocked.
  • Preserve existing docs and community files where possible; improve them incrementally rather than replacing useful content.

Inputs to Clarify When Missing

Ask only for information that materially affects irreversible or public-facing actions:

  1. Target scope: workspace project path, or current folder if already clear.
  2. Public identity: GitHub owner/repo name before creating any remote if it cannot be inferred from the folder and authenticated GitHub account.
  3. License override: use an existing license if present; otherwise apply MIT by default unless the user requests another license.
  4. Project positioning: one-sentence value proposition, target users, and maturity if not inferable from code/docs.
  5. Source-code edits: assume forbidden; ask before touching anything beyond metadata/docs.

Procedure

1. Audit Project State

  • Inspect the folder structure, existing README/docs, package manifests, build files, examples, license files, and Git state.
  • Check whether .git exists and whether any remote is configured.
  • Identify secrets-risk files before any remote creation or push: .env, credentials, tokens, large binaries, datasets, private notes, local logs, and machine-specific paths.
  • Summarize existing strengths, missing open-source essentials, and any uncertainty that needs user input.

2. Plan Non-Code Additions

Create a concise plan covering only allowed documentation and metadata work:

  • README improvements using the create-readme skill as the basis for structure, tone, and GitHub-flavored Markdown.
  • Community health files: MIT license by default, contributing guide, code of conduct, security policy, support guide, changelog, citation, governance, issue templates, PR template.
  • Repository hygiene: .gitignore, .gitattributes, .editorconfig, docs index, examples index, badges, project description, topics, funding/sponsor metadata if relevant.
  • Git/GitHub setup: initialize Git if absent, create public remote if absent, set default branch, and push documentation-only changes after safety checks.

3. Improve README

Use the create-readme skill for README creation or refresh. Ensure the README is concise, attractive, and useful:

  • Clear project name, tagline, and short value proposition.
  • Badges only when truthful and maintainable.
  • Quick start with verified commands when possible.
  • Commands must be copy-pastable from the repository root and must not contain the current user's absolute local paths; prefer ./script.sh, $HOME/..., /path/to/..., or \x3Crepo>/... examples.
  • Installation, usage, configuration, examples, project structure, troubleshooting, and links to dedicated files.
  • Do not duplicate full LICENSE, CONTRIBUTING, CHANGELOG, or SECURITY content inside README; link to those files.
  • Preserve existing project-specific knowledge and examples.

4. Add Community Files

Add or update files only when they help the project appear complete and trustworthy:

  • LICENSE: use existing license if present; otherwise add MIT by default with the detected current year and owner/project name where appropriate.
  • CONTRIBUTING.md: development setup, branch/commit conventions if inferable, test expectations, issue/PR process.
  • CODE_OF_CONDUCT.md: use a standard concise contributor covenant style unless user has another policy.
  • SECURITY.md: supported versions, responsible disclosure channel placeholder, vulnerability reporting expectations.
  • CHANGELOG.md: initialize with Unreleased and current public baseline; do not invent release history.
  • SUPPORT.md: where to ask questions, report bugs, and request features.
  • .github/ISSUE_TEMPLATE/* and .github/PULL_REQUEST_TEMPLATE.md: practical forms/checklists tailored to the project.
  • CITATION.cff only for research/academic/scientific projects or when authorship metadata is available.

5. Repository Hygiene

  • Create or refine .gitignore based on detected languages/tools without excluding files that are likely source artifacts.
  • Add .gitattributes for text normalization and common binary patterns when useful.
  • Add .editorconfig with conservative whitespace defaults matching the repo style.
  • Do not add CI workflows unless build/test commands are known or verified; if added, keep them minimal and non-invasive.

6. Git and Remote Handling

For folders without Git:

  1. Initialize a repository for the target folder after verifying the folder path.
  2. Stage only metadata/docs files created or changed by this workflow.
  3. Commit with a documentation-focused message when publication is proceeding.

For Git repositories without a remote:

  1. Infer the GitHub owner from gh authentication and the repo name from the folder when possible; ask only if ambiguous.
  2. Check for gh authentication before creating a remote.
  3. Create a public GitHub repository by default.
  4. Add origin, set the default branch, and push after reviewing staged changes and confirming no secrets are included.

Recommended GitHub CLI flow, adapted to the project:

git status --short
git remote -v
gh auth status
gh repo create OWNER/REPO --public --source=. --remote=origin --push

If network commands fail, retry once with:

export {HTTP_PROXY,HTTPS_PROXY,ALL_PROXY,http_proxy,https_proxy,all_proxy}=http://127.0.0.1:7890

7. Quality Checks

Before finalizing:

  • Re-open changed Markdown snippets to verify headings, links, code fences, and copy-pastable command indentation.
  • Search README and public docs for local machine paths before finalizing, including /home/, /Users/, drive-letter paths, personal workspace names, and absolute paths copied from the current environment.
  • Confirm no source code files were modified unless explicitly approved.
  • Confirm all links to local files target files that exist.
  • Run lightweight formatting or markdown linting if available; do not install heavy dependencies just for this workflow unless user agrees.
  • Show git diff --stat and summarize changed files.
  • If a remote was created, report the URL, visibility, default branch, and whether anything was pushed.

Decision Points

  • Existing README is strong: preserve structure and patch missing sections rather than rewrite.
  • No verified install/test commands: include clearly marked placeholders or "not yet documented" notes instead of inventing commands.
  • License unknown: add MIT by default unless the user requests a different license.
  • Possible secrets or private data: stop remote creation/push and report the risky paths.
  • No gh CLI or not authenticated: provide exact commands for the user to run, but still complete local docs polish and prepare a documentation-only commit if safe.
  • Monorepo: create or update root community files and per-package README files only when package boundaries are clear.

Completion Summary

End with:

  • Files added/updated.
  • What was intentionally not touched, especially source code.
  • Validation performed.
  • Remote repository status, if applicable.
  • Suggested next steps such as enabling CI, adding examples, cutting a first release, or creating project topics.
安全使用建议
Install only if you are comfortable with the agent preparing a project for public GitHub release. Before use, require it to show the exact GitHub account, repository name, visibility, staged file list, and secrets-check results, and do not allow it to push until you explicitly approve.
功能分析
Type: OpenClaw Skill Name: open-source-project-polish Version: 1.0.0 The skill automates high-risk operations including the creation of public GitHub repositories and the pushing of local code by default (SKILL.md). It includes a hardcoded local proxy configuration (127.0.0.1:7890) for retrying failed network commands. While the instructions include safeguards to audit for secrets and local paths before pushing, the automated 'public-by-default' behavior poses a significant risk of accidental data exfiltration if the agent's pre-push checks are bypassed or fail.
能力评估
Purpose & Capability
Documentation and community-file edits fit the stated purpose, but the capability also includes automated public GitHub publication, which is high-impact and goes beyond local polishing.
Instruction Scope
The instructions say to ask for public identity only when it cannot be inferred, so the supplied text does not clearly require explicit user confirmation before creating a public remote and pushing.
Install Mechanism
This is instruction-only with no install spec or code files, and the static scan is clean. It does reference another skill for README work, which is outside the reviewed artifact set.
Credentials
The skill inspects local project contents for documentation and secrets risk, then may publish to public GitHub. Secrets checks are mentioned, but the approval and containment boundaries before publication are not clear in the supplied artifact.
Persistence & Privilege
Creating a public GitHub remote/repository is persistent account-level state and can make project contents public; the skill implies use of an authenticated GitHub account while metadata declares no primary credential.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install open-source-project-polish
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /open-source-project-polish 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of open-source-project-polish. - Transforms a local project folder into a polished, public-ready open source repository. - Adds or improves documentation and metadata files: README, LICENSE (MIT by default), CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, CHANGELOG, SUPPORT, issue/PR templates. - Improves repository hygiene: creates/enhances .gitignore, .gitattributes, .editorconfig, and adds minimal badges. - Automates Git initialization and public GitHub remote creation for projects not already under version control. - Preserves all existing source code; only modifies or adds docs and project metadata. - Includes strong safety checks to avoid exposing personal info or secrets.
元数据
Slug open-source-project-polish
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

github-open-source-project-polish 是什么?

Turn a project folder into a polished open source project. Use when: open source ready, polish README, default MIT license, add LICENSE/CONTRIBUTING/CODE_OF_... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 89 次。

如何安装 github-open-source-project-polish?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install open-source-project-polish」即可一键安装,无需额外配置。

github-open-source-project-polish 是免费的吗?

是的,github-open-source-project-polish 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

github-open-source-project-polish 支持哪些平台?

github-open-source-project-polish 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 github-open-source-project-polish?

由 Ge Haizhou(@openghz)开发并维护,当前版本 v1.0.0。

💬 留言讨论