om-fix-specs

GitHub

将遗留的SPEC-*规范文件重命名为日期+slug格式,处理文件名冲突并更新引用链接。

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

Trigger Scenarios

遗留SPEC-*文件名需清理 移除前缀后出现文件名冲突 规范化后链接失效

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-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-migrate-mikro-orm/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-skill-creator/SKILL.md
.ai/skills/om-smart-test/SKILL.md
.ai/skills/om-spec-writing/SKILL.md
.ai/skills/om-create-ai-agent/SKILL.md
.ai/skills/om-gap-analysis/SKILL.md

Metadata

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

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 23:53
浙ICP备14020137号-1 $방문자$