本文へ移動
cccskills
無料GitHub で公開

dag-chain-decomposition

Validate finite-DAG order objectives and construct reachability-chain or direct-edge path partitions with explicit proof boundaries. NOT for equating reachability chains with direct-edge paths without checking the chosen objective.

インストール方法を見る

含まれるファイル(23)

  • SKILL.md8.9 KB
  • _book_identity.json635 B
  • _raw_response.md517 B
  • diagrams/01_flowchart_dag_decomposition_decision_tre.md202 B
  • diagrams/01-worked-cover-and-antichain.md579 B
  • diagrams/02_mindmap_mental_models_&_activation_tri.md177 B
  • diagrams/02-chain-cover-versus-schedule.md746 B
  • diagrams/03_stateDiagram-v2_stratification_phase_transitio.md171 B
  • diagrams/INDEX.md651 B
  • references/atomic-operations-and-base-cases.md742 B
  • references/chen-source-boundaries.md1.1 KB
  • references/complexity-measures-shape-algorithm-design.md1.2 KB
  • references/compression-through-decomposition.md2.6 KB
  • references/correctness-through-induction.md1011 B
  • references/INDEX.md1.2 KB
  • references/matching-as-resource-allocation.md981 B
  • references/proof-and-application-fixtures.md3.7 KB
  • references/stratification-for-local-reasoning.md814 B
  • references/virtual-nodes-deferred-decisions.md1.1 KB
  • references/width-as-coordination-bound.md1.5 KB
  • schemas/examples.md1.9 KB
  • schemas/input.json2.1 KB
  • schemas/output.json4.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

DAG chain decomposition

Use when the requested result is an order-theoretic partition of a nonempty finite DAG. First choose the objective: a reachability-chain partition, a direct-edge vertex-disjoint path cover, or a weighted schedule are different outputs. This skill proves only the first two; a weighted request routes to dag-task-scheduler with its duration/capacity data intact.

Objective and proof procedure

  1. Check semantic input facts before construction: node IDs are unique, every edge endpoint exists, no self-loop/duplicate edge changes the intended relation, and the directed graph is acyclic. JSON Schema checks field shape; it cannot establish those graph facts.
  2. For a reachability-chain partition, define strict comparability u < v iff a nonempty directed path leads from u to v. Build left/right vertex copies and an edge uL—vR for each strict comparable pair. A maximum matching of size m reconstructs successor links and produces |V|-m chains. Check every adjacent pair in every returned chain by reachability and every vertex exactly once. An equal-size antichain witness completes the finite-poset proof obligation under Dilworth/Fulkerson.
  3. For a direct-edge path cover, build the same matching construction from original arcs only. It returns vertex-disjoint direct-edge paths, which can require more paths than a reachability-chain partition. Do not use a transitive witness as though it were an arc.
  4. Treat width as a lower bound on the number of reachability chains under the stated finite-poset objective. It neither supplies workers, durations, queues, communication costs, nor makespan. If any of those are requested, return unsupported for this skill’s output and route the same graph to the scheduler.
  5. If using Chen’s 2009 procedure, retain only source-supported phases: DAG stratification, chain generation, and virtual-node resolution; the body distinguishes virtual nodes generated for actual nodes from those generated for virtual nodes and names a combined alternating graph for resolution. The retrievable source scope does not verify a generic adjacent-level matching implementation or prove it gives an exact minimum partition.
flowchart TD
 I[Finite directed graph and requested objective] --> V{Unique endpoints and acyclic?}
 V -- no --> X[Failed: report duplicate, missing endpoint, or cycle witness]
 V -- yes --> O{Objective}
 O -- reachability chains --> R[Strict reachability comparability graph]
 O -- direct-edge paths --> P[Original-arc bipartite graph]
 O -- weighted schedule --> S[Unsupported here: route duration/capacity contract to scheduler]
 R --> M[Maximum matching and successor links]
 M --> C[Validate coverage, reachability, antichain witness]
 P --> PM[Maximum matching and direct-edge paths]
 PM --> PC[Validate coverage and every direct arc]

Four decision methods

1. Decomposition strategy selection

Select the mathematical objective before choosing an algorithm. A stratified application graph can be a useful representation, but stratification is not itself a proof that its largest level is width or that a local assignment is globally minimum. If the model is tangled, identify missing endpoints, direction semantics, or cycles before changing the graph representation.

2. Virtual node versus immediate assignment

