More screenshots

    Works with the AI Agents you already use

    Skill Md Loader Convention

    by Mohamed Mostafa Metawea

    1

    Implement a modular, on-demand loading convention for agent skills to save context and organize playbooks.

    Free

    Security scanned
    Skill Md Loader Convention

    Skill Md Loader Convention

    Example session with this skill installed

    My agent's system prompt is stuffed with every playbook it owns and it's eating the context window. Set up the SKILL.md convention: one folder per skill, name/description frontmatter, an index in the prompt, and full bodies loaded on demand through a tool call.

    • Read your context and instructions
    • Compiled the md loader convention

    The agent's instruction library is reorganized around the SKILL.md convention. Each playbook now loads only when the task needs it.

    What changed

    On disk

    skills/
      research-digest/
        SKILL.md
      inbox-triage/
        SKILL.md
    

    Each SKILL.md opens with frontmatter:

    ---
    name: research-digest
    description: Produce a sourced, skimmable research digest.
    ---
    

    Validation now enforced

    • Names: lowercase letters, digits and hyphens, 2-41 characters.
    • Description: one line, capped at 200 characters.
    • Body: 20 to 20,000 characters.

    Two operations instead of one big prompt

    1. list_skills() reads only frontmatter, so the agent's system prompt carries a one-line index per assigned skill.
    2. load(name) reads the full body at run time, through the agent's own load_skill tool call. A skill not assigned to the caller is refused.

    Context cost
    An agent assigned ten skills pays for ten index lines, plus the one playbook it actually loads.

    Next steps

    1. Move each existing instruction block into its own folder with frontmatter.
    2. Assign skills per agent role.
    3. Add new skills through the approval-gated propose_skill flow so every playbook is human-reviewed.
    agent's instruction library is reorganized around the SKILL.md

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

    About this skill

    A growing library of agent instructions ends up bloating the context window and drifting between versions. This skill implements a proven architecture for modular instruction loading, allowing agents to fetch specific playbooks only when needed.

    What it does

    • Standardizes storage by enforcing a strict folder-per-skill structure with frontmatter metadata.
    • Optimizes context by providing an index-first approach where agents only load full playbooks via tool calls.
    • Validates inputs using strict character limits and naming conventions to ensure system stability.
    • Enforces permissions by restricting skill access to specific agent roles or employees.
    • Manages lifecycle operations including safe writes, updates, and human-in-the-loop approval gates for agent-generated skills.

    How it works

    1. Initialize the index by calling the list function to retrieve names and descriptions of assigned skills.
    2. Inject the index into the agent system prompt, instructing it to request the full body when a task matches a description.
    3. Execute the load tool when the agent identifies a relevant skill, retrieving the full markdown playbook.
    4. Update or create playbooks using the write tool, which enforces character caps and name patterns.

    Why this beats prompting it yourself

    Hard-coding every instruction into a system prompt wastes tokens and confuses the model with irrelevant rules. This skill provides a verified structural pattern that keeps agents focused. It moves the complexity of instruction management into a manageable file system that scales without degrading performance.

    Use cases

    • Build a modular multi-agent system where each agent only "knows" its specific domain playbooks.
    • Prevent context overflow in long-running sessions by loading instructions on demand.
    • Implement a human-review workflow for instructions generated or modified by AI.
    • Centralize organizational playbooks across different teams like research and copywriting.

    Known limitations

    The frontmatter parser uses simple key-value logic rather than a full YAML engine. Playbooks are strictly capped at 20,000 characters to prevent context exhaustion.

    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

    Frequently Asked Questions

    This skill organizes agent instructions into a strict folder-per-skill structure using markdown files with frontmatter. It solves the problem of context window bloat by allowing agents to first read a brief index of available skills and then only load the full, detailed playbook when a specific task requires it.

    The file system enforces a strict naming pattern using only lowercase letters, digits, and hyphens between 2 and 41 characters. Additionally, the body of any single playbook is capped at a maximum of 20,000 characters to ensure system stability and prevent context exhaustion.

    It uses a per-employee assignment system where the load tool will refuse to provide a skill body if it is not specifically assigned to the calling agent. This ensures that different roles, such as a researcher and a copywriter, only have access to their relevant domain playbooks.

    This skill requires a file system structure where each skill has its own folder containing a file named SKILL.md. To function correctly, these files must include frontmatter metadata with a name and a one line description of no more than 200 characters.

    When a task matches a skill description in the index, the agent uses a tool call to retrieve the full markdown playbook. For new skills proposed by an agent, the system includes an approval gate where a human must review the content before it is officially stored.

    The frontmatter parser is designed with simple key-value logic and is not a full YAML engine. It is also important to note that while the convention organizes knowledge effectively, it does not guarantee that a weak model will follow the instructions provided.

    New in Prompt & Skill Engineering

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Prompt & Skill Engineering.

    Free