360 Secure SkillHub
360 安全技能中心

rea-tool-design

面向 REA 仓库的工具设计技能,用于审计现有工具、设计或修改 CLI/MCP 契约、核查 provider 能力与 Evidence 语义,并给出验证方案;涉及实时契约、会话边界、分页与错误恢复检查。部分引用文档和 scripts/ci/scopes.mjs 未随包提供。

分类:开发
morluto
热度 24.18
最近更新 2026-12-01 17:43:06

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add morluto/rea/rea-tool-design
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据出网未确认
Metadata
name
rea-tool-design
description
Audit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.

REA tool design

Use the tool-design guide for tool boundaries, contract semantics, provider ownership, and discoverability. Inspect the current contract and nearest existing tool relevant to the analyst question; source, documentation, and live catalogs may describe different versions.

For provider-backed work, exercise the analyst's task through REA and compare relevant native provider and independent artifact observations where available. Check applicable partial results, recovery and session boundaries; report what was not exercised. For failure guidance, follow design recovery around the failure. Use workflow verification to select evidence for the proposed contract instead of seeking provider API parity.

For an audit, follow audit existing tools: scope representative tasks, exercise the live workflow, and distinguish reproduced bugs, supported limitations, design opportunities and unverified claims. Check relevant rendered MCP prompts, guided workflows and packaged skill advice against the live contracts and exercise their suggested handoffs. Report working alternatives and evidence limits as well as findings.

For wording audits and agent trials, use focused tool-description trials. Start with representative workflow boundaries and repeat failures or ambiguous outcomes; keep actual arguments and supported final claims separate. Reuse the repository's evaluation tooling and report actual runtime/model versions and synthetic versus production coverage rather than copying a harness into a skill.

For a design request, return the proposed boundary, input/result shape, Evidence semantics, nearest alternative, and verification approach. Implement when requested, preserving the user's scope and existing authorization.

When adding or revising contracts and services:

  • Judge a tool by what clients receive: the served tools/list after compact presentation, not the canonical contract. A rule the served schema drops must appear in the tool's advertised guidance, and parity tests run against the served listing (implement and evaluate).

  • Declare any prerequisite, such as an open target or session, in the contract's availability so the listing, binary_session and the refusal agree (descriptions).

  • Have the producer supply each refusal's remediation and retry semantics; shared projection formats them and never fills them in (recovery).

  • Check high-cardinality discovery and graph tools for optional per-call pagination (limit/offset) or traversal bounds (max_depth/max_nodes) that stop producer work early when supplied, preserve unpaged behavior when omitted, and report partial coverage with explicit continuation facts when truncated.

  • Keep input schemas flat (avoid redundant root unions whose branches share identical fields) so compact advertised schemas stay inline; refresh advertised schemas (npm run verify:advertised-schemas -- --update-summary) and run npm run docs:check after contract changes.

  • Reuse shared application runners (executeArtifactInspection, executeProviderOperation, executeRetainedSummaryOperation) instead of adding pass-through wrapper services, and migrate callers directly with zero re-export shims (grep stryker*.config.mjs, scripts/ci/scopes.mjs, and tests/boundary/cli/cliStartupImports.test.ts whenever moving or deleting files).

For implementation or verification, consult testing for the affected consumer and provider lanes, and contributing for generated-file ownership. Read provider/workflow guides only as the task requires.