Swift-Selena: Skill for Claude Code

.claude/skills/merge-specs/SKILL.md

merge-specs is a skill for Claude Code from BlueEventHorizon/Swift-Selena. It costs 57 tokens per session (1,142 once invoked), scanned A, original, MIT.

A workflow for combining several specification documents into one file. A specification document describes what a software system must do and how it should behave.

In plain words
What is it for?
It helps merge specification files or directories, compare versions, resolve overlaps, and produce a consolidated requirements document.
Why use it?
It finds duplicate or conflicting requirements and asks the user to confirm the proposed integration approach before making changes.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the AskUserQuestion tool.

This is BlueEventHorizon/Swift-Selena's own configuration. It tells Claude Code how to work on Swift-Selena itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Swift-Selena configures →

Reuse

Borrowing it

Nothing to install: this file belongs to BlueEventHorizon/Swift-Selena. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/BlueEventHorizon/Swift-Selena/main/.claude/skills/merge-specs/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/BlueEventHorizon/Swift-Selena

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for merge-specs

README.md
[![agentmods](https://agentmods.dev/badge/skills/blueeventhorizon/swift-selena/merge-specs/github.svg)](https://agentmods.dev/skills/blueeventhorizon/swift-selena/merge-specs)
Your own site
<a href="https://agentmods.dev/skills/blueeventhorizon/swift-selena/merge-specs"><img src="https://agentmods.dev/badge/skills/blueeventhorizon/swift-selena/merge-specs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for merge-specs

Your own site · 80×15
<a href="https://agentmods.dev/skills/blueeventhorizon/swift-selena/merge-specs"><img src="https://agentmods.dev/badge/skills/blueeventhorizon/swift-selena/merge-specs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,142 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01142
Opus 5 $0.00028 $0.00571
Sonnet 5 $0.00011 $0.00228
Haiku 4.5 $0.00006 $0.00114

Measured 11d ago against content hash a7a1d385a1ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

merge-specs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/merge-specs/SKILL.md · 109 lines

What it actually says

merge-specs

分割された仕様書ファイルを精読・吟味して統合するワークフロー。

使い方

/merge-specs <ディレクトリ>
/merge-specs <file1.md> <file2.md> ...

引数なしの場合は、対象ディレクトリ・ファイルを AskUserQuestion で確認する。

ワークフロー

フェーズ1: 精読・分析

対象ファイルをすべて Read して、以下を分析する。

重複検出:

  • 同じID・同じ機能について別々のファイルで記述されている
  • 同じ非機能要件(性能・セキュリティ等)が複数箇所に記述されている

矛盾・整合性の問題:

  • 同じIDで内容が異なる(どちらが正しいか判断が必要)
  • バージョン記述の新旧混在
  • 成功基準・受入条件の不一致

バージョン差異の判定基準(詳細は references/merge-workflow.md 参照):

  • ファイル名・コミット日時・バージョン番号から新旧を判定
  • 「既存要件の強化」か「完全新規追加」かを分類
  • 既存要件の強化 → ベースファイルの対応セクションに追記/更新
  • 完全新規追加 → ベースファイルに新セクションとして追加

フェーズ2: レポート提示・ユーザー確認

分析結果をユーザーに提示する。レポートには以下を含める:

## 統合分析レポート

### 対象ファイル
- <ファイルA> (ベース候補: 最も包括的)
- <ファイルB> (統合元)

### 重複セクション
| セクション | ファイルA | ファイルB | 推奨 |
|-----------|----------|----------|------|
| <機能名>  | 基本記述  | 強化記述  | ファイルBで上書き |

### 矛盾・要確認
- <矛盾がある場合は列挙>

### 統合方針(案)
1. <ファイルA> をベースファイルとして使用
2. <ファイルB> の各要件を以下のように処理:
   - <既存セクション強化> → ベースの該当セクションに追記
   - <新規要件> → ベースに新セクション追加
3. <ファイルB> は統合完了後に削除

この方針でよいですか?

AskUserQuestion でベースファイル(dest)の確認を行う。 ユーザーの確認・修正を受けてからフェーズ3に進む。

フェーズ3: 統合実行

確認済みの方針に基づいて統合を実行する。

統合の優先順位:

  1. IDが重複する場合 → より詳細・より新しい記述を採用
  2. セクションが重複する場合 → 両方の情報を保持しつつマージ(情報の欠落なし)
  3. 矛盾がある場合 → ユーザー指定の判断に従う

編集操作:

  • ベースファイルへの追記・更新は Edit ツールで実施
  • 大量変更の場合は変更箇所を明示しながら段階的に実施
  • ID番号体系を統一(必要な場合はユーザー確認)

フェーズ4: 後処理

吸収済みファイルの削除:

  • 内容がベースファイルに完全吸収されたことを確認
  • ユーザーに削除対象ファイルを提示して確認を得る
  • 確認後に削除実行

インデックス更新:

  • 目次・インデックスファイルが存在する場合は更新する

判断ロジックの詳細

複雑なケース(IDの重複、大規模マージ、多ファイル統合)については:

references/merge-workflow.md を参照

注意事項

  • 情報の欠落厳禁: マージ時に要件が削除されないよう注意する
  • IDの整合性: 統合後のIDが重複しないことを確認する
  • ユーザー確認を省略しない: フェーズ2のレポート確認は必須。自動で削除しない
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 109 lines · 57 tokens per session scan A a7a1d385a1ac

Subscribe to this mod's changes

merge-specs is a skill published in the GitHub repository BlueEventHorizon/Swift-Selena (5 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 1,142 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens