- Home
- Skills
- Technical Documentation
- Merge duplicated wiki pages
Merge duplicated wiki pages
Finds and merges near-duplicate Markdown wiki pages while updating all internal links and metadata files.
Free
Works with the AI Agents you already use
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
| Action | Survivor | Deleted/Linked | Reason |
|---|---|---|---|
| Merged | 2023-10-24-auth-debug.md | auth-fail-notes.md | Same session_id (SES-882). |
| Merged | 2023-10-25-db-migration.md | db-notes-copy.md | 95% semantic similarity; same content. |
| Linked | api-v2-spec.md | api-v1-legacy.md | Distinct 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-882mapping to2023-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.mdfor one pair (cache-invalidation.mdvsredis-config.md) that had conflicting status flags. - Verify the unioned tags in the new
2023-10-24-auth-debug.mdfrontmatter.
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.jsonto 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
- Inventory the agent reads every
.mdfile in the wiki to parse frontmatter and body content. - Analysis it performs a pairwise comparison to find semantic matches and session overlaps.
- Execution eligible files are merged into a single survivor file, while the redundant copy is deleted.
- 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.
Requires wiki/pages/ directory structure and specific metadata files. Skips merging pages with conflicting factual claims.
How to use
- 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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
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 forever
No account required to browse
Trust & safety
Security scan
Security scan passed 20 days ago
- Free with an Agensi account