Chen 2009’s source-described virtual-node phases are a method-specific deferred-resolution mechanism, not a general instruction to create placeholders whenever depth exceeds a threshold. Record whether a virtual node was generated for an actual node or another virtual node, retain its source/target relation, and resolve only through the source-named combined alternating graph procedure when that source has been fully implemented and checked. Otherwise return an incomplete proposal, not an optimal assignment.

3. Assignment and matching

For the exact finite-poset objective, maximum matching belongs on the full strict-reachability bipartite graph. For direct paths, it belongs on original arcs. In either case, reconstruct each successor/predecessor relation from matching edges and verify the output; a matching at an arbitrary level interface is not automatically a proof for either global objective.

4. Width measurement and validation

An antichain witness proves a lower bound. An equal number of valid reachability chains plus a maximum-matching certificate proves the exact result for the stated finite poset. A sink-peeling level can be a useful shape view but is not necessarily maximum width. Never turn width into “minimum agents” without a separate capacity/scheduling model.

Five diagnostic procedures

Sub-width compression fallacy. If fewer chains are claimed than the antichain witness size, reject the result. The repair is a matching/coverage audit, not resource spawning.

Premature assignment. If an application heuristic makes local commitments without a global certificate, label the result heuristic or incomplete. Do not claim Chen virtual-node resolution unless its exact source procedure is present.

Depth-width confusion. Report longest-path depth and antichain width as different graph properties. Neither is a processor count or a duration estimate.

Local optimization without a valid objective. A level-wise matching may be useful for a named method, but cannot substitute for closure matching when the requested output is a reachability-chain proof. Preserve the selected objective in output JSON.

Resource spawning before matching. A new chain is a structural partition member, not a live worker. Verify the partition first; the scheduler later decides resource admission from independent duration/capacity evidence.

Constructed application fixtures

Example 1: deployment graph, partition versus schedule

Constructed direct arcs are db-dev→api-dev→verify-dev, db-stage→api-stage→verify-stage, and verify-dev→promote-stage, verify-stage→promote-prod. A chain/path partition can expose ordered members, but it cannot claim three environments need three agents or that promotion has a completion time. The finite fixture in proof and application fixtures supplies an exact chain/antichain result and separately shows the additional data a schedule would require.

Example 2: sensor pipeline with deferred semantics

Constructed arcs are ingest-temperature→quality-temperature→aggregate, ingest-vibration→quality-vibration→aggregate, and aggregate→alert. “Post-quality processing” has no graph node until its input/output contract is known; it is not a virtual-node result by itself. A proposal may record an unresolved virtual-node role, but a verified chain partition contains only actual graph vertices. The fixture identifies the negative case where missing quality semantics prevent a verified claim.

Example 3: legal concatenation witness

For arcs a→x, c→x, x→b, x→d, use direct-path cover [[a,x,b],[c],[d]]. In the constructed Algorithm-3 iteration searching backward from d, visit incoming x, continue past interior x because it is not a current chain endpoint, then find endpoint c. The witness c→x→d permits member chains [c] and [d] to join as [c,d]; x remains assigned to [a,x,b]. The result [[a,x,b],[c,d]] is vertex-disjoint. This illustrates witness versus membership, not a source-mandated DFS tie order or global implementation proof.

Quality gates and boundaries

Record objective, graph revision, node/edge semantics, closure or direct-arc basis, matching size, output partition, and validation status. A verified exact chain result includes nonempty chains, matching certificate, and antichain witness; a verified direct path result includes nonempty paths and matching certificate; schedule requests route out as unsupported. Shape validation is not semantic graph proof.

Do not use this skill to dispatch work, choose worker counts, compute a calendar, update a changing graph, or promise Chen/Fulkerson behavior without the corresponding constructed graph and proof artifacts.

Read finite proof and application fixtures, Chen source boundary, and schema examples.

Bundle navigation

diagrams index.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月12日 更新

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月12日 更新

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月12日 更新

Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月12日 更新

Use for insight, reframing, contradiction, impasse, and anomaly-driven problem solving when execution effort no longer helps. NOT for routine optimization, error correction, or well-specified tasks with known solution paths.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月12日 更新

Apply cognitive task analysis to expert work that depends on perceptual cues, branching judgment, and recurring monitoring loops. Use when decomposing expert capability into agent structure, simulation design, or validation interviews. NOT for ordinary step-by-step SOP capture or simple pipelines with no tacit cue layer.

日本語の概要は準備中です。原文の説明を表示しています。

curiositech/port-daddy22026年10月12日 更新

curiositech のスキルをすべて見る

このスキルの問題を報告する