Merge duplicated wiki pages

    1

    Finds and merges near-duplicate Markdown wiki pages while updating all internal links and metadata files.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Merge duplicated wiki pages

    Example session with this skill installed

    Scan the wiki/pages directory for duplicates. Merge any files from the same session and update the index.

    • Read your context and instructions
    • Compiled the merge duplicated wiki

    I have scanned the wiki/pages/ directory and identified 2 duplicate pairs and 1 related pair from distinct sessions.

    Wiki Deduplication Report

    ActionSurvivorDeleted/LinkedReason
    Merged2023-10-24-auth-debug.mdauth-fail-notes.mdSame session_id (SES-882).
    Merged2023-10-25-db-migration.mddb-notes-copy.md95% semantic similarity; same content.
    Linkedapi-v2-spec.mdapi-v1-legacy.mdDistinct sessions; added to related frontmatter.

    Metadata Updates

    INDEX.md: Removed auth-fail-notes.md and db-notes-copy.md. Updated 2023-10-24-auth-debug.md summary to include merged findings.

    • .sessions.json: Redirected SES-882 mapping to 2023-10-24-auth-debug.md.

    Global Search: Updated 4 wikilinks in deployment-guide.md and onboarding.md that pointed to the deleted files.

    Next steps

    • Review wiki/QUESTIONS.md for one pair (cache-invalidation.md vs redis-config.md) that had conflicting status flags.
    • Verify the unioned tags in the new 2023-10-24-auth-debug.md frontmatter.
    INDEX.md

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Wiki growth often leads to fragmented documentation, where multiple files describe the same session or investigation. This skill scans your wiki/pages/ directory to identify, merge, and clean up near-duplicate Markdown files.

    What it does

    • Detects duplicates by identifying pages with at least 85% semantic similarity, shared session IDs, or overlapping content.
    • Smart merging preserves the most recent date, unions frontmatter tags, and combines unique body sections while deduplicating identical text.
    • Cross-linking connects related pages that belong to different sessions rather than merging them, maintaining a clean relationship graph.
    • Dependency cleanup updates INDEX.md, QUESTIONS.md, and .sessions.json to ensure no broken links or stale references remain.
    • Conflict resolution flags material contradictions (like opposing statuses) and defers to manual verification via QUESTIONS.md.

    How it works

    1. Inventory the agent reads every .md file in the wiki to parse frontmatter and body content.
    2. Analysis it performs a pairwise comparison to find semantic matches and session overlaps.
    3. Execution eligible files are merged into a single survivor file, while the redundant copy is deleted.
    4. Refactoring the agent traverses the entire wiki to update all internal wikilinks and metadata files to point to the new survivor.

    Frameworks & tools

    Built for Markdown-based wikis using YAML frontmatter. Designed to work with specific directory structures including wiki/pages/, wiki/INDEX.md, and wiki/.sessions.json.

    Why this beats prompting it yourself

    Manual merging is error-prone and leaves broken internal links across the rest of the wiki. This skill automates the tedious verification of session IDs and ensures that every single reference in your index and metadata stays in sync with the file system.

    Use cases

    • Consolidate multiple investigation logs from the same session into one source of truth.
    • Clean up a wiki after several developers have uploaded overlapping notes on a shared topic.
    • Audit a large documentation folder for redundant status reports and outdated session entries.
    • Resolve naming collisions where different filenames contain the same research findings.

    Known limitations

    Requires a specific directory structure (wiki/pages/) and standard YAML frontmatter to function. Does not auto-merge pages with conflicting factual claims without manual verification.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Technical Documentation.

    Requires wiki/pages/ directory structure and specific metadata files. Skips merging pages with conflicting factual claims.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 20 days ago

    • Free with an Agensi account

    Permissions

    Read Files
    Write Files
    Terminal / Shell
    Listed20 days ago

    What's inside

    Frequently Asked Questions

    The skill targets Markdown wikis with a specific `wiki/pages/` structure, using YAML frontmatter for metadata and standard internal wikilinks for cross-referencing.

    It uses a combination of semantic similarity and session ID tracking to identify duplicates; if two pages have conflicting data, the agent merges the safe content and flags the contradictions in a `QUESTIONS.md` file for your review.

    No, the skill includes a refactoring phase that automatically scans your entire `wiki/` directory to update internal links, `INDEX.md`, and metadata files so they point to the new consolidated page.

    This skill is designed for any AI agent with file-system access capabilities that supports custom tool integration, specifically those managing documentation workflows or knowledge bases.

    You receive the production-ready skill package containing the logic for duplicate detection, the merging engine, and the link-refactoring utility, along with a setup guide for your specific wiki environment.

    New in Technical Documentation

    Free