zy839971925-zyy/Agent--deep-research-Workflow-Skills / skills/reasoning-workflow
reasoning-workflow
VerifiedDefault silent workflow for everyday questions, research, writing, design and engineering. Match effort to the request, resolve costly ambiguity, find specialist resources and verify the requested outcome. Explicitly selectable with “调用我的 workflow skills”.
scripts/validate_runtime.py
View on GitHub#!/usr/bin/env python3
from __future__ import annotations
from pathlib import Path
import argparse, json
from runtime_core import (load_json, validate_plan, validate_schedule, validate_checkpoint,
validate_node_ledger, validate_capability_snapshot, evaluate_capabilities,
validate_worker_proposal, finding)
def main():
ap=argparse.ArgumentParser(description='Validate Reasoning Workflow execution-control artifacts')
ap.add_argument('--plan',required=True)
ap.add_argument('--schedule')
ap.add_argument('--ledger')
ap.add_argument('--capabilities')
ap.add_argument('--worker-proposal')
ap.add_argument('--checkpoint')
ap.add_argument('--current-identity',help='JSON comparison input only; does not authenticate host state or authorize resume')
ap.add_argument('--json',action='store_true')
a=ap.parse_args(); root=Path(__file__).resolve().parents[1]
plan=load_json(Path(a.plan)); findings=validate_plan(plan,root)
ledger=load_json(Path(a.ledger)) if a.ledger else None
schedule=load_json(Path(a.schedule)) if a.schedule else None
if ledger is not None: findings += validate_node_ledger(plan,ledger,root)
if schedule is not None: findings += validate_schedule(plan,schedule,root,ledger)
if a.capabilities:
snap=load_json(Path(a.capabilities)); findings += validate_capability_snapshot(snap,root); fs,_=evaluate_capabilities(plan,snap); findings += fs
if a.worker_proposal:
prop=load_json(Path(a.worker_proposal)); current_state_version=(ledger or {}).get('state_version'); findings += validate_worker_proposal(plan,prop,root,current_state_version)
findings.append(finding('ERROR','WORKER_HOST_CONTEXT_REQUIRED','CLI is static validation only; live submission needs trusted host callback and atomic commit'))
if a.checkpoint:
current_identity=load_json(Path(a.current_identity)) if a.current_identity else None
findings += validate_checkpoint(load_json(Path(a.checkpoint)),root,plan,schedule,current_identity=current_identity)
elif a.current_identity:
findings.append(finding('ERROR','CURRENT_IDENTITY_WITHOUT_CHECKPOINT','--current-identity is meaningful only when --checkpoint is supplied'))
if a.json: print(json.dumps({'findings':[f.as_dict() for f in findings]},indent=2))
else:
for f in findings: print(f'{f.severity} [{f.code}] {f.message}')
return 1 if any(f.severity=='ERROR' for f in findings) else 0
if __name__=='__main__': raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |