Skip to content

zy839971925-zyy/Agent--deep-research-Workflow-Skills / integrations/deepseek-harness/skills/reasoning-workflow

reasoning-workflow

Verified

Default 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”.

FileKindSize
RELEASE.jsonconfig509 B
SKILL.mdskill md5.4 KB
UPGRADE.mdmarkdown13.1 KB
assets/icon.svgother3.1 KB
families/audit-verification.mdmarkdown1.1 KB
families/core-reasoning.mdmarkdown2.0 KB
families/decision-analysis.mdmarkdown698 B
families/deep-research.mdmarkdown2.2 KB
families/execution-control.mdmarkdown1.5 KB
families/workflow-learning.mdmarkdown500 B
references/change-governance-and-effectiveness.mdmarkdown12.0 KB
references/clarification-gate.mdmarkdown6.9 KB
references/comparative-synthesis.mdmarkdown3.2 KB
references/decision-and-recommendation.mdmarkdown6.6 KB
references/domain-patterns.mdmarkdown4.2 KB
references/engineering-delivery.mdmarkdown2.8 KB
references/evidence-and-provenance.mdmarkdown7.3 KB
references/formal-review-and-audit.mdmarkdown7.4 KB
references/harness-integration.mdmarkdown7.5 KB
references/harness-profiles.mdmarkdown11.8 KB
references/host-adapter.mdmarkdown11.8 KB
references/human-context-and-interpretation.mdmarkdown3.9 KB
references/hypotheses-and-bias-control.mdmarkdown6.2 KB
references/information-target-navigation.mdmarkdown7.4 KB
references/inquiry-and-research.mdmarkdown9.1 KB
references/measurement-and-operationalization.mdmarkdown3.1 KB
references/model-adaptation.mdmarkdown7.5 KB
references/multimodal-and-data.mdmarkdown3.4 KB
references/problem-framing-and-effort.mdmarkdown8.6 KB
references/reasoning-structure-and-decomposition.mdmarkdown5.5 KB
references/relationships-and-systems.mdmarkdown4.2 KB
references/research-modes-and-methods.mdmarkdown17.1 KB
references/research-to-report.mdmarkdown3.8 KB
references/retrieval-and-observation.mdmarkdown14.4 KB
references/runtime-and-delegation.mdmarkdown8.9 KB
references/semantic-state-contract.mdmarkdown5.7 KB
references/specialist-resources.mdmarkdown2.8 KB
references/state-model-and-invariants.mdmarkdown7.1 KB
references/synchronization-and-recovery.mdmarkdown9.6 KB
references/synthesis-execution-and-verification.mdmarkdown6.7 KB
references/task-strategies.mdmarkdown4.9 KB
references/time-scenarios-and-forecasting.mdmarkdown3.6 KB
references/traceability-and-integrity.mdmarkdown6.2 KB
references/ultra-research.mdmarkdown9.1 KB
references/worked-examples.mdmarkdown5.1 KB
references/workflow-learning-and-capa.mdmarkdown4.4 KB
references/writing-for-the-reader.mdmarkdown1.7 KB
routing-index.jsonconfig18.0 KB
schemas/capability-snapshot.schema.jsonconfig1.1 KB
schemas/checkpoint-manifest.schema.jsonconfig5.6 KB
schemas/delivery-manifest.schema.jsonconfig4.9 KB
schemas/dual-verification.schema.jsonconfig2.6 KB
schemas/edge-policy.jsonconfig3.8 KB
schemas/event.schema.jsonconfig1.9 KB
schemas/execution-node-state.schema.jsonconfig2.7 KB
schemas/execution-plan.schema.jsonconfig5.7 KB
schemas/execution-schedule.schema.jsonconfig3.7 KB
schemas/learning-record.schema.jsonconfig4.5 KB
schemas/raw-record.schema.jsonconfig3.3 KB
schemas/review-bundle.schema.jsonconfig1.6 KB
schemas/task-profile.schema.jsonconfig4.2 KB
schemas/work-state.schema.jsonconfig90.9 KB
schemas/worker-proposal.schema.jsonconfig3.1 KB
scripts/build_distribution.pyscript1.7 KB
scripts/check_report_evidence.pyscript3.6 KB
scripts/harness_bridge.pyscript9.2 KB
scripts/host_adapter.pyscript2.1 KB
scripts/learning_core.pyscript6.3 KB
scripts/prepare_task.pyscript2.6 KB
scripts/reference_core.pyscript1.4 KB
scripts/requirements.txtmanifest37 B
scripts/retrieve_learnings.pyscript1.6 KB
scripts/route_resources.pyscript4.1 KB
scripts/route_task.pyscript1.0 KB
scripts/routing_core.pyscript6.5 KB
scripts/runtime_core.pyscript36.4 KB
scripts/semantic_core.pyscript14.9 KB
scripts/validate_delivery.pyexecutablescript10.4 KB
scripts/validate_dual_verification.pyscript3.1 KB
scripts/validate_events.pyscript2.8 KB
scripts/validate_learning.pyscript718 B
scripts/validate_raw.pyscript3.0 KB
scripts/validate_runtime.pyexecutablescript2.5 KB
scripts/validate_state.pyexecutablescript3.3 KB
scripts/validate_workflow.pyscript9.0 KB

scripts/route_resources.py

View on GitHub
#!/usr/bin/env python3
import argparse,json
from pathlib import Path
from routing_core import recheck_profile,route_task,route_is_stale,compute_index_fingerprint

def select(index,route,profile,gap_tags):
    if recheck_profile(profile,[])!=profile: raise ValueError("PROFILE_RECHECK_REQUIRED")
    if route.get('profile_version') != profile.get('profile_version'):
        raise ValueError('STALE_ROUTE')
    if route_is_stale(route,profile,compute_index_fingerprint(index)): raise ValueError('STALE_ROUTE: ROUTE_REQUIREMENTS_MISMATCH')
    limit = route.get('reference_phase_limit', 2)
    if not isinstance(limit, int) or isinstance(limit, bool) or limit < 0:
        raise ValueError('INVALID_REFERENCE_LIMIT')
    if limit == 0 and set(route.get('required_families',[])) <= {'core-reasoning'}:
        return []
    required=set(route.get('required_families',[]))
    allowed=required|set(route.get('optional_families',[])); tags=set(gap_tags or profile.get('active_gap_tags',[]))
    if profile.get('depth_class')=='light' and not tags and required <= {'core-reasoning'}: return []
    candidates=[]
    for e in index['references']:
        overlap=tags & set(e.get('load_when_tags',[]))
        # These instruction-only references also serve questions outside their home family.
        # A tag selects reading material without admitting any execution capability.
        on_demand = e.get('on_demand_only', False)
        if on_demand and not overlap: continue
        if not on_demand and e['family'] not in allowed and not (profile.get('depth_class')=='ultra' and e['id']=='ultra-research'): continue
        if e['family'] not in required and profile.get('depth_class') not in e.get('typical_depth',[]): continue
        if overlap or e['family'] in required or (profile.get('depth_class')=='ultra' and e['id']=='ultra-research'): candidates.append((0 if overlap else 1,e['default_priority'],e,sorted(overlap)))
    candidates.sort(key=lambda x:(x[0],x[1],x[2]['id']))
    chosen=[]; seen=set()
    mandatory=set(route.get('required_reference_ids',[]))
    if profile.get('depth_class')=='ultra': mandatory.add('ultra-research')
    for ref in sorted(mandatory):
        item=next((x for x in candidates if x[2]['id']==ref),None)
        if item is None: raise ValueError('ULTRA_REFERENCE_MISSING: UNSUPPORTED_REQUIRED_REFERENCE: '+ref if ref=='ultra-research' else 'UNSUPPORTED_REQUIRED_REFERENCE: '+ref)
        chosen.append(item);seen.add(ref)
    # A typical reading budget may not erase a mandatory family/control.
    for fam in route.get('required_families',[]):
        item=next((x for x in candidates if x[2]['family']==fam),None)
        if item is None: raise ValueError('UNSUPPORTED_REQUIRED_FAMILY: '+fam)
        if item[2]['id'] not in seen: chosen.append(item);seen.add(item[2]['id'])
    for item in candidates:
        if len(chosen)>=max(limit,len(required)):break
        if item[2]['id'] not in seen:chosen.append(item);seen.add(item[2]['id'])
    out=[]
    for _,_,e,overlap in chosen:
        out.append({'reference_id':e['id'],'family':e['family'],'path':e['path'],'load_reason':'mandatory_method' if e['id'] in mandatory else ('gap_match' if overlap else 'family_entry'),'current_gap':','.join(overlap) if overlap else 'family_entry','profile_version':profile['profile_version'],'context_cost_class':e['context_cost_class']})

    return out

def main():
    ap=argparse.ArgumentParser(); ap.add_argument('profile'); ap.add_argument('route'); ap.add_argument('--index',default=str(Path(__file__).resolve().parents[1]/'routing-index.json')); ap.add_argument('--gap-tag',action='append',default=[]); a=ap.parse_args()
    profile=json.loads(Path(a.profile).read_text()); route=json.loads(Path(a.route).read_text()); index=json.loads(Path(a.index).read_text())
    if route.get('profile_version')!=profile.get('profile_version'): print(json.dumps({'passed':False,'code':'STALE_ROUTE'},indent=2)); return 1
    try: selected=select(index,route,profile,a.gap_tag)
    except ValueError as e: print(json.dumps({'passed':False,'code':str(e)},indent=2)); return 1
    print(json.dumps({'passed':True,'selected_references':selected},indent=2)); return 0
if __name__=='__main__': raise SystemExit(main())
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: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall