[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H3R7386N1HE0CDP7WGXVDD":3,"skill-same:01M6H3R7386N1HE0CDP7WGXVDD":83},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":14,"repositoryHtmlUrl":65,"repositoryHomepageUrl":6,"ownerHtmlUrl":66,"ownerBlogUrl":6,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M6H3R7386N1HE0CDP7WGXVDD","graph-memory",null,"Memory policy for graph-backed knowledge in Linxmd. Defines what should be stored, validated, and invalidated in graph-memory; command interaction details are defined in skill graph.","Knaackee\u002Flinxmd","Knaackee","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F880759?v=4","01M6H3R5AEP2Y0R5V6N688VRQK","Denis Knaack","01M6H3R5EHRK4S2WVBZNSGJQGR",0,"MIT","https:\u002F\u002Fgithub.com\u002FKnaackee\u002Flinxmd\u002Fblob\u002Fmain\u002Flib\u002Fskills\u002Fgraph-memory\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"memory","graph","graph memory","for","policy","inspect","yes","interaction","learnings","document","skill graph","only","context","write","command","decisions","continue","knowledge","provenance","core","2026-11-10 10:12:30",false,"---\nname: graph-memory\ntype: skill\nversion: 3.0.0\ndescription: Memory policy for graph-backed knowledge in Linxmd. Defines what should be stored, validated, and invalidated in graph-memory; command interaction details are defined in skill graph.\nlevel: core\ntags: [memory, graph, continue, context, temporal, recall]\nquickActions:\n  - label: Capture new knowledge from referenced file\n    icon: \"?\"\n    prompt: Inspect only the referenced document and determine whether it contains new durable knowledge. If yes, write only validated facts\u002Fdecisions\u002Flearnings to graph-memory with confidence and provenance. If no, report that no new knowledge should be stored.\n    trigger:\n      fileMatch: [\"**\u002F*.md\", \"**\u002F*.mdx\", \"**\u002F*.txt\", \"**\u002F*.json\", \"**\u002F*.yml\", \"**\u002F*.yaml\"]\n---\n\n# Graph Memory\n\nUse this skill when agents need compact, relational, cross-session memory with temporal history.\n\nThis skill defines memory semantics. Command mechanics are defined in skill `graph`.\n\n## When To Apply\n\nApply this skill by default for all agent sessions that need durable, structured memory.\n\nUse it when:\n- You need fast startup context with low token cost.\n- You need dependency chains, decision impact, or relationship queries.\n- You need to preserve historical state without deleting outdated facts.\n- You need to write structured facts with no rich markdown body.\n\nDo not use graph-memory as a replacement for markdown memory. Use both:\n- `project-memory`: full text and human-readable documents.\n- `graph-memory`: entities, relations, temporal validity, and compact recall.\n\n## Rules\n\n1. Never delete graph nodes. Invalidate temporally instead.\n2. Write only observed or user-confirmed facts with confidence >= 0.7.\n3. Keep session context compact and intent-focused.\n4. Always include scope\u002Fsource provenance for persisted knowledge.\n5. Use graph-memory for structured durable knowledge, not rich narrative text.\n6. If graph persistence fails, continue delivery and record intended memory action.\n7. Do not store full markdown document bodies in graph nodes.\n8. Use stable ids (`project_id`, `doc_id`) as identity; paths are mutable metadata.\n\n## Document-Centric Memory Model\n\nUse graph-memory as an index and relationship layer for project documents.\n\nIdentity\u002Fpath metadata is graph-memory canonical metadata and should round-trip each run:\n\n1. Read from graph-memory at init.\n2. Mirror into markdown headers for human\u002Faudit visibility.\n3. Write back via delta at post phase.\n\nRecommended node model:\n\n- `Project`:\n  - `project_id` (stable)\n  - `project_path_current` (mutable)\n  - `project_path_aliases` (optional historical paths)\n- `Document`:\n  - `doc_id` (stable)\n  - `project_id`\n  - `doc_rel_path`\n  - `content_hash`\n  - `summary_short` (5-10 lines, optional)\n- `Claim` \u002F `Decision` \u002F `Learning`:\n  - linked to `Document` via derivation edges\n\nRecommended edges:\n\n- `(:Document)-[:BELONGS_TO]->(:Project)`\n- `(:Claim)-[:DERIVED_FROM]->(:Document)`\n- `(:Decision)-[:RELATES_TO]->(:Claim|:Document)`\n\n### Path Rename Handling\n\nWhen a project folder is renamed:\n\n1. Keep `project_id` unchanged.\n2. Update `project_path_current`.\n3. Append old path to `project_path_aliases`.\n4. Do not recreate document identity if `doc_id` and `content_hash` still match.\n\n## Memory Lifecycle\n\n### Step 1: Gather compact context\n\nEvery agent starts with compact graph context via skill `graph`.\n\nExpected context includes:\n- active work items and dependency chains\n- recent decisions\n- relevant learnings\n- relevant preferences and constraints\n\n### Step 2: Retrieve prior knowledge before re-deciding\n\nBefore creating new decisions, check whether valid decisions\u002Flearnings already exist.\n\n### Step 3: Persist only durable knowledge\n\nPersist facts, decisions, learnings, and relations that remain useful beyond the current message.\nPersist document metadata (`doc_id`, `doc_rel_path`, `content_hash`) and concise summaries, not full document bodies.\n\n### Step 4: Invalidate outdated knowledge\n\nWhen knowledge is superseded, invalidate it while preserving history.\n\n### Step 5: Session-end capture\n\nAfter markdown updates, persist the session's durable deltas and include provenance.\n\n## Fallback Behavior\n\nIf graph-memory persistence fails:\n- Continue the workflow and do not block the task.\n- Record the intended write\u002Fread action in trace notes.\n- Retry once later in the same session if needed.\n\n## Patterns\n\n### Pattern: Startup context first\n\n- Load compact graph context before reading multiple markdown files.\n- Keep initial context small and intent-focused.\n\n### Pattern: Recall before re-deciding\n\n- Query prior decisions\u002Flearnings before creating new ADRs or changing architecture.\n- Reuse prior decisions when still valid.\n\n### Pattern: Work-item dependency expansion\n\nUse Cypher for dependency chains:\n\n```cypher\nMATCH (n {id:$entityId})-[:BLOCKED_BY|DEPENDS_ON|RELATES_TO*1..3]->(dep)\nRETURN labels(dep)[0] AS type, dep.id, dep.title\n```\n\n### Pattern: Historical decision checks\n\n```cypher\nMATCH (d:Decision)\nWHERE d.valid_until IS NOT NULL AND d.tags CONTAINS \"auth\"\nRETURN d.id, d.title, d.valid_from, d.valid_until\nORDER BY d.valid_until DESC\n```\n\n### Pattern: User preference lookup\n\n```cypher\nMATCH (:Person {id:$personId})-[r:PREFERS]->(x)\nRETURN labels(x)[0] AS targetType, x.name, r.strength\nORDER BY r.strength DESC\n```\n\n### Pattern: Scope-based recall\n\n```cypher\nMATCH (n)\nWHERE n.scope_id = $scopeId AND n.valid_until IS NULL\nRETURN labels(n)[0] AS type, n.id\nLIMIT 50\n```\n\n## Anti-Patterns\n\n- Replacing markdown ADR\u002Fspec content with graph-only nodes.\n- Persisting transient chat noise as durable graph facts.\n- Persisting facts without provenance or confidence.\n- Writing speculative facts without evidence.\n- Deleting nodes instead of temporal invalidation.\n- Blocking workflow execution when graph persistence fails.\n\n## Exit Criteria\n\nThis skill is applied correctly when:\n- Agents start with graph context or fallback safely.\n- Relevant recall\u002Fquery calls are used during planning and implementation.\n- Structured facts and relations are written with confidence discipline.\n- Outdated facts are invalidated, not deleted.\n- Session-end memory deltas are captured with provenance.\n- Team can reconstruct why decisions were made across sessions.\n","# Graph Memory\n\nUse this skill when agents need compact, relational, cross-session memory with temporal history.\n\nThis skill defines memory semantics. Command mechanics are defined in skill `graph`.\n\n## When To Apply\n\nApply this skill by default for all agent sessions that need durable, structured memory.\n\nUse it when:\n- You need fast startup context with low token cost.\n- You need dependency chains, decision impact, or relationship queries.\n- You need to preserve historical state without deleting outdated facts.\n- You need to write structured facts with no rich markdown body.\n\nDo not use graph-memory as a replacement for markdown memory. Use both:\n- `project-memory`: full text and human-readable documents.\n- `graph-memory`: entities, relations, temporal validity, and compact recall.\n\n## Rules\n\n1. Never delete graph nodes. Invalidate temporally instead.\n2. Write only observed or user-confirmed facts with confidence >= 0.7.\n3. Keep session context compact and intent-focused.\n4. Always include scope\u002Fsource provenance for persisted knowledge.\n5. Use graph-memory for structured durable knowledge, not rich narrative text.\n6. If graph persistence fails, continue delivery and record intended memory action.\n7. Do not store full markdown document bodies in graph nodes.\n8. Use stable ids (`project_id`, `doc_id`) as identity; paths are mutable metadata.\n\n## Document-Centric Memory Model\n\nUse graph-memory as an index and relationship layer for project documents.\n\nIdentity\u002Fpath metadata is graph-memory canonical metadata and should round-trip each run:\n\n1. Read from graph-memory at init.\n2. Mirror into markdown headers for human\u002Faudit visibility.\n3. Write back via delta at post phase.\n\nRecommended node model:\n\n- `Project`:\n  - `project_id` (stable)\n  - `project_path_current` (mutable)\n  - `project_path_aliases` (optional historical paths)\n- `Document`:\n  - `doc_id` (stable)\n  - `project_id`\n  - `doc_rel_path`\n  - `content_hash`\n  - `summary_short` (5-10 lines, optional)\n- `Claim` \u002F `Decision` \u002F `Learning`:\n  - linked to `Document` via derivation edges\n\nRecommended edges:\n\n- `(:Document)-[:BELONGS_TO]->(:Project)`\n- `(:Claim)-[:DERIVED_FROM]->(:Document)`\n- `(:Decision)-[:RELATES_TO]->(:Claim|:Document)`\n\n### Path Rename Handling\n\nWhen a project folder is renamed:\n\n1. Keep `project_id` unchanged.\n2. Update `project_path_current`.\n3. Append old path to `project_path_aliases`.\n4. Do not recreate document identity if `doc_id` and `content_hash` still match.\n\n## Memory Lifecycle\n\n### Step 1: Gather compact context\n\nEvery agent starts with compact graph context via skill `graph`.\n\nExpected context includes:\n- active work items and dependency chains\n- recent decisions\n- relevant learnings\n- relevant preferences and constraints\n\n### Step 2: Retrieve prior knowledge before re-deciding\n\nBefore creating new decisions, check whether valid decisions\u002Flearnings already exist.\n\n### Step 3: Persist only durable knowledge\n\nPersist facts, decisions, learnings, and relations that remain useful beyond the current message.\nPersist document metadata (`doc_id`, `doc_rel_path`, `content_hash`) and concise summaries, not full document bodies.\n\n### Step 4: Invalidate outdated knowledge\n\nWhen knowledge is superseded, invalidate it while preserving history.\n\n### Step 5: Session-end capture\n\nAfter markdown updates, persist the session's durable deltas and include provenance.\n\n## Fallback Behavior\n\nIf graph-memory persistence fails:\n- Continue the workflow and do not block the task.\n- Record the intended write\u002Fread action in trace notes.\n- Retry once later in the same session if needed.\n\n## Patterns\n\n### Pattern: Startup context first\n\n- Load compact graph context before reading multiple markdown files.\n- Keep initial context small and intent-focused.\n\n### Pattern: Recall before re-deciding\n\n- Query prior decisions\u002Flearnings before creating new ADRs or changing architecture.\n- Reuse prior decisions when still valid.\n\n### Pattern: Work-item dependency expansion\n\nUse Cypher for dependency chains:\n\n```cypher\nMATCH (n {id:$entityId})-[:BLOCKED_BY|DEPENDS_ON|RELATES_TO*1..3]->(dep)\nRETURN labels(dep)[0] AS type, dep.id, dep.title\n```\n\n### Pattern: Historical decision checks\n\n```cypher\nMATCH (d:Decision)\nWHERE d.valid_until IS NOT NULL AND d.tags CONTAINS \"auth\"\nRETURN d.id, d.title, d.valid_from, d.valid_until\nORDER BY d.valid_until DESC\n```\n\n### Pattern: User preference lookup\n\n```cypher\nMATCH (:Person {id:$personId})-[r:PREFERS]->(x)\nRETURN labels(x)[0] AS targetType, x.name, r.strength\nORDER BY r.strength DESC\n```\n\n### Pattern: Scope-based recall\n\n```cypher\nMATCH (n)\nWHERE n.scope_id = $scopeId AND n.valid_until IS NULL\nRETURN labels(n)[0] AS type, n.id\nLIMIT 50\n```\n\n## Anti-Patterns\n\n- Replacing markdown ADR\u002Fspec content with graph-only nodes.\n- Persisting transient chat noise as durable graph facts.\n- Persisting facts without provenance or confidence.\n- Writing speculative facts without evidence.\n- Deleting nodes instead of temporal invalidation.\n- Blocking workflow execution when graph persistence fails.\n\n## Exit Criteria\n\nThis skill is applied correctly when:\n- Agents start with graph context or fallback safely.\n- Relevant recall\u002Fquery calls are used during planning and implementation.\n- Structured facts and relations are written with confidence discipline.\n- Outdated facts are invalidated, not deleted.\n- Session-end memory deltas are captured with provenance.\n- Team can reconstruct why decisions were made across sessions.\n",{"name":5,"tags":44,"type":47,"level":38,"version":48,"description":7,"quickActions":49},[19,20,35,31,45,46],"temporal","recall","skill","3.0.0",[50],{"icon":51,"label":52,"prompt":53,"trigger":54},"?","Capture new knowledge from referenced file","Inspect only the referenced document and determine whether it contains new durable knowledge. If yes, write only validated facts\u002Fdecisions\u002Flearnings to graph-memory with confidence and provenance. If no, report that no new knowledge should be stored.",{"fileMatch":55},[56,57,58,59,60,61],"**\u002F*.md","**\u002F*.mdx","**\u002F*.txt","**\u002F*.json","**\u002F*.yml","**\u002F*.yaml","main","d831a3ac078bfd6322e87ba10bd860a52be2001f","lib\u002Fskills\u002Fgraph-memory","https:\u002F\u002Fgithub.com\u002FKnaackee\u002Flinxmd","https:\u002F\u002Fgithub.com\u002FKnaackee","AI Engineer (.NET \u002F Agentic Systems)","2026-04-02 18:48:13",{"source":8,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add Knaackee\u002Flinxmd --skill graph-memory",{"tool":75,"command":76},"bunx","bunx skills add Knaackee\u002Flinxmd --skill graph-memory",{"tool":78,"command":79},"pnpm","pnpm dlx skills add Knaackee\u002Flinxmd --skill graph-memory","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKnaackee\u002Flinxmd\u002Fblob\u002Fmain\u002Flib\u002Fskills\u002Fgraph-memory\u002FSKILL.md",true,[],[84,95,105,116,123,132],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":39},"01M6H3RYYE827DXDWMAB0AM293","generated-skill","Generated from test template.","https:\u002F\u002Fgithub.com\u002FKnaackee\u002Flinxmd\u002Fblob\u002Fmain\u002Ftests\u002FLinxmd.Tests\u002FTestLib\u002Ftemplates\u002Fskill-core\u002Ffiles\u002Fgenerated\u002Fskill-core\u002FSKILL.md",[],[91,92,93,38,94],"generated","generated skill","test","template",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":39},"01M6H3RX49XRH00S1P6W31R8K8","trace-writing","Stable test trace writing skill.","https:\u002F\u002Fgithub.com\u002FKnaackee\u002Flinxmd\u002Fblob\u002Fmain\u002Ftests\u002FLinxmd.Tests\u002FTestLib\u002Fskills\u002Ftrace-writing\u002FSKILL.md",[],[102,103,104,93],"trace","writing","trace writing",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":39},"01M6H3RVK42BVWE7BWTAV3Y3RM","task-management","Stable test task management skill.","https:\u002F\u002Fgithub.com\u002FKnaackee\u002Flinxmd\u002Fblob\u002Fmain\u002Ftests\u002FLinxmd.Tests\u002FTestLib\u002Fskills\u002Ftask-management\u002FSKILL.md",[],[112,113,114,115,93],"task management","management","task","tasks",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":39},"01M6H3RT67ZFBQP14TZ1ECYEQ6","research","Stable test research skill.","https:\u002F\u002Fgithub.com\u002FKnaackee\u002Flinxmd\u002Fblob\u002Fmain\u002Ftests\u002FLinxmd.Tests\u002FTestLib\u002Fskills\u002Fresearch\u002FSKILL.md",[],[118,93],{"skillNo":124,"name":20,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":39},"01M6H3RRH2WBTMZ6QCAKGYXEEC","Stable test graph skill.","https:\u002F\u002Fgithub.com\u002FKnaackee\u002Flinxmd\u002Fblob\u002Fmain\u002Ftests\u002FLinxmd.Tests\u002FTestLib\u002Fskills\u002Fgraph\u002FSKILL.md",[],[20,22,129,130,131,93],"graph skill","query","artifacts",{"skillNo":133,"name":5,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":39},"01M6H3RPNFF8K7ABV4WHP4P4DM","Stable test graph memory skill.","https:\u002F\u002Fgithub.com\u002FKnaackee\u002Flinxmd\u002Fblob\u002Fmain\u002Ftests\u002FLinxmd.Tests\u002FTestLib\u002Fskills\u002Fgraph-memory\u002FSKILL.md",[],[19,21,20,138,139,140,31,93],"load","latest","memory skill"]