agentleFS
Google CloudKnown publisherGoogleCloudPlatform/devrel-demos/agents/local-mcp-demo-plugin/skills/auditing-inventory/SKILL.md

auditing-inventory

Skill397 starsChanged 11 days agoApache-2.0View on GitHub

Use when auditing local database inventory using the local-db-server MCP server.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When auditing the local database inventory, follow these steps:

    line 7
  2. Very specific:

    Before performing the query, prompt the user using the ask_question tool to select the demo mode:

    line 10
  3. Very specific:

    Check schema if needed, then invoke the proxy meta-tool call_mcp_tool with:

    line 23
  4. Very specific:

    If get_inventory_lazy is not found or in sessions where call_mcp_tool is not available, report this behavior to illustrate lazy loading …

    line 26
  5. Distinctive:

    Wait for the reactive message callback, then present the returned table to the user.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Inventory Audit Workflow

When auditing the local database inventory, follow these steps:

  1. Execution Mode Selection (Interactive Choice):
    • Before performing the query, prompt the user using the ask_question tool to select the demo mode:
      • Question: "Which MCP tool execution method would you like to test?"
      • Options:
        1. "(Recommended) Direct Eager Call (mcp_local-db-server_get_inventory_eager)"
        2. "Direct Lazy Call (call_mcp_tool for get_inventory_lazy)"
        3. "Spawn 'self' subagent with Eager Call"
        4. "Spawn 'self' subagent with Lazy Call"
  2. Branch A: Direct Eager Call:
    • Query inventory records directly using the native eager MCP tool mcp_local-db-server_get_inventory_eager.
    • Format results into a markdown table (columns: SKU, Item Name, Quantity, Status) and present directly to the user.
  3. Branch B: Direct Lazy Call:
    • Check schema if needed, then invoke the proxy meta-tool call_mcp_tool with:
      • ServerName: "local-db-server"
      • ToolName: "get_inventory_lazy"
    • If get_inventory_lazy is not found or in sessions where call_mcp_tool is not available, report this behavior to illustrate lazy loading requirements.
    • Format results into a markdown table and present directly to the user.
  4. Branch C: Subagent with Eager Call:
    • Spawn a subagent via invoke_subagent with:
      • TypeName: "self"
      • Role: "Inventory Auditor (Eager)"
      • Prompt: "Query inventory from local-db-server using the eager tool mcp_local-db-server_get_inventory_eager and return the records formatted as a markdown table."
      • Workspace: "inherit"
    • Wait for the reactive message callback, then present the returned table to the user.
  5. Branch D: Subagent with Lazy Call:
    • Spawn a subagent via invoke_subagent with:
      • TypeName: "self"
      • Role: "Inventory Auditor (Lazy)"
      • Prompt: "Query inventory from local-db-server using call_mcp_tool for get_inventory_lazy on local-db-server and return the records formatted as a markdown table."
      • Workspace: "inherit"
    • Wait for the reactive message callback, then present the returned table to the user.

Constraints:

  • Do NOT view, read, or inspect source code files (e.g. mcp_server.py) or previous transcripts to extract data.
  • Do NOT execute shell commands or script files directly via run_command to query data.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.