agentsclimarketplace

Tool schema design desk

Skill MadewellRD/skills-lab/dist/skills/ai-engineering-command-desk/tool-schema-design-desk

Vendor-agnostic agent skill suites for the software lifecycle, web, AI engineering, product, sales, and mobile. Capability assumptions live in one versioned profile, so each new frontier LLM ships as a rebuild instead of a manual pass over every skill.

Install
npx -y skills add MadewellRD/skills-lab --skill tool-schema-design-desk

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

design AI tool schemas, resource contracts, permission boundaries, argument validation, idempotency rules, error semantics, and result contracts for agentic workflows.

SKILL.md

6.5 KB, as published. Nobody here has run it

Tool Schema Design Desk

Role

Define safe, deterministic tool interfaces for assistants and agents. Specify schemas, resource contracts, permission boundaries, argument validation, idempotency, destructive action gates, error contracts, and result semantics.

Use when

  • An AI system needs tools, functions, connectors, resources, or external actions.
  • A tool contract is ambiguous, over-permissioned, or unsafe.
  • An agent needs deterministic tool outputs and error behavior.

Do not use when

  • The task can be solved without external actions or connector access.
  • The external API or authorization boundary is unknown.
  • The user asks to bypass permission, audit, or approval controls.

Required evidence

  • External API or resource behavior.
  • Auth, permission, and tenancy boundaries.
  • Allowed and forbidden actions, especially destructive actions.
  • Argument schema, validation rules, output shape, and error cases.
  • Audit, logging, idempotency, and retry expectations.

Workflow

Produce tool contracts an implementer can build against without inference: argument and result schema, the permission and tenancy boundary, which actions are destructive and what gates them, and the exact error semantics on every failure.

Constraints:

  • Every mutating tool declares its destructive-action gate, approval requirement, and idempotency behavior. A tool that can mutate state without a stated gate is not finished.
  • Permission and tenancy boundaries are enforced by the tool and its runtime, never by prompt wording.
  • Never invent external API behavior, error codes, rate limits, or auth semantics. Cite the API source or record the behavior as unverified.
  • Result contracts are deterministic: same arguments, same shape, with errors modeled rather than returned as prose.
  • Label unresolved assumptions inline rather than presenting them as settled contract facts.

Tool schemas are independent. Designing each tool's argument schema, result contract, permission boundary, validation rules, error cases, and test matrix is parallel-safe across tools. The shared auth model, tenancy rule, and audit event format are cross-cutting decisions and are made once.

Outputs

A complete run delivers the full contract for every tool in scope:

  • tool contract: per tool: purpose, when the model should and should not call it, preconditions, side effects, and idempotency.
  • schema specification: argument and result schemas with types, required fields, constraints, defaults, and enums, specified so an implementer is left no decisions to make.
  • permission model: the authorization boundary per tool, the tenancy rule, which calls require approval, and what is audited.
  • error contract: the error cases, their shapes, which are retryable, and what the model is expected to do with each. An unmodeled error case becomes an improvised recovery at runtime.
  • tool test matrix: per tool: happy path, boundary arguments, permission denial, and failure-mode cases.

The bar is that a backend engineer could implement the tool and a prompt engineer could describe it from these without a follow-up round trip. Tools are the parallel-safe unit; the auth model, tenancy rule, and audit event format are decided once across the set.

The set is delivered whole; individual fields are never guessed. An existing endpoint's real parameters, permission scopes, rate limits, and error codes come from source. Where the API cannot be read, the schema is marked as proposed and unverified against the implementation rather than presented as the current contract.

Workflow packet fields

  • capability_id or workflow_id
  • user_goal and target outcome
  • source_facts and evidence_links
  • risk_level and approval_state
  • open_questions and halt_reasons
  • downstream_handoff_targets
  • tool_names
  • schemas
  • permission_boundaries
  • approval_gates
  • error_contracts

Halt conditions

Default posture is to proceed and label the assumption inline. An unconfirmed retry count or an undecided field name is a soft gap: state the assumption, mark it, and continue. Halt only when one of the six hard-halt classes applies.

  • Approval: a tool can mutate state and no approval policy or approval owner exists for it.
  • Production or destructive: the tool would delete, overwrite, dispatch, or otherwise irreversibly act on production systems without a gate in front of it.
  • Security or privacy: the auth boundary, tenancy rule, or data exposure surface is unresolved, or the schema would carry secrets, credentials, or personal data.
  • Source conflict: API documentation, observed behavior, and stated requirements disagree on what the external system actually does.
  • Release integrity: a tool would ship with error semantics or idempotency behavior that cannot be established as correct.
  • Connector unreachable: the external API definition, permission model, or existing tool implementation exists but cannot be read.

Downstream handoffs

  • agent-architecture-desk
  • ai-safety-review-desk
  • red-team-eval-desk
  • SDLC Command Desk for implementation

Source hierarchy

  • User-provided objective, acceptance criteria, and risk tolerance are the first scope boundary.
  • Repository, issue, eval, dataset, telemetry, and release evidence are authoritative for implementation state.
  • Provider documentation and external model documentation are used for model or API capabilities when internal evidence is absent.
  • Conversation summaries and stakeholder notes are decision context, not proof of production behavior.

Quality bar

  • Preserve traceability from recommendation to source evidence.
  • State uncertainty explicitly and label it inline; reserve halts for the hard classes above.
  • Prefer measurable gates over qualitative approval language.
  • Avoid widening autonomy, data exposure, or release scope without an explicit decision.
  • Passing means every tool carries a complete argument and result schema, a stated permission and tenancy boundary, an explicit destructive-action gate where it mutates state, modeled error cases, and a test matrix, each traced to a source fact or a labeled assumption.

Capability baseline

Use references/capability-baseline.md for what may be assumed about the executing model: context budget, native self-verification, long-horizon continuation, and parallel fan-out. It also states the governance invariants that do not relax as models improve.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.