360 Secure SkillHub
360 安全技能中心

hoa-skill-port

该 Skill 指导把私有运行时技能包移植到共享仓库:先读取目标仓库的放置、代理说明、忽略规则、目录生成和 CI 约定,再按身份、路径、传输、厂商常量与私有数据五个维度解耦,外置环境配置,运行本地校验并记录移植报告。运行时切换和分支发布属于需单独授权的可选操作;行为变更和安装溯源不在其范围内。

分类:开发
wxxb789
热度 0.00
最近更新 2026-11-21 23:41:55

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add wxxb789/hoa/hoa-skill-port
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
hoa-skill-port
description
Port a private runtime skill to a shared repository and make that package canonical. When home paths, personal identifiers, model IDs or a vendor CLI prevent reuse, externalize them into configuration or adapter contracts and validate before publication. Not for hoa-skill-curate.
metadata
{"revision":"8","areas":"software-development,work-management","targets":"runtime-agnostic","summary":"make a shared repo canonical for a private skill: externalize environment values, verify destination gates, and separate live swap from publication","summary_zh":"将私有技能移入共享仓库作为权威副本:外置环境参数、通过目标仓库门禁,并区分运行时切换与发布","kind":"entry"}

Port a skill to a shared repository

Port the method without changing its behavior. Name the canonical repo and package before editing; keep private instances out of the package and avoid a second copy maintained by sync. Use hoa-skill-create to change behavior and hoa-skill-curate to trace installed provenance.

  1. Read the destination's contract. Check placement, agent instructions, a neighboring artifact, ignore rules, catalog generation, and CI. Decide whether this is a shared capability or a repo-owned workflow. Preserve the supported behavior and public inputs/outputs.
  2. De-couple and prove it. Apply the five-axis checklist to identity, paths, transport, vendor constants, and private data. Use role names, portable resolution, and capability contracts with a reference adapter when needed. Publish templates, not private instances; prove ignore coverage and block release on unexpected scan hits.
  3. Validate locally. Follow the destination's actual gates: frontmatter, revisions, catalog regeneration, CI and fixtures as applicable. Never hand-edit generated files or hard-code the repo's current version. When delegating, bound the writes and require runnable acceptance commands; independently rerun them and check action and failure paths, not just dry runs.
  4. Report the port. For each artifact record source and target, line counts, copied files, sections merged or removed and why, and every demoted literal with its replacement and default or required input. Include verification and known limits.

Promote from a landing zone

When uncurated skills accumulate in a landing zone that the destination's own policy defines, promotion is a port like any other; that policy owns the paths and the write rules. The procedure is always:

  • one PR moves the skill: the raw copy in the landing zone is deleted and the normalized package added under the curated root;
  • the new package starts at metadata.revision: "1";
  • the full port review and the curated gates run before it lands;
  • no retired entry is created for a candidate-only name; only curated names retire;
  • no runtime swap is needed; promotion is a publication, not a cutover.

Optional operations require separate authority. Use runtime swap only for an authorized live cutover or drift probe: validate before changing the loader, back up, verify exact config and loader state, and send policy discrepancies to the owner. Use branch publication only for authorized publication. Never push directly to the default branch or force-push.

Configuration

Resolve these keys using configuration.md, under the hoa-skill-port config directory. Defaults are local discovery, not authority to change state.

Key Env Default
repo PORTING_REPO current working tree
package_root PORTING_PACKAGE_ROOT skills
private_dir PORTING_PRIVATE_DIR private (must be ignored)
ci_file PORTING_CI_FILE .github/workflows/ci.yml if present, else discover
catalog_command PORTING_CATALOG_CMD none; use the repo's CI
validator_command PORTING_VALIDATE_CMD none; use the repo's CI
version_command PORTING_VERSION_CMD none; use the repo's version command
base_branch PORTING_BASE_BRANCH remote HEAD branch
dirty_age_hours PORTING_DIRTY_AGE_HOURS 24