Agent skill

Bmad Shard Doc

by delorenj in delorenj/mcp-server-trello

Splits large markdown documents into smaller, organized files based on level 2 (default) sections.

MITAuto-check passedDatabases

Install Bmad Shard Doc

skills CLI
$ npx skills add delorenj/mcp-server-trello --skill bmad-shard-doc -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install delorenj/mcp-server-trello bmad-shard-doc --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/delorenj/mcp-server-trello.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/bmad-shard-doc .claude/skills/bmad-shard-doc && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bmad-shard-doc
GitHub stars
445
Used in
5 other repos
Token cost
~1k tokens
SKILL.md length
535 words
Files
1
Skills in repo
64
Repo updated
First seen
Licence
MIT

At a glance

Splits large markdown documents into smaller, organized files based on level 2 (default) sections.

  • Works in 6 steps: Get Source Document → Get Destination Folder → Execute Sharding → …
  • The user says perform shard document
  • SKILL.md covers CRITICAL RULES, EXECUTION and HALT CONDITIONS
  • Calls npx

What it does

Bmad Shard Doc is an agent skill from delorenj/mcp-server-trello. Splits large markdown documents into smaller, organized files based on level 2 (default) sections. Use if the user says perform shard document

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases. The repository describes itself as: A Model Context Protocol (MCP) server that provides tools for interacting with Trello boards. The licence is MIT.

When your agent uses it

  • The user says perform shard document

Example prompts

  • “Use the bmad-shard-doc skill to split large markdown documents into smaller, organized files based on level 2 (default) sections”
  • “/bmad-shard-doc”

Requirements

  • Node.js

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Get Source Document
  2. Get Destination Folder
  3. Execute Sharding
  4. Verify Output
  5. Report Completion
  6. Handle Original Document

What it can do on your machine

Read from SKILL.md and the folder at commit 737292f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bmad Shard Doc loads about 1k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 535 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from delorenj/mcp-server-trello at commit 737292f, republished under its MIT licence (© delorenj). 535 words, ~1,036 tokens.

