[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NVCE0DA5FB2JAR87KNZ1E0":3,"skill-same:01M6NVCE0DA5FB2JAR87KNZ1E0":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":14,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M6NVCE0DA5FB2JAR87KNZ1E0","graph-algorithms",null,"Problem-solving strategies for graph algorithms in graph number theory","rubicanjr\u002FFinCognis","rubicanjr","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F234912519?v=4","01M6NT156NND8J474G34SB3923","Rubi","01M6NT15B70RWXE1N3YV0BZY8A",0,"MIT","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fmath\u002Fgraph-number-theory\u002Fgraph-algorithms\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29],"graph","algorithms","graph algorithms","Bash","read","problem-solving","strategies","number theory","problem","number","for","2026-11-10 10:12:30",false,"---\nname: graph-algorithms\ndescription: \"Problem-solving strategies for graph algorithms in graph number theory\"\nallowed-tools: [Bash, Read]\n---\n\n# Graph Algorithms\n\n## When to Use\n\nUse this skill when working on graph-algorithms problems in graph number theory.\n\n## Decision Tree\n\n\n1. **Traversal selection**\n   - BFS: shortest paths (unweighted), level structure\n   - DFS: cycle detection, topological sort, SCC\n\n2. **Shortest path algorithms**\n   | Algorithm | Use Case | Complexity |\n   |-----------|----------|------------|\n   | Dijkstra | Non-negative weights | O((V+E) log V) |\n   | Bellman-Ford | Negative weights | O(VE) |\n   | Floyd-Warshall | All pairs | O(V^3) |\n\n3. **Minimum Spanning Tree**\n   - Prim's: dense graphs, greedy from vertex\n   - Kruskal's: sparse graphs, union-find\n   - `z3_solve.py prove \"cut_property\"`\n\n4. **Network Flow**\n   - Max-flow = min-cut (Ford-Fulkerson)\n   - Matching via flow network\n   - `sympy_compute.py linsolve \"flow_conservation\"`\n\n5. **Graph properties**\n   - Spectral: eigenvalues of adjacency matrix\n   - Connectivity: via DFS\u002FBFS\n   - Coloring: greedy or SAT reduction\n\n\n## Tool Commands\n\n### Sympy_Adjacency\n```bash\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py eigenvalues \"adjacency_matrix\"\n```\n\n### Z3_Dijkstra\n```bash\nuv run python -m runtime.harness scripts\u002Fz3_solve.py prove \"d[v] >= d[u] + w(u,v) for all edges\"\n```\n\n### Z3_Mst_Cut\n```bash\nuv run python -m runtime.harness scripts\u002Fz3_solve.py prove \"min_edge_crossing_cut_in_mst\"\n```\n\n### Sympy_Flow\n```bash\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py linsolve \"flow_conservation_equations\"\n```\n\n## Key Techniques\n\n*From indexed textbooks:*\n\n- [Graph Theory (Graduate Texts in Mathematics (173))] Given two numerical graph invariants i1 and i2, write i1 i2 if we can force i2 to be arbitrarily high on some subgraph of G by assuming that i1(G) is large enough. Formally: write i1 i2 if there exists a function f : N → N such that, given any k ∈ N, every graph G with i1(G) f (k) has a subgraph H with i2(H) k. If i1 i2 as well as i1 i2, write i1 ∼ i2.\n- [Graph Theory (Graduate Texts in Mathematics (173))] Find the smallest integer b = b(k) such that every graph of order n with more than kn + b edges has a (k + 1)-edge- connected subgraph, for every k ∈ N. Show that every tree T has at least Δ(T ) leaves. Show that a tree without a vertex of degree 2 has more leaves than other vertices.\n- [Graph Theory (Graduate Texts in Mathematics (173))] For every n > 1, nd a bipartite graph on 2n vertices, ordered in such a way that the greedy algorithm uses n rather than 2 colours. Exercises Consider the following approach to vertex colouring. First, nd a max- imal independent set of vertices and colour these with colour 1; then nd a maximal independent set of vertices in the remaining graph and colour those 2, and so on.\n- [Graph Theory (Graduate Texts in Mathematics (173))] Show that, for every r ∈ N, every innite graph of upper density s subgraph for every s ∈ N. Deduce that the upper density of innite graphs can only take r−1 has a K r the countably many values of 0, 1, 1 2 , 2 3 , 3 4 Extremal Graph Theory Given a tree T , nd an upper bound for ex(n, T ) that is linear in n and independent of the structure of T , i. Prove the Erd˝os-S´os conjecture for the case when the tree considered is a star.\n- [Graph Theory (Graduate Texts in Mathematics (173))] Colouring Slightly more generally, a class G of graphs is called χ-bounded if there exists a function f : N → N such that χ(G) f (r) for every graph G ⊇ Kr in G. In such graphs, then, we can force a Kr subgraph by making χ larger than f (r). Show that the four colour theorem does indeed solve the map colouring problem stated in the rst sentence of the chapter.\n\n## Cognitive Tools Reference\n\nSee `.claude\u002Fskills\u002Fmath-mode\u002FSKILL.md` for full tool documentation.\n","# Graph Algorithms\n\n## When to Use\n\nUse this skill when working on graph-algorithms problems in graph number theory.\n\n## Decision Tree\n\n\n1. **Traversal selection**\n   - BFS: shortest paths (unweighted), level structure\n   - DFS: cycle detection, topological sort, SCC\n\n2. **Shortest path algorithms**\n   | Algorithm | Use Case | Complexity |\n   |-----------|----------|------------|\n   | Dijkstra | Non-negative weights | O((V+E) log V) |\n   | Bellman-Ford | Negative weights | O(VE) |\n   | Floyd-Warshall | All pairs | O(V^3) |\n\n3. **Minimum Spanning Tree**\n   - Prim's: dense graphs, greedy from vertex\n   - Kruskal's: sparse graphs, union-find\n   - `z3_solve.py prove \"cut_property\"`\n\n4. **Network Flow**\n   - Max-flow = min-cut (Ford-Fulkerson)\n   - Matching via flow network\n   - `sympy_compute.py linsolve \"flow_conservation\"`\n\n5. **Graph properties**\n   - Spectral: eigenvalues of adjacency matrix\n   - Connectivity: via DFS\u002FBFS\n   - Coloring: greedy or SAT reduction\n\n\n## Tool Commands\n\n### Sympy_Adjacency\n```bash\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py eigenvalues \"adjacency_matrix\"\n```\n\n### Z3_Dijkstra\n```bash\nuv run python -m runtime.harness scripts\u002Fz3_solve.py prove \"d[v] >= d[u] + w(u,v) for all edges\"\n```\n\n### Z3_Mst_Cut\n```bash\nuv run python -m runtime.harness scripts\u002Fz3_solve.py prove \"min_edge_crossing_cut_in_mst\"\n```\n\n### Sympy_Flow\n```bash\nuv run python -m runtime.harness scripts\u002Fsympy_compute.py linsolve \"flow_conservation_equations\"\n```\n\n## Key Techniques\n\n*From indexed textbooks:*\n\n- [Graph Theory (Graduate Texts in Mathematics (173))] Given two numerical graph invariants i1 and i2, write i1 i2 if we can force i2 to be arbitrarily high on some subgraph of G by assuming that i1(G) is large enough. Formally: write i1 i2 if there exists a function f : N → N such that, given any k ∈ N, every graph G with i1(G) f (k) has a subgraph H with i2(H) k. If i1 i2 as well as i1 i2, write i1 ∼ i2.\n- [Graph Theory (Graduate Texts in Mathematics (173))] Find the smallest integer b = b(k) such that every graph of order n with more than kn + b edges has a (k + 1)-edge- connected subgraph, for every k ∈ N. Show that every tree T has at least Δ(T ) leaves. Show that a tree without a vertex of degree 2 has more leaves than other vertices.\n- [Graph Theory (Graduate Texts in Mathematics (173))] For every n > 1, nd a bipartite graph on 2n vertices, ordered in such a way that the greedy algorithm uses n rather than 2 colours. Exercises Consider the following approach to vertex colouring. First, nd a max- imal independent set of vertices and colour these with colour 1; then nd a maximal independent set of vertices in the remaining graph and colour those 2, and so on.\n- [Graph Theory (Graduate Texts in Mathematics (173))] Show that, for every r ∈ N, every innite graph of upper density s subgraph for every s ∈ N. Deduce that the upper density of innite graphs can only take r−1 has a K r the countably many values of 0, 1, 1 2 , 2 3 , 3 4 Extremal Graph Theory Given a tree T , nd an upper bound for ex(n, T ) that is linear in n and independent of the structure of T , i. Prove the Erd˝os-S´os conjecture for the case when the tree considered is a star.\n- [Graph Theory (Graduate Texts in Mathematics (173))] Colouring Slightly more generally, a class G of graphs is called χ-bounded if there exists a function f : N → N such that χ(G) f (r) for every graph G ⊇ Kr in G. In such graphs, then, we can force a Kr subgraph by making χ larger than f (r). Show that the four colour theorem does indeed solve the map colouring problem stated in the rst sentence of the chapter.\n\n## Cognitive Tools Reference\n\nSee `.claude\u002Fskills\u002Fmath-mode\u002FSKILL.md` for full tool documentation.\n",{"name":5,"description":7,"allowed-tools":35},[22,36],"Read","main","70e1c350500ee750987420bbae48837afa906b7e","skills\u002Fmath\u002Fgraph-number-theory\u002Fgraph-algorithms","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis","https:\u002F\u002Fgithub.com\u002Frubicanjr","linktr.ee\u002Ffinanskodu","Industrial Engineer & CIO @FinansKodu. Architecting AI-driven financial agents and autonomous workflows. 🏗️ Building systems, not just prompts.","2026-06-09 13:50:15",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add rubicanjr\u002FFinCognis --skill graph-algorithms",{"tool":51,"command":52},"bunx","bunx skills add rubicanjr\u002FFinCognis --skill graph-algorithms",{"tool":54,"command":55},"pnpm","pnpm dlx skills add rubicanjr\u002FFinCognis --skill graph-algorithms","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fmath\u002Fgraph-number-theory\u002Fgraph-algorithms\u002FSKILL.md",true,[],[60,76,85,101,126,145],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":30},"01M6NWS9DAXJTADT4T5MB49X8W","workflow-router","Goal-based workflow orchestration - routes tasks to specialist agents based on user goals","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow-router\u002FSKILL.md",[],[67,68,69,70,71,72,73,74,75],"workflow router","workflow","router","orchestration","goals","goal","user","workflow orchestration","tasks",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":30},"01M6NWS3RETSC0SHP16HP66E14","wiring","Wiring Verification","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fwiring\u002FSKILL.md",[],[78,83,84],"verification","false",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":30},"01M6NWS0XW9CVQZBDA1EGW0TWC","websocket-patterns","Connection management, room patterns, reconnection strategies, message buffering, and binary protocol design.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fwebsocket-patterns\u002Fskill.md",[],[92,93,94,95,96,97,98,25,99,100],"websocket","patterns","websocket patterns","design","protocol","management","message","binary","connection",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":30},"01M6NWRDQDX9ZNETAWRRMQWV52","visual-verdict","Screenshot comparison QA for frontend development. Takes a screenshot of the current implementation, scores it across multiple visual dimensions, and returns a structured PASS\u002FREVISE\u002FFAIL verdict with concrete fixes. Use when implementing UI from a design reference or verifying visual correctness.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-verdict\u002FSKILL.md",[],[108,109,110,111,112,113,114,115,116,29,117,118,119,95,120,121,122,123,124,125],"visual","verdict","visual verdict","ui","across","revise","comparison","correctness","implementing","fixes","dimensions","frontend","development","qa","screenshot","returns","use","frontend development",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":30},"01M6NWR8HSNRS7MNDK2J02QYMN","verification-loop","Comprehensive verification system covering build, types, lint, tests, security, and diff review before a PR.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[133,134,83,135,136,137,138,139,140,141,142,143,144],"verification loop","loop","lint","review","security","pr","system","diff","build","tests","diff review","types",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":30},"01M6NWR4HHSFR0VR5EXFRWA747","vector-db-patterns","Embedding strategies, ANN algorithms, hybrid search, RAG chunking strategies, and reranking for semantic search and retrieval.","https:\u002F\u002Fgithub.com\u002Frubicanjr\u002FFinCognis\u002Fblob\u002Fmain\u002Fskills\u002Fvector-db-patterns\u002Fskill.md",[],[152,153,154,155,93,156,157,158,20,25,159,160,161,162,163,29,164,165],"vector db patterns","vector db","db","vector","semantic search","search","embedding strategies","chunking","semantic","retrieval","embedding","Hybrid Search","hybrid","rag"]