@skill-graph/cli 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +247 -0
- package/LICENSE +200 -0
- package/NOTICE +62 -0
- package/README.md +398 -0
- package/SKILL_GRAPH.md +443 -0
- package/bin/skill-graph.js +374 -0
- package/docs/ADOPTION.md +117 -0
- package/docs/CONFORMANCE.md +66 -0
- package/docs/PRIMER.md +384 -0
- package/docs/QUICKSTART-30MIN.md +333 -0
- package/docs/ROUTING-METRICS.md +120 -0
- package/docs/SKILL-MD-FORMAT-COMPATIBILITY.md +127 -0
- package/docs/SKILL_AUDIT_CHECKLIST.md +199 -0
- package/docs/SKILL_AUDIT_LOOP.md +195 -0
- package/docs/SKILL_METADATA_PROTOCOL.md +609 -0
- package/docs/_archived/marketplace-publication-priority-2026-05-18.md +239 -0
- package/docs/adr/0001-predicate-set.md +69 -0
- package/docs/adr/0002-json-ld-context.md +82 -0
- package/docs/adr/0003-ontoclean-rigidity-tags.md +65 -0
- package/docs/adr/0004-persistent-identifiers.md +74 -0
- package/docs/adr/0005-freshness-consolidation.md +70 -0
- package/docs/adr/0006-revise-predicate-rename.md +105 -0
- package/docs/adr/0007-audit-loop-cadence.md +99 -0
- package/docs/adr/0008-skill-surface-split-and-curation-policy.md +93 -0
- package/docs/category-consumers.md +168 -0
- package/docs/concept-map.md +194 -0
- package/docs/diagrams/drift-states.mmd +21 -0
- package/docs/diagrams/manifest-pipeline.mmd +25 -0
- package/docs/diagrams/routing-harness.mmd +41 -0
- package/docs/diagrams/starter-graph.mmd +53 -0
- package/docs/field-decision-guide.md +315 -0
- package/docs/field-rationale.md +211 -0
- package/docs/field-reference.generated.md +624 -0
- package/docs/field-reference.md +1426 -0
- package/docs/glossary.md +190 -0
- package/docs/head-noun-glossary.md +63 -0
- package/docs/images/audit-phases.png +0 -0
- package/docs/images/drift-states.png +0 -0
- package/docs/images/graded-mode.png +0 -0
- package/docs/images/manifest-pipeline.png +0 -0
- package/docs/images/routing-harness.png +0 -0
- package/docs/images/skill-anatomy.png +0 -0
- package/docs/images/starter-graph.png +0 -0
- package/docs/images/system-model.png +0 -0
- package/docs/integrations/github-actions.md +155 -0
- package/docs/manifest-field-mapping.md +443 -0
- package/docs/marketplace-publication-queue.generated.md +240 -0
- package/docs/marketplace-release-agent-prompt.md +82 -0
- package/docs/marketplace-skill-candidate-list.md +272 -0
- package/docs/marketplace-syndication.md +222 -0
- package/docs/migration-sample-review.md +155 -0
- package/docs/migrations/v4-to-v5.md +168 -0
- package/docs/migrations/v5-to-v6.md +221 -0
- package/docs/name-exceptions.yaml +37 -0
- package/docs/plans/marketplace-p1-public-migration-plan.md +41 -0
- package/docs/plans/multi-root-workspace.md +148 -0
- package/docs/plans/scripts-roadmap.md +107 -0
- package/docs/plans/v4-schema-bump.md +160 -0
- package/docs/plans/wave-2-extraction.md +122 -0
- package/docs/positioning-vs-marketplaces.md +175 -0
- package/docs/proposals/skill-audit-loop-positioning.md +160 -0
- package/docs/quality-doctrine.md +138 -0
- package/docs/recommended-skills.md +150 -0
- package/docs/research/skill-comprehension-eval-research.md +1830 -0
- package/docs/research/skill-retrieval-evidence.md +66 -0
- package/docs/skill-metadata-protocol.md +471 -0
- package/docs/skills-sh-maintainer-cleanup-request.md +80 -0
- package/examples/audits/a11y/findings.md +52 -0
- package/examples/audits/a11y/scorecard.md +21 -0
- package/examples/audits/a11y/verdict.md +44 -0
- package/examples/audits/debugging/findings.md +59 -0
- package/examples/audits/debugging/scorecard.md +22 -0
- package/examples/audits/debugging/verdict.md +33 -0
- package/examples/audits/documentation/findings.md +59 -0
- package/examples/audits/documentation/scorecard.md +22 -0
- package/examples/audits/documentation/verdict.md +33 -0
- package/examples/evals/a11y.json +140 -0
- package/examples/evals/api-design.json +52 -0
- package/examples/evals/code-review.json +52 -0
- package/examples/evals/data-modeling.json +52 -0
- package/examples/evals/database-migration.json +52 -0
- package/examples/evals/debugging.json +118 -0
- package/examples/evals/dependency-architecture.json +52 -0
- package/examples/evals/design-system-architecture.json +52 -0
- package/examples/evals/error-tracking.json +52 -0
- package/examples/evals/event-contract-design.json +52 -0
- package/examples/evals/form-ux-architecture.json +52 -0
- package/examples/evals/framework-fit-analysis.json +52 -0
- package/examples/evals/graph-audit.json +139 -0
- package/examples/evals/information-architecture.json +52 -0
- package/examples/evals/interaction-feedback.json +52 -0
- package/examples/evals/interaction-patterns.json +52 -0
- package/examples/evals/layout-composition.json +52 -0
- package/examples/evals/lint-overlay.json +117 -0
- package/examples/evals/microcopy.json +52 -0
- package/examples/evals/observability-modeling.json +52 -0
- package/examples/evals/pattern-recognition.json +96 -0
- package/examples/evals/performance-engineering.json +52 -0
- package/examples/evals/refactor.json +128 -0
- package/examples/evals/semiotics.json +52 -0
- package/examples/evals/skill-infrastructure.json +96 -0
- package/examples/evals/skill-router.json +140 -0
- package/examples/evals/skill-router.routing.json +113 -0
- package/examples/evals/system-interface-contracts.json +52 -0
- package/examples/evals/task-analysis.json +52 -0
- package/examples/evals/testing-strategy.json +118 -0
- package/examples/evals/type-safety.json +249 -0
- package/examples/evals/visual-design-foundations.json +52 -0
- package/examples/evals/webhook-integration.json +52 -0
- package/examples/exports/a11y.skill-md.md +80 -0
- package/examples/exports/debugging.skill-md.md +80 -0
- package/examples/exports/refactor.skill-md.md +78 -0
- package/examples/exports/testing-strategy.skill-md.md +81 -0
- package/examples/projects/markdown-static-site/README.md +115 -0
- package/examples/projects/markdown-static-site/skills/content-source-router/SKILL.md +131 -0
- package/examples/projects/markdown-static-site/skills/image-optimization-pipeline-config/SKILL.md +132 -0
- package/examples/projects/markdown-static-site/skills/link-rot-detection/SKILL.md +103 -0
- package/examples/projects/markdown-static-site/skills/markdown-post-frontmatter-validation/SKILL.md +133 -0
- package/examples/projects/markdown-static-site/skills/migrate-posts-to-v2-frontmatter/SKILL.md +140 -0
- package/examples/projects/saas-stripe-postgres/README.md +208 -0
- package/examples/projects/saas-stripe-postgres/db/migrations/0004_canonicalize_orders.sql +37 -0
- package/examples/projects/saas-stripe-postgres/db/schema.sql +112 -0
- package/examples/projects/saas-stripe-postgres/skills/migrate-orders-to-canonical-schema/SKILL.md +149 -0
- package/examples/projects/saas-stripe-postgres/skills/nextjs-server-action-validation/SKILL.md +154 -0
- package/examples/projects/saas-stripe-postgres/skills/payment-provider-router/SKILL.md +153 -0
- package/examples/projects/saas-stripe-postgres/skills/postgres-rls-pattern/SKILL.md +163 -0
- package/examples/projects/saas-stripe-postgres/skills/stripe-webhook-signature-verification/SKILL.md +137 -0
- package/examples/protocol/skill-metadata-template.md +301 -0
- package/examples/protocol/skills.manifest.sample.json +13245 -0
- package/examples/skill-metadata-template.md +317 -0
- package/examples/skills.manifest.sample.json +13519 -0
- package/examples/tests/v3-1-skos-fixture/SKILL.md +93 -0
- package/marketplace/README.md +17 -0
- package/marketplace/skills/a11y/SKILL.md +66 -0
- package/marketplace/skills/acid-fundamentals/SKILL.md +106 -0
- package/marketplace/skills/agent-engineering/SKILL.md +386 -0
- package/marketplace/skills/agent-eval-design/SKILL.md +55 -0
- package/marketplace/skills/ai-native-development/SKILL.md +294 -0
- package/marketplace/skills/api-design/SKILL.md +60 -0
- package/marketplace/skills/architecture-decision-records/SKILL.md +55 -0
- package/marketplace/skills/background-jobs/SKILL.md +265 -0
- package/marketplace/skills/bounded-context-mapping/SKILL.md +55 -0
- package/marketplace/skills/cap-theorem-tradeoffs/SKILL.md +127 -0
- package/marketplace/skills/client-server-boundary/SKILL.md +187 -0
- package/marketplace/skills/code-review/SKILL.md +120 -0
- package/marketplace/skills/color-system-design/SKILL.md +43 -0
- package/marketplace/skills/component-architecture/SKILL.md +126 -0
- package/marketplace/skills/compression/SKILL.md +112 -0
- package/marketplace/skills/conceptual-modeling/SKILL.md +181 -0
- package/marketplace/skills/connection-pooling/SKILL.md +105 -0
- package/marketplace/skills/constraint-awareness/SKILL.md +287 -0
- package/marketplace/skills/content-monitor/SKILL.md +209 -0
- package/marketplace/skills/context-engineering/SKILL.md +320 -0
- package/marketplace/skills/context-graph/SKILL.md +174 -0
- package/marketplace/skills/context-management/SKILL.md +174 -0
- package/marketplace/skills/context-window/SKILL.md +239 -0
- package/marketplace/skills/contract-testing/SKILL.md +120 -0
- package/marketplace/skills/cron-scheduling/SKILL.md +223 -0
- package/marketplace/skills/dark-mode-implementation/SKILL.md +47 -0
- package/marketplace/skills/data-modeling/SKILL.md +59 -0
- package/marketplace/skills/data-modeling-fundamentals/SKILL.md +117 -0
- package/marketplace/skills/database-migration/SKILL.md +429 -0
- package/marketplace/skills/debugging/SKILL.md +67 -0
- package/marketplace/skills/dependency-architecture/SKILL.md +58 -0
- package/marketplace/skills/design-module-composition/SKILL.md +43 -0
- package/marketplace/skills/design-system-architecture/SKILL.md +61 -0
- package/marketplace/skills/design-thinking/SKILL.md +44 -0
- package/marketplace/skills/diagnosis/SKILL.md +296 -0
- package/marketplace/skills/diff-analysis/SKILL.md +188 -0
- package/marketplace/skills/e2e-test-design/SKILL.md +113 -0
- package/marketplace/skills/entity-relationship-modeling/SKILL.md +218 -0
- package/marketplace/skills/epistemic-grounding/SKILL.md +112 -0
- package/marketplace/skills/error-boundary/SKILL.md +235 -0
- package/marketplace/skills/error-tracking/SKILL.md +261 -0
- package/marketplace/skills/eval-driven-development/SKILL.md +147 -0
- package/marketplace/skills/evaluation/SKILL.md +113 -0
- package/marketplace/skills/event-contract-design/SKILL.md +60 -0
- package/marketplace/skills/event-storming/SKILL.md +56 -0
- package/marketplace/skills/form-ux-architecture/SKILL.md +60 -0
- package/marketplace/skills/framework-fit-analysis/SKILL.md +59 -0
- package/marketplace/skills/frontend-architecture/SKILL.md +43 -0
- package/marketplace/skills/generative-ui/SKILL.md +118 -0
- package/marketplace/skills/graph-audit/SKILL.md +81 -0
- package/marketplace/skills/guardrails/SKILL.md +118 -0
- package/marketplace/skills/hooks-patterns/SKILL.md +185 -0
- package/marketplace/skills/http-semantics/SKILL.md +136 -0
- package/marketplace/skills/ideation/SKILL.md +41 -0
- package/marketplace/skills/indexing-strategy/SKILL.md +108 -0
- package/marketplace/skills/information-architecture/SKILL.md +59 -0
- package/marketplace/skills/integration-test-design/SKILL.md +111 -0
- package/marketplace/skills/intent-recognition/SKILL.md +136 -0
- package/marketplace/skills/interaction-feedback/SKILL.md +59 -0
- package/marketplace/skills/interaction-patterns/SKILL.md +59 -0
- package/marketplace/skills/journey-mapping/SKILL.md +41 -0
- package/marketplace/skills/keywords/SKILL.md +213 -0
- package/marketplace/skills/knowledge-modeling/SKILL.md +232 -0
- package/marketplace/skills/layout-composition/SKILL.md +59 -0
- package/marketplace/skills/linguistics/SKILL.md +429 -0
- package/marketplace/skills/lint-overlay/SKILL.md +76 -0
- package/marketplace/skills/mental-models/SKILL.md +126 -0
- package/marketplace/skills/merge-queue/SKILL.md +94 -0
- package/marketplace/skills/methodology/SKILL.md +317 -0
- package/marketplace/skills/microcopy/SKILL.md +232 -0
- package/marketplace/skills/middleware-patterns/SKILL.md +363 -0
- package/marketplace/skills/mobile-responsive-ux/SKILL.md +287 -0
- package/marketplace/skills/mutation-testing/SKILL.md +112 -0
- package/marketplace/skills/naming-conventions/SKILL.md +112 -0
- package/marketplace/skills/observability-modeling/SKILL.md +59 -0
- package/marketplace/skills/ontology-modeling/SKILL.md +67 -0
- package/marketplace/skills/owasp-security/SKILL.md +153 -0
- package/marketplace/skills/pattern-recognition/SKILL.md +472 -0
- package/marketplace/skills/performance-budgets/SKILL.md +185 -0
- package/marketplace/skills/performance-engineering/SKILL.md +58 -0
- package/marketplace/skills/performance-testing/SKILL.md +125 -0
- package/marketplace/skills/printify/SKILL.md +42 -0
- package/marketplace/skills/prioritization/SKILL.md +118 -0
- package/marketplace/skills/problem-framing/SKILL.md +41 -0
- package/marketplace/skills/problem-locating-solving/SKILL.md +203 -0
- package/marketplace/skills/project-knowledge-extraction/SKILL.md +54 -0
- package/marketplace/skills/prompt-craft/SKILL.md +134 -0
- package/marketplace/skills/prompt-injection-defense/SKILL.md +132 -0
- package/marketplace/skills/property-based-testing/SKILL.md +100 -0
- package/marketplace/skills/prototyping/SKILL.md +43 -0
- package/marketplace/skills/query-optimization/SKILL.md +144 -0
- package/marketplace/skills/real-time-updates/SKILL.md +324 -0
- package/marketplace/skills/ref-patterns/SKILL.md +284 -0
- package/marketplace/skills/refactor/SKILL.md +65 -0
- package/marketplace/skills/rendering-models/SKILL.md +142 -0
- package/marketplace/skills/replication-patterns/SKILL.md +110 -0
- package/marketplace/skills/research-synthesis/SKILL.md +41 -0
- package/marketplace/skills/route-handler-design/SKILL.md +347 -0
- package/marketplace/skills/schema-evolution/SKILL.md +140 -0
- package/marketplace/skills/security-fundamentals/SKILL.md +139 -0
- package/marketplace/skills/semantic-center/SKILL.md +194 -0
- package/marketplace/skills/semantic-relations/SKILL.md +250 -0
- package/marketplace/skills/semantics/SKILL.md +366 -0
- package/marketplace/skills/semiotics/SKILL.md +230 -0
- package/marketplace/skills/seo-strategy/SKILL.md +260 -0
- package/marketplace/skills/server-actions-design/SKILL.md +243 -0
- package/marketplace/skills/server-components-design/SKILL.md +190 -0
- package/marketplace/skills/sharding-strategy/SKILL.md +123 -0
- package/marketplace/skills/shopify/SKILL.md +42 -0
- package/marketplace/skills/skill-infrastructure/SKILL.md +320 -0
- package/marketplace/skills/skill-router/SKILL.md +71 -0
- package/marketplace/skills/skill-scaffold/SKILL.md +105 -0
- package/marketplace/skills/snapshot-testing/SKILL.md +120 -0
- package/marketplace/skills/spec-driven-development/SKILL.md +148 -0
- package/marketplace/skills/state-machine-modeling/SKILL.md +56 -0
- package/marketplace/skills/state-management/SKILL.md +134 -0
- package/marketplace/skills/streaming-architecture/SKILL.md +194 -0
- package/marketplace/skills/summarization/SKILL.md +156 -0
- package/marketplace/skills/suspense-patterns/SKILL.md +265 -0
- package/marketplace/skills/system-interface-contracts/SKILL.md +59 -0
- package/marketplace/skills/task-analysis/SKILL.md +201 -0
- package/marketplace/skills/taxonomy-design/SKILL.md +66 -0
- package/marketplace/skills/test-coverage-strategy/SKILL.md +108 -0
- package/marketplace/skills/test-doubles-design/SKILL.md +98 -0
- package/marketplace/skills/test-driven-development/SKILL.md +96 -0
- package/marketplace/skills/testing-strategy/SKILL.md +67 -0
- package/marketplace/skills/theme-system-design/SKILL.md +43 -0
- package/marketplace/skills/tool-call-flow/SKILL.md +229 -0
- package/marketplace/skills/tool-call-strategy/SKILL.md +292 -0
- package/marketplace/skills/transaction-isolation/SKILL.md +98 -0
- package/marketplace/skills/type-safety/SKILL.md +177 -0
- package/marketplace/skills/typography-system/SKILL.md +43 -0
- package/marketplace/skills/usability-testing/SKILL.md +43 -0
- package/marketplace/skills/user-research/SKILL.md +43 -0
- package/marketplace/skills/vercel-composition-patterns/SKILL.md +157 -0
- package/marketplace/skills/version-control/SKILL.md +233 -0
- package/marketplace/skills/visual-design-foundations/SKILL.md +59 -0
- package/marketplace/skills/visual-hierarchy/SKILL.md +43 -0
- package/marketplace/skills/webhook-integration/SKILL.md +331 -0
- package/marketplace/skills/writing-humanizer/SKILL.md +380 -0
- package/package.json +67 -0
- package/schemas/manifest.schema.json +811 -0
- package/schemas/manifest.v2.schema.json +164 -0
- package/schemas/manifest.v3.schema.json +758 -0
- package/schemas/manifest.v4.schema.json +755 -0
- package/schemas/manifest.v5.schema.json +755 -0
- package/schemas/manifest.v6.schema.json +811 -0
- package/schemas/skill.context.jsonld +279 -0
- package/schemas/skill.schema.json +919 -0
- package/schemas/skill.v2.schema.json +201 -0
- package/schemas/skill.v3.schema.json +827 -0
- package/schemas/skill.v4.schema.json +822 -0
- package/schemas/skill.v5.schema.json +830 -0
- package/schemas/skill.v6.schema.json +946 -0
- package/schemas/vocabulary/keywords.json +180 -0
- package/schemas/vocabulary/workspace_tags.json +23 -0
- package/scripts/__tests__/migrate-skill-v2-to-v3.test.js +161 -0
- package/scripts/__tests__/migrate-skill-v3-to-v4.test.js +158 -0
- package/scripts/__tests__/test-export-parser-drift.js +149 -0
- package/scripts/__tests__/test-marketplace-export.js +114 -0
- package/scripts/__tests__/test-router-paths.js +82 -0
- package/scripts/__tests__/test-stability-promotion.js +244 -0
- package/scripts/__tests__/test-v3-1-alias-contract.js +109 -0
- package/scripts/__tests__/test-v3-1-skos-runtime.js +116 -0
- package/scripts/backfill-schema-version.js +198 -0
- package/scripts/build-field-reference.js +160 -0
- package/scripts/build-retrieval-baseline.js +511 -0
- package/scripts/check-markdown-links.js +211 -0
- package/scripts/check-protocol-consistency.js +979 -0
- package/scripts/export-marketplace-skills.js +610 -0
- package/scripts/export-skill.js +374 -0
- package/scripts/generate-manifest.js +787 -0
- package/scripts/lib/alias-contract.js +83 -0
- package/scripts/lib/audit-prompt-builder.js +771 -0
- package/scripts/lib/mock-grader.js +134 -0
- package/scripts/lib/parse-frontmatter.js +429 -0
- package/scripts/lib/roots.js +119 -0
- package/scripts/lint/check-archetype-sections.js +185 -0
- package/scripts/lint/check-category-enum.js +83 -0
- package/scripts/lint/check-routing-eval.js +146 -0
- package/scripts/lint/check-routing-quality.js +211 -0
- package/scripts/lint/check-stability-promotion.js +220 -0
- package/scripts/lint/format-code-frame.js +206 -0
- package/scripts/marketplace-install.js +125 -0
- package/scripts/migrate-category-to-enum.js +169 -0
- package/scripts/migrate-skill-v2-to-v3.js +424 -0
- package/scripts/migrate-skill-v3-to-v4.js +200 -0
- package/scripts/migrate-skill-v5-to-v6.js +304 -0
- package/scripts/restructure-by-category.js +85 -0
- package/scripts/seed-publication-classification.js +282 -0
- package/scripts/skill-audit.js +893 -0
- package/scripts/skill-graph-drift.js +483 -0
- package/scripts/skill-graph-route.js +766 -0
- package/scripts/skill-graph-routing-eval.js +393 -0
- package/scripts/skill-lint.js +1317 -0
- package/scripts/skill-overlap.js +213 -0
- package/scripts/verify-skill-md-export.js +201 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: knowledge-modeling
|
|
3
|
+
description: "Use when choosing the representation paradigm for domain knowledge: knowledge graph, frame, production rule, semantic network, concept map, procedural ontology, or hybrid. Covers knowledge acquisition from tacit to explicit, graph design principles, validation types, lifecycle states, AI-agent context systems, skills as frames, routing as rules, memory as graph, and GraphRAG patterns such as entity-anchored retrieval, relationship-aware context, path reasoning, subgraph summaries, and hybrid vector+graph retrieval. Do NOT use for human-readable domain analysis (`conceptual-modeling`), ER/database design, pure taxonomy work, formal ontology axioms, or live skill-library tooling (`skill-infrastructure`)."
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: "Theory-level skill. Applies to any AI-coding workspace that maintains structured knowledge artefacts: skill libraries, reference docs, decision records, runbooks, agent memory systems, RAG/GraphRAG pipelines."
|
|
6
|
+
allowed-tools: Read Grep
|
|
7
|
+
metadata:
|
|
8
|
+
metadata: "{\"schema_version\":6,\"version\":\"1.1.0\",\"type\":\"capability\",\"category\":\"foundations\",\"domain\":\"foundations/knowledge\",\"scope\":\"portable\",\"owner\":\"skill-graph-maintainer\",\"freshness\":\"2026-05-16\",\"drift_check\":\"{\\\\\\\"last_verified\\\\\\\":\\\\\\\"2026-05-16\\\\\\\"}\",\"eval_artifacts\":\"planned\",\"eval_state\":\"unverified\",\"routing_eval\":\"absent\",\"comprehension_state\":\"present\",\"stability\":\"experimental\",\"keywords\":\"[\\\\\\\"knowledge representation\\\\\\\",\\\\\\\"knowledge graph\\\\\\\",\\\\\\\"frames and slots\\\\\\\",\\\\\\\"production rules\\\\\\\",\\\\\\\"semantic network\\\\\\\",\\\\\\\"concept map\\\\\\\",\\\\\\\"procedural ontology PKO\\\\\\\",\\\\\\\"hybrid knowledge representation\\\\\\\",\\\\\\\"tacit to explicit knowledge\\\\\\\",\\\\\\\"knowledge acquisition pipeline\\\\\\\",\\\\\\\"graphRAG retrieval\\\\\\\",\\\\\\\"entity anchored retrieval\\\\\\\",\\\\\\\"relationship aware context\\\\\\\",\\\\\\\"path based reasoning\\\\\\\",\\\\\\\"subgraph summarization\\\\\\\",\\\\\\\"knowledge lifecycle\\\\\\\",\\\\\\\"representation tradeoff expressiveness tractability\\\\\\\",\\\\\\\"which representation paradigm fits\\\\\\\"]\",\"examples\":\"[\\\\\\\"should this domain knowledge be a graph, a set of rules, a frame structure, or a hybrid?\\\\\\\",\\\\\\\"our skill library keeps adding prose but the agent can't reason over relationships — which representation should change?\\\\\\\",\\\\\\\"the agent retrieves topically similar passages but misses structurally related facts — is GraphRAG the right shift?\\\\\\\",\\\\\\\"how do I capture decision traces and triggers as first-class entities so the agent can replay why it chose Y?\\\\\\\",\\\\\\\"we have facts, exceptions, and procedural decisions for an audit system — what representation keeps both retrieval and reasoning tractable?\\\\\\\",\\\\\\\"should this workflow stay a human concept map or be promoted to machine-usable production rules?\\\\\\\",\\\\\\\"we want to validate the knowledge base against real scenarios — what completeness / consistency / relevance / currency checks should run?\\\\\\\"]\",\"anti_examples\":\"[\\\\\\\"design the database tables and foreign keys for this schema\\\\\\\",\\\\\\\"I just need a clean IS-A category hierarchy with no rules or graph behavior\\\\\\\",\\\\\\\"I need formal OWL axioms with class restrictions and reasoning semantics\\\\\\\",\\\\\\\"I want the exact edge labels (hypernymy / meronymy / synonymy) between concepts\\\\\\\",\\\\\\\"I need to maintain the skill library tooling and overlap detector\\\\\\\",\\\\\\\"abstract the domain into entities and relationships in human-readable terms before any database talk\\\\\\\"]\",\"relations\":\"{\\\\\\\"boundary\\\\\\\":[{\\\\\\\"skill\\\\\\\":\\\\\\\"conceptual-modeling\\\\\\\",\\\\\\\"reason\\\\\\\":\\\\\\\"conceptual-modeling is the human-readable domain analysis layer (entities, attributes, relationships, cardinality); knowledge-modeling is the *representation-strategy* layer above that — choosing between graphs, frames, rules, hybrids\\\\\\\"},{\\\\\\\"skill\\\\\\\":\\\\\\\"context-graph\\\\\\\",\\\\\\\"reason\\\\\\\":\\\\\\\"context-graph is one specific *application* of knowledge modeling (the multi-graph context architecture for skills + docs + memory + scripts); knowledge-modeling is the general theory it draws on\\\\\\\"},{\\\\\\\"skill\\\\\\\":\\\\\\\"skill-infrastructure\\\\\\\",\\\\\\\"reason\\\\\\\":\\\\\\\"skill-infrastructure is the live tooling that maintains the skill library; knowledge-modeling is the theory of *what kind of knowledge artefact* a SKILL.md is and why frames are the right paradigm for one\\\\\\\"},{\\\\\\\"skill\\\\\\\":\\\\\\\"database-migration\\\\\\\",\\\\\\\"reason\\\\\\\":\\\\\\\"database-migration concerns *data* structure (tables, columns, FK constraints); knowledge-modeling concerns *meaning* structure (entities, relations, rules)\\\\\\\"}],\\\\\\\"related\\\\\\\":[\\\\\\\"conceptual-modeling\\\\\\\",\\\\\\\"context-graph\\\\\\\",\\\\\\\"context-engineering\\\\\\\",\\\\\\\"skill-infrastructure\\\\\\\"],\\\\\\\"verify_with\\\\\\\":[\\\\\\\"conceptual-modeling\\\\\\\"]}\",\"portability\":\"{\\\\\\\"readiness\\\\\\\":\\\\\\\"scripted\\\\\\\",\\\\\\\"targets\\\\\\\":[\\\\\\\"skill-md\\\\\\\"]}\",\"lifecycle\":\"{\\\\\\\"stale_after_days\\\\\\\":365,\\\\\\\"review_cadence\\\\\\\":\\\\\\\"quarterly\\\\\\\"}\",\"mental_model\":\"|\",\"purpose\":\"|\",\"boundary\":\"|\",\"analogy\":\"Knowledge modeling is to a knowledge artefact what choosing between blueprint, schematic, exploded view, flowchart, and storyboard is to documenting a complex device — the device hasn't changed, but each format makes different questions easy or impossible to answer. A blueprint answers 'where does this part go?'; a schematic answers 'what is connected to what?'; a flowchart answers 'what happens when?'. Showing a customer a wiring schematic when they want to know how the product is assembled is choosing the wrong representation, not failing at the documentation.\",\"misconception\":\"|\",\"concept\":\"{\\\\\\\"definition\\\\\\\":\\\\\\\"Knowledge modeling is the discipline of choosing a *representation paradigm* — knowledge graph, frames, production rules, semantic network, concept map, procedural ontology, or a hybrid — that fits how the resulting knowledge will be queried, reasoned over, and maintained. Drawing from Brachman & Levesque's knowledge-representation tradition and Newell's knowledge-level account, it treats representation as a strategic choice with explicit expressiveness-tractability trade-offs rather than as a default.\\\\\\\",\\\\\\\"mental_model\\\\\\\":\\\\\\\"|\\\\\\\",\\\\\\\"purpose\\\\\\\":\\\\\\\"|\\\\\\\",\\\\\\\"boundary\\\\\\\":\\\\\\\"|\\\\\\\",\\\\\\\"taxonomy\\\\\\\":\\\\\\\"|\\\\\\\",\\\\\\\"analogy\\\\\\\":\\\\\\\"|\\\\\\\",\\\\\\\"misconception\\\\\\\":\\\\\\\"|\\\\\\\"}\",\"skill_graph_source_repo\":\"https://github.com/jacob-balslev/skill-graph\",\"skill_graph_protocol\":\"Skill Metadata Protocol v5\",\"skill_graph_project\":\"Skill Graph\",\"skill_graph_canonical_skill\":\"skills/knowledge-modeling/SKILL.md\",\"skill_graph_export_description\":\"shortened for Agent Skills 1024-character description limit; canonical source keeps the full routing contract\",\"skill_graph_canonical_description_length\":\"1592\"}"
|
|
9
|
+
skill_graph_source_repo: "https://github.com/jacob-balslev/skill-graph"
|
|
10
|
+
skill_graph_protocol: Skill Metadata Protocol v4
|
|
11
|
+
skill_graph_project: Skill Graph
|
|
12
|
+
skill_graph_canonical_skill: skills/knowledge-modeling/SKILL.md
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Knowledge Modeling
|
|
16
|
+
|
|
17
|
+
## Coverage
|
|
18
|
+
|
|
19
|
+
The representation-strategy layer above conceptual modeling and below formal ontology. Names seven knowledge-representation paradigms — Knowledge Graph, Frames, Semantic Network, Production Rules, Concept Map, Process / Procedural Ontology (PKO), Hybrid — with structure, best-for, and weakness for each. Specifies the tacit-to-explicit knowledge acquisition pipeline that converts what experts know-but-cannot-articulate into computable form (elicitation → articulation → formalization → expert validation → encoding) and the five knowledge sources (domain experts, documentation, existing code, user behaviour, failure post-mortems). Lays out knowledge-graph design principles: reify when a relationship has properties, separate schema-level from instance-level, label edges precisely (`created_by` not `related_to`), enforce bidirectional naming, minimise redundancy. Covers the four validation types (completeness / consistency / relevance / currency) plus expert walkthrough. Walks the seven-phase knowledge lifecycle (Create → Validate → Publish → Use → Monitor → Update → Retire) with each phase's failure mode. Maps the theory to AI-agent systems: skills as frames, routing as production rules, memory as a knowledge graph with temporal properties. Devotes a full section to GraphRAG with five concrete patterns (entity-anchored retrieval, relationship-aware context, path-based reasoning, subgraph summarization, hybrid vector + graph) and the rules for when graph-grounded retrieval actually beats plain vector RAG. Closes with the representation-tradeoff matrix between expressiveness and tractability across reasoning, querying, maintenance, and human readability.
|
|
20
|
+
|
|
21
|
+
## Philosophy
|
|
22
|
+
|
|
23
|
+
Knowledge is not data. Data records facts; knowledge encodes the judgment and context needed to _act_ on those facts. A database stores that an order has status `refunded`. Knowledge captures that a refund after thirty days requires manager approval, that the customer's lifetime value should influence the response, and that the upstream fulfilment pipeline has a known forty-eight-hour delay. The agent that has only the data hallucinates the policy; the agent that has the knowledge applies it.
|
|
24
|
+
|
|
25
|
+
AI-agent systems are knowledge systems in disguise. Every SKILL.md is a knowledge artefact. Every reference doc is a knowledge artefact. Every routing rule, every memory file, every decision record is a knowledge artefact. The question is not _whether_ the workspace has a knowledge model — it always does, even when implicit — but _whether the model fits the dominant query pattern_. Multi-hop reasoning needs a graph. Decision logic needs production rules. Object-like domain entities need frames. "Why did the agent decide X?" needs a procedural ontology. Pick the wrong paradigm and the agent's reasoning breaks against the representation rather than against the domain.
|
|
26
|
+
|
|
27
|
+
The representation-vs-reasoning tradeoff is non-negotiable. More expressive representations (OWL-DL, full first-order logic) admit fewer fast queries; more tractable representations (property graphs, key-value) admit fewer formal proofs. For most product teams the right answer is "Markdown with conventions" — which is what a SKILL.md is — not formal ontology. Escalate formality only when automated reasoning or multi-system interop demands it.
|
|
28
|
+
|
|
29
|
+
## 1. Knowledge-Representation Paradigms
|
|
30
|
+
|
|
31
|
+
| Paradigm | Structure | Best for | Weakness |
|
|
32
|
+
| --------------------------------------- | -------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------- |
|
|
33
|
+
| **Knowledge Graph** | Nodes (entities) + edges (relationships) + properties | Multi-hop reasoning, entity disambiguation, relationship discovery | Hard to express rules and constraints |
|
|
34
|
+
| **Frames** | Structured records with slots, default values, inheritance | Object-like domain modeling; defaults and exceptions | Limited relationship expressiveness |
|
|
35
|
+
| **Semantic Network** | Labelled graph of concepts with IS-A / HAS-A links | Concept navigation; vocabulary organisation | No formal semantics; ambiguous edges |
|
|
36
|
+
| **Production Rules** | IF condition THEN action | Decision logic; business rules; routing | Poor at representing structural knowledge |
|
|
37
|
+
| **Concept Map** | Propositions as labelled connections between concepts | Learning, communication, knowledge audit | Informal; not directly computable |
|
|
38
|
+
| **Process / Procedural Ontology (PKO)** | Decisions, state changes, procedural steps, and triggers as first-class entities | Agent memory with "why / how" traces; audit trails; workflow capture; multi-agent orchestration | Heavy to author; easy to over-instrument |
|
|
39
|
+
| **Hybrid** | Mix of graph + rules + frames | Real-world systems | Complexity management |
|
|
40
|
+
|
|
41
|
+
### Choosing the paradigm
|
|
42
|
+
|
|
43
|
+
Pick the paradigm by the **primary query pattern** the system needs to answer:
|
|
44
|
+
|
|
45
|
+
- "What is related to X?" → graph
|
|
46
|
+
- "What should I do when X?" → production rules
|
|
47
|
+
- "What are the properties of X?" → frames
|
|
48
|
+
- "What concepts connect these ideas, for a human reader?" → concept map
|
|
49
|
+
- "Why did the agent decide X, and through what intermediate states?" → procedural ontology (PKO)
|
|
50
|
+
|
|
51
|
+
Most real systems converge on a _hybrid_: a knowledge graph for entities and relationships, plus production rules for decision logic, plus frames for stable domain objects, plus a PKO layer when decision-trace replay matters.
|
|
52
|
+
|
|
53
|
+
## 2. Knowledge Acquisition
|
|
54
|
+
|
|
55
|
+
### Sources and methods
|
|
56
|
+
|
|
57
|
+
| Source | Method | Output |
|
|
58
|
+
| -------------- | ---------------------------------------- | ------------------------------------- |
|
|
59
|
+
| Domain experts | Structured interviews, protocol analysis | Explicit rules, decision criteria |
|
|
60
|
+
| Documentation | Document analysis, extraction | Facts, procedures, constraints |
|
|
61
|
+
| Existing code | Code archaeology, pattern mining | Implicit rules, edge cases |
|
|
62
|
+
| User behaviour | Task analysis, usage logs | Tacit knowledge, workarounds |
|
|
63
|
+
| Failures | Post-mortem analysis, bug reports | _Negative_ knowledge — what NOT to do |
|
|
64
|
+
|
|
65
|
+
### Tacit-to-explicit pipeline
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
Tacit knowledge (in expert's head)
|
|
69
|
+
│
|
|
70
|
+
▼
|
|
71
|
+
Elicitation — interview, observation
|
|
72
|
+
│
|
|
73
|
+
▼
|
|
74
|
+
Articulation — natural-language rules
|
|
75
|
+
│
|
|
76
|
+
▼
|
|
77
|
+
Formalization — structured representation
|
|
78
|
+
│
|
|
79
|
+
▼
|
|
80
|
+
Validation — expert review against real scenarios
|
|
81
|
+
│
|
|
82
|
+
▼
|
|
83
|
+
Encoding — computable form
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Rules:
|
|
87
|
+
|
|
88
|
+
- The most valuable knowledge is _tacit_ — things experts do automatically but cannot articulate without prompting. Plan elicitation, not just transcription.
|
|
89
|
+
- Negative knowledge ("never do X because Y happened") is as valuable as positive knowledge. Capture failures.
|
|
90
|
+
- Knowledge mined from code is structurally incomplete: the code captures the _what_, not the _why_. Pair code archaeology with expert review.
|
|
91
|
+
|
|
92
|
+
## 3. Knowledge-Graph Design Principles
|
|
93
|
+
|
|
94
|
+
### Node and edge conventions
|
|
95
|
+
|
|
96
|
+
| Element | Convention | Example |
|
|
97
|
+
| --------------------- | -------------------------------- | ---------------------------------- |
|
|
98
|
+
| **Entity node** | Noun, PascalCase | `Order`, `Product`, `Customer` |
|
|
99
|
+
| **Concept node** | Noun phrase representing an idea | `RefundPolicy`, `PricingStrategy` |
|
|
100
|
+
| **Relationship edge** | Verb phrase, directed, labelled | `Order -[placed_by]-> Customer` |
|
|
101
|
+
| **Property** | Key-value on node or edge | `Order.total_amount = 4599` |
|
|
102
|
+
| **Type edge** | IS-A classification | `DigitalProduct -[is_a]-> Product` |
|
|
103
|
+
| **Part edge** | Part-whole | `LineItem -[part_of]-> Order` |
|
|
104
|
+
|
|
105
|
+
### Five graph principles
|
|
106
|
+
|
|
107
|
+
| Principle | Rule |
|
|
108
|
+
| ----------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
|
|
109
|
+
| **Reify when needed** | If a relationship carries properties (date, amount, status), promote it to a node |
|
|
110
|
+
| **Separate structure from content** | Schema nodes (types, relations) vs instance nodes (specific entities) |
|
|
111
|
+
| **Label precisely** | `created_by` not `related_to`; specificity enables reasoning |
|
|
112
|
+
| **Bidirectional naming** | Every edge should read naturally in both directions: `Order -[placed_by]-> Customer` and `Customer -[placed]-> Order` |
|
|
113
|
+
| **Minimal redundancy** | Derive rather than duplicate; if a value can be computed from the graph, don't store it twice |
|
|
114
|
+
|
|
115
|
+
## 4. Knowledge Validation
|
|
116
|
+
|
|
117
|
+
| Validation type | What it catches |
|
|
118
|
+
| ---------------------- | ----------------------------------------------------------------------------- |
|
|
119
|
+
| **Completeness check** | Missing entities, relationships, or rules for known scenarios |
|
|
120
|
+
| **Consistency check** | Contradictory rules or overlapping categories |
|
|
121
|
+
| **Relevance check** | Knowledge that exists in the model but serves no real query or decision |
|
|
122
|
+
| **Currency check** | Knowledge that was true when captured but has since changed |
|
|
123
|
+
| **Expert walkthrough** | Expert reviews the model against real scenarios; catches implicit assumptions |
|
|
124
|
+
|
|
125
|
+
Rules:
|
|
126
|
+
|
|
127
|
+
- Validate against _real scenarios_, not abstract correctness. The walkthrough catches what the schema-checker can't.
|
|
128
|
+
- Schedule periodic currency checks — domain knowledge drifts faster than code.
|
|
129
|
+
- Every piece of knowledge in the base should answer a question someone actually asks. Knowledge nobody queries is dead weight that pulls retrieval signal-to-noise down.
|
|
130
|
+
|
|
131
|
+
## 5. Knowledge Lifecycle
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
Create → Validate → Publish → Use → Monitor → Update → (Retire)
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
| Phase | Key activity | Failure mode |
|
|
138
|
+
| ------------ | ----------------------------------------------- | ---------------------------------------------------------------- |
|
|
139
|
+
| **Create** | Acquire from source; formalise | Incomplete capture; missing tacit knowledge |
|
|
140
|
+
| **Validate** | Expert review; scenario testing | Rubber-stamp approval; untested edge cases |
|
|
141
|
+
| **Publish** | Make available to consumers (agents, APIs, UIs) | Poor discoverability; stale indexes |
|
|
142
|
+
| **Use** | Runtime queries; decision support | Over-reliance on outdated knowledge |
|
|
143
|
+
| **Monitor** | Track usage, accuracy, relevance | No feedback loop; zombie knowledge |
|
|
144
|
+
| **Update** | Revise based on new information or feedback | Partial updates; inconsistencies between updated and stale parts |
|
|
145
|
+
| **Retire** | Remove or archive obsolete knowledge | Hoarding; false confidence in expired material |
|
|
146
|
+
|
|
147
|
+
## 6. Application to AI-Agent Systems
|
|
148
|
+
|
|
149
|
+
| Agent component | Knowledge-modeling concern |
|
|
150
|
+
| ------------------- | ------------------------------------------------------------------------ |
|
|
151
|
+
| Skill library | Each skill is a knowledge artefact; the skill index is a knowledge graph |
|
|
152
|
+
| Context engineering | Selecting which knowledge to load into a finite context window |
|
|
153
|
+
| Routing / dispatch | Production rules mapping inputs to skill / agent selection |
|
|
154
|
+
| Memory system | Long-term persistence with freshness management |
|
|
155
|
+
| Evaluation | Validating that knowledge actually improves agent output |
|
|
156
|
+
|
|
157
|
+
The mappings:
|
|
158
|
+
|
|
159
|
+
- **Skills are frames.** Structured slots (triggers, keywords, body, references) with defaults and inheritance.
|
|
160
|
+
- **The routing system is a production-rule engine.** IF keyword matches THEN load skill.
|
|
161
|
+
- **The memory system is a knowledge graph with temporal properties.** Freshness, drift, decay all live on the edges.
|
|
162
|
+
- **Context engineering is knowledge selection under token-budget constraints.** A subset-selection problem with quality and cost both as objectives.
|
|
163
|
+
|
|
164
|
+
### 6.1 GraphRAG — grounding retrieval in a knowledge graph
|
|
165
|
+
|
|
166
|
+
Plain Retrieval-Augmented Generation retrieves unordered text chunks by vector similarity. This fails on multi-entity questions, on disambiguation, and on questions whose answer depends on _how_ entities relate — vector similarity finds "topically close" passages, not "structurally connected" facts. GraphRAG grounds retrieval in a knowledge graph, so the model receives typed entities and labelled edges instead of a bag of passages.
|
|
167
|
+
|
|
168
|
+
| Pattern | What it does | When it beats plain RAG |
|
|
169
|
+
| ------------------------------ | ----------------------------------------------------------------------------- | --------------------------------------------------------------- |
|
|
170
|
+
| **Entity-anchored retrieval** | Resolve prompt mentions to graph nodes, then expand N hops | Multi-entity questions; disambiguation across namespaces |
|
|
171
|
+
| **Relationship-aware context** | Include labelled edges alongside retrieved nodes | Questions about _how_ two things relate, not just what they are |
|
|
172
|
+
| **Path-based reasoning** | Return the concrete path between two nodes as context | "Why is X connected to Y?" questions |
|
|
173
|
+
| **Subgraph summarization** | Summarise a relevant subgraph into natural language before passing to the LLM | Reduces hallucination on multi-hop and aggregation questions |
|
|
174
|
+
| **Hybrid (vector + graph)** | Vector retrieval seeds entry points; graph expansion adds structure | Corpora where neither pure approach wins alone |
|
|
175
|
+
|
|
176
|
+
Rules:
|
|
177
|
+
|
|
178
|
+
- GraphRAG only wins when the underlying graph is _well modelled_. A sparse, mislabelled, or synonym-inconsistent graph retrieves _worse_ than plain vector search — the structure becomes noise.
|
|
179
|
+
- Reserve GraphRAG for questions whose answer depends on relationships between entities. Single-entity attribute questions ("what is X's status?") do not benefit.
|
|
180
|
+
- Return the source nodes and edges alongside the LLM's answer so the user can verify the retrieval path. This is GraphRAG's explainability advantage over plain RAG; surface it.
|
|
181
|
+
- At minimum, enforce SKOS-grade vocabulary discipline (consistent labels, broader / narrower) before building a GraphRAG pipeline.
|
|
182
|
+
- GraphRAG does _not_ replace a good knowledge graph — it is a retrieval pattern _on top of_ one. Invest in the graph first; the retrieval pattern is downstream.
|
|
183
|
+
|
|
184
|
+
## 7. Representation Trade-offs
|
|
185
|
+
|
|
186
|
+
| Dimension | More expressive | More tractable |
|
|
187
|
+
| --------------------- | ------------------------------- | ------------------------------ |
|
|
188
|
+
| **Reasoning** | OWL-DL, full first-order logic | Property graphs, key-value |
|
|
189
|
+
| **Querying** | SPARQL, Cypher | Simple lookups, keyword search |
|
|
190
|
+
| **Maintenance** | Formal schemas with constraints | Plain text with conventions |
|
|
191
|
+
| **Human readability** | Concept maps, Markdown | JSON-LD, RDF triples |
|
|
192
|
+
|
|
193
|
+
Rules:
|
|
194
|
+
|
|
195
|
+
- For most product teams the right answer is "Markdown with conventions" (what a SKILL.md is) rather than formal ontology.
|
|
196
|
+
- Escalate formality only when automated reasoning or multi-system interop is genuinely required.
|
|
197
|
+
- The _best_ representation is the one that domain experts can validate and developers can query. If either side struggles, the choice is wrong even when the formalism is technically correct.
|
|
198
|
+
|
|
199
|
+
## Verification
|
|
200
|
+
|
|
201
|
+
- [ ] Each knowledge artefact has an explicit source and a validation status
|
|
202
|
+
- [ ] The chosen representation paradigm matches the _primary query pattern_ — not the team's familiarity with one paradigm
|
|
203
|
+
- [ ] Tacit knowledge was _elicited_ (interview / observation) — not just documented knowledge transcribed
|
|
204
|
+
- [ ] A lifecycle / freshness mechanism exists for ongoing knowledge maintenance; periodic currency checks are scheduled, not aspirational
|
|
205
|
+
- [ ] Knowledge consumers (agents, UIs, APIs) can discover and access the relevant knowledge through structured indexes — discovery is not "remember the file path"
|
|
206
|
+
- [ ] Validation is run against _real_ scenarios, not abstract completeness — including failure / negative scenarios
|
|
207
|
+
- [ ] If GraphRAG is in use, the underlying graph passes vocabulary discipline (consistent labels, broader / narrower) and the retrieval path is surfaced alongside the LLM's answer
|
|
208
|
+
|
|
209
|
+
## Do NOT Use When
|
|
210
|
+
|
|
211
|
+
| Use instead | When |
|
|
212
|
+
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
213
|
+
| `conceptual-modeling` | Performing the _human-readable_ domain analysis (entities, attributes, relationships, cardinality) — that's the layer below this skill |
|
|
214
|
+
| A logical / physical modeling skill | Designing database tables, foreign keys, normalization — data structure, not meaning structure |
|
|
215
|
+
| A taxonomy skill | Building a pure IS-A classification hierarchy with no rules or graph behaviour |
|
|
216
|
+
| An ontology skill | Defining formal axioms with OWL / RDFS, class restrictions, automated-reasoning constraints — the layer above this skill |
|
|
217
|
+
| A semantic-relations skill | Picking exact edge labels — hypernymy, meronymy, synonymy, polysemy, troponymy |
|
|
218
|
+
| `skill-infrastructure` | Maintaining the live skill library (census, overlap detection, drift checks) — knowledge-modeling is the theory, skill-infrastructure is the operations |
|
|
219
|
+
| `context-graph` | Designing the multi-graph topology of a workspace — that is one application of this skill, not the theory itself |
|
|
220
|
+
|
|
221
|
+
## Key Sources
|
|
222
|
+
|
|
223
|
+
- Newell, A. (1982). "The Knowledge Level." *Artificial Intelligence*, 18(1), 87-127. The foundational paper distinguishing the *knowledge level* (rationality, goals, body of knowledge) from the *symbol level* (representation implementation). Establishes that representation choices are about which abstraction layer is appropriate, not which formalism is most powerful.
|
|
224
|
+
- Brachman, R. J., & Levesque, H. J. (2004). *Knowledge Representation and Reasoning*. Morgan Kaufmann. The canonical textbook on KR&R: the expressiveness-tractability trade-off, description logics, frames, production systems, default reasoning. The reference for paradigm choice.
|
|
225
|
+
- Sowa, J. F. (2000). *Knowledge Representation: Logical, Philosophical, and Computational Foundations*. Brooks/Cole. Encyclopedic synthesis of KR traditions from Aristotle through conceptual graphs. The single best reference for how paradigms relate to each other.
|
|
226
|
+
- Minsky, M. (1974). "A Framework for Representing Knowledge." MIT-AI Memo 306. The foundational paper introducing frames: structured records with slots, defaults, and inheritance. Frames remain the right paradigm for object-like domain entities with stable structure.
|
|
227
|
+
- Gruber, T. R. (1993). "A Translation Approach to Portable Ontology Specifications." *Knowledge Acquisition*, 5(2), 199-220. The definition of ontology as "a specification of a conceptualization" and the formal grounding for interoperable knowledge artefacts.
|
|
228
|
+
- Quillian, M. R. (1968). "Semantic Memory." In M. Minsky (Ed.), *Semantic Information Processing*. MIT Press. The original semantic-network paper; the cognitive-science origin of labelled concept graphs.
|
|
229
|
+
- Novak, J. D., & Cañas, A. J. (2008). *The Theory Underlying Concept Maps and How to Construct Them*. IHMC. The methodology for concept maps as a knowledge-elicitation and human-communication tool.
|
|
230
|
+
- Edge, D., Trinh, H., Cheng, N., et al. (2024). "From Local to Global: A Graph RAG Approach to Query-Focused Summarization." Microsoft Research. The reference statement of GraphRAG as a retrieval pattern over modelled knowledge graphs.
|
|
231
|
+
- W3C. [SKOS Reference](https://www.w3.org/TR/skos-reference/). The Simple Knowledge Organization System specification; the minimal vocabulary discipline (broader/narrower/related, prefLabel/altLabel) that knowledge-graph quality depends on.
|
|
232
|
+
- Studer, R., Benjamins, V. R., & Fensel, D. (1998). "Knowledge Engineering: Principles and Methods." *Data & Knowledge Engineering*, 25(1-2), 161-197. Survey of the acquisition pipeline (elicitation → modeling → validation) and the methodological tradition behind it.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: layout-composition
|
|
3
|
+
description: "Use when deciding responsive page or screen structure: section order, scan pattern, grid/flex composition, breakpoints, viewport hierarchy, responsive media, and density. Do NOT use for user-goal decomposition (use `task-analysis`), navigation taxonomy (use `information-architecture`), visual polish (use `visual-design-foundations`), or component/token contracts (use `design-system-architecture`)."
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: "Portable layout and responsive-composition guidance for web apps, dashboards, documentation sites, admin tools, and mobile-first product surfaces."
|
|
6
|
+
allowed-tools: Read Grep
|
|
7
|
+
metadata:
|
|
8
|
+
metadata: "{\"schema_version\":6,\"version\":\"1.0.0\",\"type\":\"capability\",\"category\":\"design\",\"domain\":\"design/layout\",\"scope\":\"portable\",\"owner\":\"skill-graph-maintainer\",\"freshness\":\"2026-05-11\",\"drift_check\":\"{\\\\\\\"last_verified\\\\\\\":\\\\\\\"2026-05-11\\\\\\\"}\",\"eval_artifacts\":\"present\",\"eval_state\":\"unverified\",\"routing_eval\":\"absent\",\"stability\":\"experimental\",\"keywords\":\"[\\\\\\\"layout-composition\\\\\\\",\\\\\\\"responsive screen composition\\\\\\\",\\\\\\\"viewport hierarchy\\\\\\\",\\\\\\\"breakpoint selection\\\\\\\",\\\\\\\"grid flex composition\\\\\\\",\\\\\\\"stable dimensions\\\\\\\",\\\\\\\"scan pattern\\\\\\\",\\\\\\\"responsive media\\\\\\\",\\\\\\\"density planning\\\\\\\",\\\\\\\"whitespace balance\\\\\\\",\\\\\\\"negative space design\\\\\\\"]\",\"examples\":\"[\\\\\\\"turn this route hierarchy into a responsive section order\\\\\\\",\\\\\\\"decide whether this dashboard should use tabs, columns, or stacked sections on mobile\\\\\\\",\\\\\\\"the page works on desktop but the mobile scan path is broken\\\\\\\",\\\\\\\"choose grid tracks, breakpoints, and responsive media behavior for this screen\\\\\\\"]\",\"anti_examples\":\"[\\\\\\\"what is the user's top task for this route?\\\\\\\",\\\\\\\"design the global navigation and sitemap\\\\\\\",\\\\\\\"pick the color palette, type scale, and visual mood\\\\\\\",\\\\\\\"define component variants and semantic tokens\\\\\\\"]\",\"relations\":\"{\\\\\\\"boundary\\\\\\\":[{\\\\\\\"skill\\\\\\\":\\\\\\\"task-analysis\\\\\\\",\\\\\\\"reason\\\\\\\":\\\\\\\"task-analysis defines the user goal and first-viewport hierarchy contract; layout-composition turns that contract into responsive structure\\\\\\\"},{\\\\\\\"skill\\\\\\\":\\\\\\\"information-architecture\\\\\\\",\\\\\\\"reason\\\\\\\":\\\\\\\"information-architecture owns navigation and page grouping; layout-composition owns the structure inside a page or screen\\\\\\\"},{\\\\\\\"skill\\\\\\\":\\\\\\\"visual-design-foundations\\\\\\\",\\\\\\\"reason\\\\\\\":\\\\\\\"visual-design-foundations owns visual craft choices; layout-composition owns spatial structure and responsive behavior\\\\\\\"},{\\\\\\\"skill\\\\\\\":\\\\\\\"design-system-architecture\\\\\\\",\\\\\\\"reason\\\\\\\":\\\\\\\"design-system-architecture owns reusable component and token contracts; layout-composition uses those contracts on a concrete surface\\\\\\\"}],\\\\\\\"related\\\\\\\":[\\\\\\\"task-analysis\\\\\\\",\\\\\\\"information-architecture\\\\\\\",\\\\\\\"design-system-architecture\\\\\\\",\\\\\\\"a11y\\\\\\\",\\\\\\\"performance-engineering\\\\\\\"],\\\\\\\"verify_with\\\\\\\":[\\\\\\\"task-analysis\\\\\\\",\\\\\\\"a11y\\\\\\\"]}\",\"portability\":\"{\\\\\\\"readiness\\\\\\\":\\\\\\\"scripted\\\\\\\",\\\\\\\"targets\\\\\\\":[\\\\\\\"skill-md\\\\\\\"]}\",\"lifecycle\":\"{\\\\\\\"stale_after_days\\\\\\\":365,\\\\\\\"review_cadence\\\\\\\":\\\\\\\"quarterly\\\\\\\"}\",\"skill_graph_source_repo\":\"https://github.com/jacob-balslev/skill-graph\",\"skill_graph_protocol\":\"Skill Metadata Protocol v5\",\"skill_graph_project\":\"Skill Graph\",\"skill_graph_canonical_skill\":\"skills/layout-composition/SKILL.md\"}"
|
|
9
|
+
skill_graph_source_repo: "https://github.com/jacob-balslev/skill-graph"
|
|
10
|
+
skill_graph_protocol: Skill Metadata Protocol v4
|
|
11
|
+
skill_graph_project: Skill Graph
|
|
12
|
+
skill_graph_canonical_skill: skills/layout-composition/SKILL.md
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Layout Composition
|
|
16
|
+
|
|
17
|
+
## Coverage
|
|
18
|
+
|
|
19
|
+
Compose page and screen structure so the hierarchy survives real viewports. Covers section order, scan pattern, grid and flex choices, responsive breakpoints, mobile-first stacking, stable dimensions, responsive media, density, empty/loaded-state footprint, and handoff from task hierarchy to implementation-ready layout.
|
|
20
|
+
|
|
21
|
+
## Philosophy
|
|
22
|
+
|
|
23
|
+
Layout is the visible contract between task priority and available space. A surface that has the right content can still fail if primary information collapses below the fold, controls jump between states, or a desktop-only composition is squeezed into a narrow viewport.
|
|
24
|
+
|
|
25
|
+
Start from hierarchy, then choose structure. Do not design to named devices; design to the point where the content starts to break.
|
|
26
|
+
|
|
27
|
+
## Method
|
|
28
|
+
|
|
29
|
+
1. Read the primary, secondary, and supporting hierarchy from `task-analysis` or the route contract.
|
|
30
|
+
2. Identify fixed-format elements: tables, cards, charts, boards, media, toolbars, and forms.
|
|
31
|
+
3. Choose the scan pattern: single column, master-detail, sidebar/content, table-first, card grid, or step flow.
|
|
32
|
+
4. Define responsive breakpoints where content breaks, not where devices are marketed.
|
|
33
|
+
5. Set stable dimensions for elements that must not resize on hover, loading, or label changes.
|
|
34
|
+
6. Decide what collapses, stacks, pins, hides, or moves at each breakpoint.
|
|
35
|
+
7. Check mobile, tablet, desktop, low-data, loading, empty, and error states.
|
|
36
|
+
|
|
37
|
+
## Evals
|
|
38
|
+
|
|
39
|
+
This skill ships a comprehension-eval artifact at [`examples/evals/layout-composition.json`](https://github.com/jacob-balslev/skill-graph/blob/main/examples/evals/layout-composition.json). The checklist below is the authoring gate for layout decisions; the eval file is the grader surface.
|
|
40
|
+
|
|
41
|
+
## Verification
|
|
42
|
+
|
|
43
|
+
- [ ] The primary task remains visible before supporting detail
|
|
44
|
+
- [ ] Breakpoints are content-driven rather than device-name-driven
|
|
45
|
+
- [ ] Fixed-format elements have stable dimensions or aspect ratios
|
|
46
|
+
- [ ] Mobile and narrow layouts preserve action order and recovery paths
|
|
47
|
+
- [ ] Loading, empty, and error states do not shift the core layout unpredictably
|
|
48
|
+
- [ ] Responsive media cannot overflow its container
|
|
49
|
+
- [ ] Accessibility landmarks, heading order, and focus order still match the visual order
|
|
50
|
+
|
|
51
|
+
## Do NOT Use When
|
|
52
|
+
|
|
53
|
+
| Use instead | When |
|
|
54
|
+
|---|---|
|
|
55
|
+
| `task-analysis` | The user goal, top task, or first-viewport hierarchy is not yet known. |
|
|
56
|
+
| `information-architecture` | The problem is global navigation, sitemap shape, or page grouping. |
|
|
57
|
+
| `visual-design-foundations` | The task is color, typography, spacing taste, mood, or polish. |
|
|
58
|
+
| `design-system-architecture` | The task is token taxonomy, component API, theming, or system governance. |
|
|
59
|
+
| `a11y` | The primary question is WCAG, ARIA, keyboard behavior, labels, or assistive-tech output. |
|