lov-better-github-desc
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGitHub 仓库简介优化
GitHub Repository Description Optimization
依据 README 更新 GitHub 仓库描述、主题标签及已核实的官网链接。
Update the GitHub repository description, topics, and verified official website link based on the README.
Triggers
Triggers
Activate when
Activate when
- “依据 README 更新 GitHub 仓库描述、主题标签及已核实的官网链接。”
- “Update a GitHub repository description from its README.”
- “Update the GitHub repository description, topics, and verified official website link based on the README.”
- “Update a GitHub repository description from its README.”
Do not activate when
Do not activate when
- 只是查询本 Skill 的说明,或请求与上述结果无关的任务;不执行实际业务操作。
- 用户仅要预览或审查时,不进入修改、提交或发布分支。
- The user is only querying this Skill's documentation or requesting a task unrelated to the results above; do not perform any actual business operations.
- The user only wants a preview or review; do not proceed to modification, commit, or branch publication.
Execution boundary
Execution boundary
自然语言请求即可触发;无需旧 slash 路径、参数插值或指定助手。明确解析当前请求中的
项目、目标文件、选项与输出位置;用当前宿主实际提供的文件、搜索、CLI 和浏览器能力。
项目依赖版本与外部 API 在执行时核实,不能假设示例是现行配置。随包脚本从 Skill 根解析,
业务文件从目标项目根解析。先读当前状态,保护已有未提交内容与其他任务的暂存区。
分析、预览请求保持只读;修改、提交、推送、部署和发布各依当前请求的明确范围执行。
不绕过保护、自动发送消息、强制结束用户进程或抢前台。失败保留可诊断原始错误。
A natural-language request is sufficient to trigger the Skill; no legacy slash path, argument interpolation, or designated assistant is required. Explicitly resolve the project, target file, options, and output location from the current request; use the file, search, CLI, and browser capabilities actually provided by the current host.
Verify project dependency versions and external APIs at execution time; do not assume examples are the current configuration. Resolve bundled scripts from the Skill root and business files from the target project root. Read the current state first, and protect existing uncommitted changes and the staging areas of other tasks.
Keep analysis and preview requests read-only; perform modifications, commits, pushes, deployments, and releases only within the explicit scope of the current request. Do not bypass protections, automatically send messages, forcibly terminate user processes, or take over the foreground. On failure, preserve the original diagnostic error.
Workflow
Workflow
-
从用户指定仓库或当前 Git remote 确定完整 owner/repo;多个目标时只问一个必要问题。读取 README.md、package.json 与 gh repo view 返回的 description、homepageUrl、repositoryTopics、url。
-
提取项目用途、目标用户与已实现能力;可参考 strong 标签,但忽略徽章、安装命令、模板与营销夸张。生成简短、可独立理解的仓库描述,并给出 README 依据。
-
主题只取有证据的技术和用途,遵循 GitHub 当前格式与数量限制。默认保留已有主题,仅补充相关项;删除主题须在用户要求的范围内。
-
官网优先使用明确指定且已核实的项目地址,再核对 README 或 package.json homepage 与既有仓库值。品牌根站不能自动当作项目官网;无可靠来源时省略 homepage 修改。绝不拼接占位域名或按目录名臆造产品页面。
-
形成目标仓库与字段前后对照。仅预览请求到此结束;明确更新请求已授权这些字段时直接执行 gh repo edit OWNER/REPO,以安全参数传入 description、需要新增的 topic 和有依据的 homepage。省略未修改字段,禁止传空值意外清除。
-
再次 gh repo view 同一 owner/repo,逐字段比较预期与实际值;报告更新成功、无变化或部分失败。禁止顺带修改 README、仓库名、可见性、权限或发布 Release。
-
Determine the full owner/repo from the user-specified repository or current Git remote; when there are multiple targets, ask only one necessary question. Read README.md, package.json, and the description, homepageUrl, repositoryTopics, and url returned by gh repo view.
-
Extract the project's purpose, target users, and implemented capabilities; strong labels may be used as references, but ignore badges, installation commands, templates, and marketing exaggerations. Generate a concise, self-contained repository description and provide the README evidence.
-
Use only evidence-backed technologies and use cases as topics, following GitHub's current format and count limits. Keep existing topics by default and only add relevant ones; remove topics only within the scope requested by the user.
-
For the homepage, prefer an explicitly specified and verified project URL, then cross-check it against the README or package.json homepage and the repository's existing value. A brand's root site cannot automatically be treated as the project homepage; omit the homepage modification when there is no reliable source. Never concatenate placeholder domains or invent product pages based on directory names.
-
Produce a before-and-after comparison of the target repository and fields. For preview-only requests, stop here; when an explicit update request authorizes these fields, directly run gh repo edit OWNER/REPO, using safe arguments for description, topics to add, and the evidence-backed homepage. Omit unchanged fields; never pass empty values that could accidentally clear them.
-
Run gh repo view again on the same owner/repo and compare expected and actual values field by field; report a successful update, no changes, or partial failure. Do not modify the README, repository name, visibility, or permissions, or publish a Release, as incidental changes.
Composition
Composition
执行前读取 能力组合,按明确制品交接相邻能力。
Before execution, read Capability Composition and hand off adjacent capabilities based on explicit artifacts.
Runtime context (shared)
Runtime context (shared)
运行前读取本包 与 Profile 合同。优先级为当前请求、
项目上下文、本 Skill records、共享 preferences、brand/user Profile、安全默认值。
只读取声明字段;没有专用运行时的宿主可使用 读取共享 Profile。
配置缺失只问影响结果的一个问题。用户明确要求长期保存的值通过该脚本原子写入,
报告实际路径;不保存推断、凭据或其他任务的资料。
skill.yamlscripts/profile_store.pyBefore running, read this package's and the Profile Contract. The priority order is: current request, project context, this Skill's records, shared preferences, brand/user Profile, and safety defaults.
Read only declared fields; hosts without a dedicated runtime can use to read the shared Profile. If configuration is missing, ask only one question that affects the result. Values the user explicitly asks to store long-term are written atomically through the script; report the actual path; do not store inferences, credentials, or information from other tasks.
skill.yamlscripts/profile_store.py