Download SKILL.mdSave it as .claude/skills/bmad-shard-doc/SKILL.md (or your agent's skills folder).
name
bmad-shard-doc
description
Splits large markdown documents into smaller, organized files based on level 2 (default) sections. Use if the user says perform shard document

Shard Document

Goal: Split large markdown documents into smaller, organized files based on level 2 sections using npx @kayvan/markdown-tree-parser.

CRITICAL RULES

  • MANDATORY: Execute ALL steps in the EXECUTION section IN EXACT ORDER
  • DO NOT skip steps or change the sequence
  • HALT immediately when halt-conditions are met
  • Each action within a step is a REQUIRED action to complete that step

EXECUTION

Step 1: Get Source Document
  • Ask user for the source document path if not provided already
  • Verify file exists and is accessible
  • Verify file is markdown format (.md extension)
  • If file not found or not markdown: HALT with error message
Step 2: Get Destination Folder
  • Determine default destination: same location as source file, folder named after source file without .md extension
    • Example: /path/to/architecture.md --> /path/to/architecture/
  • Ask user for the destination folder path ([y] to confirm use of default: [suggested-path], else enter a new path)
  • If user accepts default: use the suggested destination path
  • If user provides custom path: use the custom destination path
  • Verify destination folder exists or can be created
  • Check write permissions for destination
  • If permission denied: HALT with error message
Step 3: Execute Sharding
  • Inform user that sharding is beginning
  • Execute command: npx @kayvan/markdown-tree-parser explode [source-document] [destination-folder]
  • Capture command output and any errors
  • If command fails: HALT and display error to user
Step 4: Verify Output
  • Check that destination folder contains sharded files
  • Verify index.md was created in destination folder
  • Count the number of files created
  • If no files created: HALT with error message
Step 5: Report Completion
  • Display completion report to user including:
    • Source document path and name
    • Destination folder path
    • Number of section files created
    • Confirmation that index.md was created
    • Any tool output or warnings
  • Inform user that sharding completed successfully
Show full SKILL.md (250 more words)Show less
Step 6: Handle Original Document

Critical: Keeping both the original and sharded versions defeats the purpose of sharding and can cause confusion.

Present user with options for the original document:

What would you like to do with the original document [source-document-name]?

Options:

  • [d] Delete - Remove the original (recommended - shards can always be recombined)
  • [m] Move to archive - Move original to a backup/archive location
  • [k] Keep - Leave original in place (NOT recommended - defeats sharding purpose)

Your choice (d/m/k):

If user selects d (delete)
  • Delete the original source document file
  • Confirm deletion to user: "Original document deleted: [source-document-path]"
  • Note: The document can be reconstructed from shards by concatenating all section files in order
If user selects m (move)
  • Determine default archive location: same directory as source, in an archive subfolder
    • Example: /path/to/architecture.md --> /path/to/archive/architecture.md
  • Ask: Archive location ([y] to use default: [default-archive-path], or provide custom path)
  • If user accepts default: use default archive path
  • If user provides custom path: use custom archive path
  • Create archive directory if it does not exist
  • Move original document to archive location
  • Confirm move to user: "Original document moved to: [archive-path]"
If user selects k (keep)
  • Display warning to user:
    • Keeping both original and sharded versions is NOT recommended
    • The discover_inputs protocol may load the wrong version
    • Updates to one will not reflect in the other
    • Duplicate content taking up space
    • Consider deleting or archiving the original document
  • Confirm user choice: "Original document kept at: [source-document-path]"

HALT CONDITIONS

  • HALT if npx command fails or produces no output files

© delorenj, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/bmad-shard-doc of delorenj/mcp-server-trello.

Open the folder on GitHubat commit 737292f

Used in 5 other repositories

We found 10 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 5 other GitHub owners. This page covers the copy in delorenj/mcp-server-trello, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Bmad Shard Doc next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bmad Shard Doc compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bmad Shard Doc this skilldelorenj/mcp-server-trello4455 repos~1kAutomated safety check: PassMIT
Keeper Stress AnalysisClickHouse/ClickHouse50k—~4.7kAutomated safety check: PassApache-2.0
Perf ComparisonClickHouse/ClickHouse50k—~3.9kAutomated safety check: NotesApache-2.0
Patch Release CheckClickHouse/ClickHouse50k—~4kAutomated safety check: NotesApache-2.0
Evolving The Data ModelTriliumNext/Trilium38k—~2.1kAutomated safety check: PassAGPL-3.0
Hybrid Cloud Outboxesgetsentry/sentry46k—~4.8kAutomated safety check: PassCustom licence

Similar skills

  • Keeper Stress Analysis

    ClickHouse/ClickHouse

    Analyze ClickHouse Keeper stress-test results from play.clickhouse.com / keeperstresstests data warehouse.

    50k GitHub stars~4.7k tokensUpdated today
    DatabasesAuto-check passed
  • Perf Comparison

    ClickHouse/ClickHouse

    Evaluate ClickHouse performance test results from existing CI/dashboard data or local perf.py runs.

    50k GitHub stars~3.9k tokensUpdated today
    DatabasesAuto-check: notes
  • Patch Release Check

    ClickHouse/ClickHouse

    Check whether ClickHouse's supported versions (last 3 majors + latest LTS) have recent stable patch releases, diagnose why the scheduled AutoReleases pipeline failed, and identify which releases…

    50k GitHub stars~4k tokensUpdated today
    DatabasesAuto-check: notes
  • Evolving The Data Model

    TriliumNext/Trilium

    A skill your agent uses when adding a DB migration or a new column/field to a Becca entity in Trilium ("add a migration", "new column on notes/attributes", "ALTER TABLE", "add a field to…

    38k GitHub stars~2.1k tokensUpdated today
    DatabasesAuto-check passed
  • Hybrid Cloud Outboxes

    getsentry/sentry

    Official

    Guide for creating and maintaining outbox-based eventually consistent operations in Sentry.

    46k GitHub stars~4.8k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Adaptive Spin Wait

    microsoft/garnet

    Official

    Selects Garnet spin-wait policies based on the slow-path cost.

    12k GitHub stars~1k tokensUpdated yesterday
    DatabasesAuto-check passed

More from delorenj/mcp-server-trello

All 64 skills in this repo
  • Bmad Distillator

    delorenj/mcp-server-trello

    Lossless LLM-optimized compression of source documents. An agent skill from delorenj/mcp-server-trello.

    445 GitHub starsUsed in 5 repos~2.2k tokens
    Auto-check passed
  • Bmad Deep Recon

    delorenj/mcp-server-trello

    Decision-grade research, three ways: draft a deep-research prompt for the user to run in their own tool (ChatGPT, Gemini, Grok, Perplexity, …), process a finished research report — file it, distill…

    445 GitHub stars~2.3k tokensUpdated 17 days ago
    Auto-check passed
  • Bmad Customize

    delorenj/mcp-server-trello

    Authors and updates customization overrides for installed BMad skills.

    445 GitHub starsUsed in 3 repos~1.7k tokens
    Auto-check passed
  • Openai Docs

    delorenj/mcp-server-trello

    A skill your agent uses when the user asks how to build with OpenAI products or APIs, asks about Codex itself or choosing Codex surfaces, needs up-to-date official documentation with citations, help…

    445 GitHub stars~5.7k tokensUpdated 17 days ago
    Auto-check passed
  • Bmad Architecture

    delorenj/mcp-server-trello

    Produce the architecture: a lean spine of invariants that keeps everything built from it consistent, projected into whatever format the work needs.

    445 GitHub starsUsed in 1 repo~3.5k tokens
    Auto-check passed
  • Bmad Brainstorming

    delorenj/mcp-server-trello

    Facilitate a brainstorming session using diverse creative techniques.

    445 GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check passed

Questions about Bmad Shard Doc

What does Bmad Shard Doc do?

Splits large markdown documents into smaller, organized files based on level 2 (default) sections. Bmad Shard Doc is an agent skill from delorenj/mcp-server-trello. Splits large markdown documents into smaller, organized files based on level 2 (default) sections.

When should I use Bmad Shard Doc?

Bmad Shard Doc fits situations like: the user says perform shard document.

How do I install Bmad Shard Doc in Claude Code?

Run `npx skills add delorenj/mcp-server-trello --skill bmad-shard-doc -a claude-code`. Or copy the skill folder (.agents/skills/bmad-shard-doc in delorenj/mcp-server-trello) into .claude/skills/bmad-shard-doc in your project. Claude Code loads it when a task matches its description.

How do I install Bmad Shard Doc in Codex?

Run `npx skills add delorenj/mcp-server-trello --skill bmad-shard-doc -a codex`. Or copy the skill folder (.agents/skills/bmad-shard-doc in delorenj/mcp-server-trello) into .agents/skills/bmad-shard-doc in your project. Codex loads it when a task matches its description.

Can I use Bmad Shard Doc in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add delorenj/mcp-server-trello --skill bmad-shard-doc -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bmad-shard-doc, .gemini/skills/bmad-shard-doc, .github/skills/bmad-shard-doc and .opencode/skills/bmad-shard-doc in your project.

What does Bmad Shard Doc need to run?

Going by SKILL.md and its folder, Bmad Shard Doc needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Bmad Shard Doc access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Bmad Shard Doc safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Bmad Shard Doc use?

Bmad Shard Doc is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bmad Shard Doc use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bmad Shard Doc?

Skills that share tags, products or a category with Bmad Shard Doc: Keeper Stress Analysis (ClickHouse/ClickHouse, 50k stars), Perf Comparison (ClickHouse/ClickHouse, 50k stars), Patch Release Check (ClickHouse/ClickHouse, 50k stars) and Evolving The Data Model (TriliumNext/Trilium, 38k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bmad Shard Doc?

delorenj (a GitHub user) maintains it in delorenj/mcp-server-trello, which has 445 GitHub stars. The repository holds 64 skills in this directory. The repository was last updated on September 23, 2026.

Source: delorenj/mcp-server-trello on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.