[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DJKABHK3EA1T043VMFQGAG":3,"skill-same:01M7DJKABHK3EA1T043VMFQGAG":44},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7DJKABHK3EA1T043VMFQGAG","entity-or-bucket",null,"Decide whether a fact lives in the graph, as triples on an entity in ENTITY_STATES, or in a bucket of its own. Use when adding durable state, proposing a new bucket, or when other code must read a fact.","C360Studio\u002Fsemengine","C360Studio","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F107274645?v=4","01M6NQ809JZG513TZ7FJX8SAKQ","Complete 360 Studio","01M7DJK5W1EEP4D1Z9F5WVJG1T",0,"MIT","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemengine\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fentity-or-bucket\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: entity-or-bucket\ndescription: >-\n  Decide whether a fact lives in the graph, as triples on an entity in ENTITY_STATES, or in a bucket of its own.\n  Use when adding durable state, proposing a new bucket, or when other code must read a fact.\n---\n\n# Entity or bucket\n\nStart from the fact the user names. \"The graph\" here is `ENTITY_STATES`, the NATS key-value bucket in which\ngraph-ingest keeps one current record per entity: its triples, each a subject, a predicate and an object.\n\n## The default\n\nA fact lives in `ENTITY_STATES` as triples about an identified entity. A bucket of its own is the exception, and it\nnames one of the grounds below. The rubric is SemStreams ADR-049, generalized by its ADR-055; neither record is\ncarried into `docs\u002Fadr\u002F`, so this skill is its home here. A new subsystem that wants its own bucket writes an ADR that\ndefends the choice on these grounds.\n\n## Own a bucket only when you can name the ground\n\n1. **Compare-and-set over several fields** that one write of an entity's triples cannot express. The bar is high:\n   graph-ingest stores each entity as one entry and changes it with one revision-checked write (`graph-entity-writes`\n   spec, \"The revision is the only fence\").\n2. **Ordering that the graph's replace rule cannot give.** The bar is high: a single-valued predicate is already\n   replaced in timestamp order (`graph-entity-writes` spec, \"Timestamp orders a replace\").\n3. **Retention or layout that differs from the graph**: a longer window, or a history that is the data itself.\n   `STORAGE_REPORT` keeps ten revisions because they are a growth series (`graph\u002Fkvcatalog\u002Fkvcatalog.go`).\n4. **A write rate that would swamp the graph** if mixed into it.\n5. **Bulky content** that does not belong in the graph. Store the content elsewhere and put a triple in the graph\n   that holds its key.\n6. **Bootstrap circularity**: the fact says whether the graph may be read at all, so it cannot live in the graph.\n   That was SemStreams' case for `GRAPH_STATUS`, whose readiness records a consumer could wait on before it read. It\n   is history here: in SemEngine the worker that answers a query says in its reply whether it can answer yet, and no\n   consumer reads a bucket before it asks ([ADR-109](..\u002F..\u002F..\u002Fdocs\u002Fadr\u002F109-ready-after-boot.md), Decision 1).\n\nGround 6 is SemStreams' addition to ADR-049's first five: `GRAPH_STATUS` fits none of them. The bucket stays, as\ninformation for operators and tools; graph-ingest writes its record there (`processor\u002Fgraph-ingest\u002Freadiness.go`).\nNothing in SemEngine waits on it, and no value in it changes what a query returns (ADR-109, Decision 3).\n\n## Keep it in ENTITY_STATES when\n\n1. The data is facts the graph should reason over.\n2. Graph queries or inference should see it. Community records (`COMMUNITY_INDEX`) are derived from entity IDs by\n   `graph\u002Fclustering` (grouping by ID prefix, not detection) and rebuilt from `ENTITY_STATES`; they are not facts.\n3. Several readers need one current state through their own interfaces. That state is not an audit trail:\n   `ENTITY_STATES` keeps one revision per key (`graph\u002Fkvcatalog\u002Fkvcatalog.go`).\n4. You need no compare-and-set finer than graph-ingest's one write per entity.\n\n## The test that does not work\n\nDo not decide by \"does it accumulate, or is it replaced\". Accumulation or replacement follows from the ground that\napplies; it is never the test. The unit is the fact, not the subject: one subject can have facts in the graph and\ncontent in a bucket, reached through a key that a triple holds. That is not a violation.\n\n## Who reacts to the fact\n\nPlacement decides storage; who can react to the fact is a separate question. Do not have the owner watch its own\nbucket and republish the changes it thinks are interesting: the producer then decides what every consumer depends on,\nwhere SemEngine has the consumer declare it\n([ADR-088](..\u002F..\u002F..\u002Fdocs\u002Fadr\u002F088-readiness-is-per-producer-aggregation-is-the-consumers.md)). A fact with no strong\nbucket ground that something must react to belongs in the graph.\n\nHow rules read facts (the pin's rule processor reads only `ENTITY_STATES` and messages) returns with the rule\nprocessor in change 6.\n\n## Before you propose a new bucket\n\n- [ ] Which ground, 1 to 6, does it meet? If none, the fact goes in the graph.\n- [ ] Is the ground about the fact, or about a subject that also has facts in the graph?\n- [ ] Does anything need to react to it? Then how does it reach that reader: as a triple, or as a published message?\n- [ ] Does the framework guarantee its ownership or retention? Then it gets a descriptor in `graph\u002Fkvcatalog`, naming\n      its owner, write policy and retention.\n- [ ] Is the ground not obvious? Write the ADR.\n\n## See also\n\n- `graph\u002Fkvcatalog\u002Fkvcatalog.go`: which buckets the framework owns, and the rule for adding one.\n- [kv-or-stream](..\u002Fkv-or-stream\u002FSKILL.md): a different question, whether something is a fact or a request for work.\n","# Entity or bucket\n\nStart from the fact the user names. \"The graph\" here is `ENTITY_STATES`, the NATS key-value bucket in which\ngraph-ingest keeps one current record per entity: its triples, each a subject, a predicate and an object.\n\n## The default\n\nA fact lives in `ENTITY_STATES` as triples about an identified entity. A bucket of its own is the exception, and it\nnames one of the grounds below. The rubric is SemStreams ADR-049, generalized by its ADR-055; neither record is\ncarried into `docs\u002Fadr\u002F`, so this skill is its home here. A new subsystem that wants its own bucket writes an ADR that\ndefends the choice on these grounds.\n\n## Own a bucket only when you can name the ground\n\n1. **Compare-and-set over several fields** that one write of an entity's triples cannot express. The bar is high:\n   graph-ingest stores each entity as one entry and changes it with one revision-checked write (`graph-entity-writes`\n   spec, \"The revision is the only fence\").\n2. **Ordering that the graph's replace rule cannot give.** The bar is high: a single-valued predicate is already\n   replaced in timestamp order (`graph-entity-writes` spec, \"Timestamp orders a replace\").\n3. **Retention or layout that differs from the graph**: a longer window, or a history that is the data itself.\n   `STORAGE_REPORT` keeps ten revisions because they are a growth series (`graph\u002Fkvcatalog\u002Fkvcatalog.go`).\n4. **A write rate that would swamp the graph** if mixed into it.\n5. **Bulky content** that does not belong in the graph. Store the content elsewhere and put a triple in the graph\n   that holds its key.\n6. **Bootstrap circularity**: the fact says whether the graph may be read at all, so it cannot live in the graph.\n   That was SemStreams' case for `GRAPH_STATUS`, whose readiness records a consumer could wait on before it read. It\n   is history here: in SemEngine the worker that answers a query says in its reply whether it can answer yet, and no\n   consumer reads a bucket before it asks ([ADR-109](..\u002F..\u002F..\u002Fdocs\u002Fadr\u002F109-ready-after-boot.md), Decision 1).\n\nGround 6 is SemStreams' addition to ADR-049's first five: `GRAPH_STATUS` fits none of them. The bucket stays, as\ninformation for operators and tools; graph-ingest writes its record there (`processor\u002Fgraph-ingest\u002Freadiness.go`).\nNothing in SemEngine waits on it, and no value in it changes what a query returns (ADR-109, Decision 3).\n\n## Keep it in ENTITY_STATES when\n\n1. The data is facts the graph should reason over.\n2. Graph queries or inference should see it. Community records (`COMMUNITY_INDEX`) are derived from entity IDs by\n   `graph\u002Fclustering` (grouping by ID prefix, not detection) and rebuilt from `ENTITY_STATES`; they are not facts.\n3. Several readers need one current state through their own interfaces. That state is not an audit trail:\n   `ENTITY_STATES` keeps one revision per key (`graph\u002Fkvcatalog\u002Fkvcatalog.go`).\n4. You need no compare-and-set finer than graph-ingest's one write per entity.\n\n## The test that does not work\n\nDo not decide by \"does it accumulate, or is it replaced\". Accumulation or replacement follows from the ground that\napplies; it is never the test. The unit is the fact, not the subject: one subject can have facts in the graph and\ncontent in a bucket, reached through a key that a triple holds. That is not a violation.\n\n## Who reacts to the fact\n\nPlacement decides storage; who can react to the fact is a separate question. Do not have the owner watch its own\nbucket and republish the changes it thinks are interesting: the producer then decides what every consumer depends on,\nwhere SemEngine has the consumer declare it\n([ADR-088](..\u002F..\u002F..\u002Fdocs\u002Fadr\u002F088-readiness-is-per-producer-aggregation-is-the-consumers.md)). A fact with no strong\nbucket ground that something must react to belongs in the graph.\n\nHow rules read facts (the pin's rule processor reads only `ENTITY_STATES` and messages) returns with the rule\nprocessor in change 6.\n\n## Before you propose a new bucket\n\n- [ ] Which ground, 1 to 6, does it meet? If none, the fact goes in the graph.\n- [ ] Is the ground about the fact, or about a subject that also has facts in the graph?\n- [ ] Does anything need to react to it? Then how does it reach that reader: as a triple, or as a published message?\n- [ ] Does the framework guarantee its ownership or retention? Then it gets a descriptor in `graph\u002Fkvcatalog`, naming\n      its owner, write policy and retention.\n- [ ] Is the ground not obvious? Write the ADR.\n\n## See also\n\n- `graph\u002Fkvcatalog\u002Fkvcatalog.go`: which buckets the framework owns, and the rule for adding one.\n- [kv-or-stream](..\u002Fkv-or-stream\u002FSKILL.md): a different question, whether something is a fact or a request for work.\n",{"name":5,"description":7},"main","a8dd79128471bb120c59ffc1f2c5fdcc74d28c2b",".agents\u002Fskills\u002Fentity-or-bucket","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemengine","https:\u002F\u002Fgithub.com\u002FC360Studio","2026-11-15 06:29:50",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add C360Studio\u002Fsemengine --skill entity-or-bucket",{"tool":36,"command":37},"bunx","bunx skills add C360Studio\u002Fsemengine --skill entity-or-bucket",{"tool":39,"command":40},"pnpm","pnpm dlx skills add C360Studio\u002Fsemengine --skill entity-or-bucket","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemengine\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fentity-or-bucket\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M7DJNADQDES9RFB0RF39MARV","semengine-status","Report SemEngine Slice 04A package port progress, active PR claims, known flakes, and GitHub milestone\u002Fissue queue hygiene, and sync the GitHub Project v2 tracker. Use when asked for port status, auditing the issue queue, or updating the project board.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemengine\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsemengine-status\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7DJN7JPA0M9VZZ5RRZ6XEMW","review-pr","Adapter for review-pr.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemengine\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview-pr\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7DJN4VWVKR8B6Z7XVPKWGD8","query-pattern","Choose how code reads the graph: graph-ingest's declared request verbs, the typed exact-entity reader, or an owner's bucket access. Use when a component or a consumer needs to read entities.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemengine\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fquery-pattern\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7DJN0VZEF1BYN6QCZDGRNF5","preflight","Select and run the existing SemEngine verification gates for a concrete diff before an implementation push or local-readiness assessment.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemengine\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpreflight\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7DJMZVCQQ7C0XBF8S65SAV2","ponytail","Adapter for ponytail.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemengine\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fponytail\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7DJMYVPY0TAV1TBKSAP36ZZ","pickup","Adapter for pickup.","https:\u002F\u002Fgithub.com\u002FC360Studio\u002Fsemengine\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpickup\u002FSKILL.md",[],[]]