om-fix-specs

GitHub

用于规范化 .ai/specs 目录下的旧版规格文件名,将其转换为日期+slug格式,并自动处理文件重命名、链接更新及冲突解决。

.ai/skills/om-fix-specs/SKILL.md open-mercato/open-mercato

Trigger Scenarios

清理 legacy SPEC-* 或 SPEC-ENT-* 前缀的文件名 修复因移除数字前缀导致的文件名冲突 更新因文件名标准化而失效的引用链接

Install

npx skills add open-mercato/open-mercato --skill om-fix-specs -g -y
More Options

Non-standard path

npx skills add https://github.com/open-mercato/open-mercato/tree/main/.ai/skills/om-fix-specs -g -y

Use without installing

npx skills use open-mercato/open-mercato@om-fix-specs

指定 Agent (Claude Code)

npx skills add open-mercato/open-mercato --skill om-fix-specs -a claude-code -g -y

安装 repo 全部 skill

npx skills add open-mercato/open-mercato --all -g -y

预览 repo 内 skill

npx skills add open-mercato/open-mercato --list

SKILL.md

Frontmatter
{
    "name": "om-fix-specs",
    "description": "Normalize spec filenames in .ai\/specs and .ai\/specs\/enterprise to the date+slug convention. Use this when legacy `SPEC-*` \/ `SPEC-ENT-*` names need to be cleaned up, when filename collisions appear after dropping numeric prefixes, or when links must be updated after normalization."
}

Fix Specs

Normalize legacy spec filenames to the date+slug convention with minimal churn.

When to use

  • Legacy specs still use SPEC-* or SPEC-ENT-* filename prefixes.
  • Two specs would collide after removing the numeric prefix.
  • Links now point to the wrong filename after normalization.

Rules

  1. New canonical filenames are {YYYY-MM-DD}-{slug}.md for both OSS and enterprise specs.
  2. Remove legacy SPEC-* / SPEC-ENT-* filename prefixes instead of inventing replacement numbers.
  3. If two files would normalize to the same target, keep the older filename target and make the newer slug more specific.
  4. Update filename references and links everywhere in the repo.
  5. Preserve document history inside the file content when useful, but filenames MUST follow the date+slug format.

Workflow

  1. Run a dry run first: python3 .ai/skills/om-fix-specs/scripts/fix_spec_conflicts.py --dry-run
  2. Review planned renames and file updates.
  3. Apply changes: python3 .ai/skills/om-fix-specs/scripts/fix_spec_conflicts.py --apply
  4. Verify no conflicts remain: python3 .ai/skills/om-fix-specs/scripts/fix_spec_conflicts.py --dry-run

Notes

  • The script scans both .ai/specs and ai/specs roots if present.
  • Enterprise typos are tolerated (enterprise and enterpirse).
  • Conflict resolution drops legacy numeric prefixes first, then adds a slug suffix only when two files would land on the same target filename.
  • Files without an embedded YYYY-MM-DD segment are skipped by the script and must be normalized manually.
  • Review in-file titles manually after normalization if you also want to remove legacy SPEC-* labels from headings.

Version History

  • c915d76 Current 2026-07-24 20:43

Same Skill Collection

.ai/skills/codex/backend-ui-design/SKILL.md
.ai/skills/om-app-spec-writing/SKILL.md
.ai/skills/om-auto-continue-pr-loop/SKILL.md
.ai/skills/om-auto-create-pr-loop/SKILL.md
.ai/skills/om-auto-publish-pr/SKILL.md
.ai/skills/om-auto-qa-scenarios/SKILL.md
.ai/skills/om-auto-review-pr/SKILL.md
.ai/skills/om-auto-sec-report-pr/SKILL.md
.ai/skills/om-auto-sec-report/SKILL.md
.ai/skills/om-auto-upgrade-0.4.10-to-0.5.0/SKILL.md
.ai/skills/om-auto-upgrade-0.6.6-to-0.6.7/SKILL.md
.ai/skills/om-auto-upgrade-0.6.7-to-0.7.0/SKILL.md
.ai/skills/om-backend-ui-design/SKILL.md
.ai/skills/om-code-review/SKILL.md
.ai/skills/om-create-agents-md/SKILL.md
.ai/skills/om-dev-container-maintenance/SKILL.md
.ai/skills/om-ds-guardian/SKILL.md
.ai/skills/om-followup-issue-from-pr/SKILL.md
.ai/skills/om-help/SKILL.md
.ai/skills/om-implement-spec/SKILL.md
.ai/skills/om-integration-builder/SKILL.md
.ai/skills/om-integration-tests/SKILL.md
.ai/skills/om-judge-agent-session/SKILL.md
.ai/skills/om-migrate-mikro-orm/SKILL.md
.ai/skills/om-mockup-prototype/SKILL.md
.ai/skills/om-pr-autopilot/SKILL.md
.ai/skills/om-pre-implement-spec/SKILL.md
.ai/skills/om-prepare-issue/SKILL.md
.ai/skills/om-prepare-test-env/SKILL.md
.ai/skills/om-refresh-standalone-harness/SKILL.md
.ai/skills/om-share-this-session/SKILL.md
.ai/skills/om-skill-creator/SKILL.md
.ai/skills/om-smart-test/SKILL.md
.ai/skills/om-spec-writing/SKILL.md
docker/opencode/skills/deal-qualification/SKILL.md
docker/opencode/skills/resolution-playbook/SKILL.md
docker/opencode/skills/stage-playbook/SKILL.md
.ai/skills/om-auto-upgrade-0.7.0-to-0.8.0/SKILL.md
.ai/skills/om-create-ai-agent/SKILL.md
.ai/skills/om-create-web-research-adapter/SKILL.md
.ai/skills/om-figma-design-with-ds/SKILL.md
.ai/skills/om-gap-analysis/SKILL.md

Metadata

Files
0
Version
fefc71d
Hash
80b17210
Indexed
2026-07-24 20:43

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-28 06:03
浙ICP备14020137号-1