Works with the AI Agents you already use

    Context Engineering Expert

    by Ronaldo Alves

    1

    Engineer minimal, sufficient, and traceable context for LLM tasks while managing token budgets and source conflicts.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Context Engineering Expert

    Context Engineering Expert

    Example session with this skill installed

    Review the internal reimbursement policies from 2022, 2023, and 2024. Extract the active rules for travel expenses while noting any conflicts between versions.

    • Read your context and instructions
    • Compiled the context engineering expert

    I have inventoried the three policy documents and established a temporal hierarchy where the 2024 version takes precedence. I have filtered out expired clauses regarding mileage rates and meal stipends.

    Context Engineering Report: Reimbursement Policies

    Source IDVersion/DateAuthorityAccess Level
    POL-2022Jan 2022DeprecatedArchive
    POL-2023Feb 2023Partial (Legacy)Read-only
    POL-2024March 2024PrimaryActive

    Selected Context

    • Travel Airfare: "All international flights must be economy class unless duration exceeds 8 hours." (Source: POL-2024, Sec 4.2)
    • Meal Allowance: Increased to $75/day. (Source: POL-2024, Sec 5.1). Note: The 2023 limit of $60 is now void.
    • Mileage: Rate is $0.67 per mile. (Source: POL-2024, Sec 5.3).

    Conflicts & Gaps

    • Accommodation: POL-2024 mentions "preferred vendors" but does not list them. POL-2023 lists "Hotel X," but its current status is unverified.
    • Approval Flow: Discrepancy between POL-2023 (Manager approval) and POL-2024 (System-automated). Currently treating POL-2024 as the truth.

    Validation & Limits

    • Confidence: High for numerical values; Medium for vendor lists.
    • Actualization: Verified against the March 2024 handbook update.
    • Omissions: Excluded 2022-specific office equipment clauses as they are outside the travel scope.

    Next steps

    1. Confirm the "Preferred Vendor" list from the Procurement API.
    2. Update the system prompt to explicitly ignore POL-2022 for all travel queries.
    3. Validate the automated approval flow logic against the current HRIS workflow.

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

    About this skill

    LLMs often struggle with "lost in the middle" phenomena, token limits, and hallucinating details from outdated sources. This skill provides a systematic framework for engineers to manage, compress, and architect the information flow between large datasets and model context windows. It moves beyond simple RAG by enforcing rigorous provenance, versioning, and semantic hierarchy.

    What it does

    • Architect context hierarchies by defining source authority, recency, and trust levels for multi-document tasks.
    • Perform high-fidelity compression that preserves critical negatives, conditions, and units while shedding token weight.
    • Manage semantic segmentation by dividing documents into semantically coherent units that respect headers and tables.
    • Resolve source conflicts using defined precedence rules to handle contradictory data across different versions.
    • Enforce security boundaries to prevent prompt injection and accidental leakage of sensitive data during retrieval.

    How it works

    1. Define the task scope to identify the specific decision the context must support, preventing "just in case" data bloat.
    2. Inventory and audit sources by recording origin, date, scope, and permissions for every piece of input data.
    3. Execute budget planning by estimating token consumption for instructions, tools, and safety margins.
    4. Package and validate the context into delimited sections with clear references and expiration triggers.

    Frameworks & tools

    The skill is designed for use with vector databases, RAG pipelines, and token estimation tools. It integrates with file parsers, metadata filters, and semantic search engines to handle complex retrieval-augmented generation workflows.

    Why this beats prompting it yourself

    Generic prompts often lead to models ignoring exceptions or mixing up versions of documents. This skill implements a multi-step engineering process that treats context as a managed resource, ensuring the model identifies gaps and preserves uncertainty rather than guessing.

    Use cases

    • Multi-version policy analysis where the model must distinguish between active and deprecated rules.
    • High-stakes technical audits requiring strict provenance and citation of primary sources.
    • Token-constrained reasoning for large-scale documentation where only the most relevant snippets can fit.
    • Memory management for long-running autonomous agents requiring short-term and long-term state synchronization.

    Known limitations

    Does not perform the technical indexing itself without external tools. Semantic search may still miss exact keyword matches like specific IDs or dates without hybrid search configurations.

    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

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Permissions

    No special permissions declared or detected

    Listed5 days ago

    What's inside

    Frequently Asked Questions

    This skill provides a systematic framework for architecting information flow, moving beyond basic RAG by implementing source precedence rules, token budget planning, and semantic compression to prevent 'lost in the middle' errors.

    You receive a comprehensive implementation guide detailing the semantic hierarchy framework, budget estimation templates, and the specific methodology for resolving source conflicts and enforcing security boundaries.

    While the skill provides the architectural logic for managing data, it requires external tools such as vector databases or file parsers to perform the actual indexing and retrieval of your documents.

    This skill is ideal for high-stakes environments like technical auditing or policy analysis where the model must distinguish between conflicting document versions and provide strict provenance for every claim.

    New in LLM Ops

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