[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CWDP66RK07637J4ZWX4JVB":3,"skill-same:01M6CWDP66RK07637J4ZWX4JVB":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":22,"linkOnly":23,"markdownContent":24,"markdownBody":25,"frontMatter":26,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M6CWDP66RK07637J4ZWX4JVB","acid",null,"ACID database properties","ffsshhttiikk\u002Fopencode-agents-skills","ffsshhttiikk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F226346827?v=4","01M6CWD9RR3Y7VRQX3MXYC8FYH","01M6CWD9WVPYAZW0J82G1VKGHY",3,"MIT","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Facid\u002FSKILL.md",[],[5,18,19,20,21],"database","opencode","databases","properties","2026-11-10 10:12:30",false,"---\nname: acid\ndescription: ACID database properties\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: developers\n  category: databases\n---\n\n## What I do\n- Explain ACID transaction properties\n- Implement atomic operations\n- Ensure data consistency\n- Handle isolation levels\n\n## When to use me\nWhen working with database transactions.\n\n## ACID Properties\n\n### Atomicity\n```python\nclass AtomicTransaction:\n    \"\"\"Implement atomic transactions\"\"\"\n    \n    def __init__(self, db_connection):\n        self.db = db_connection\n        self.operations = []\n    \n    def add_operation(self, operation: Callable):\n        self.operations.append(operation)\n    \n    def execute(self) -> bool:\n        \"\"\"Execute all operations atomically\"\"\"\n        try:\n            self.db.begin()\n            \n            for op in self.operations:\n                op()\n            \n            self.db.commit()\n            return True\n        \n        except Exception as e:\n            self.db.rollback()\n            raise e\n```\n\n### Consistency\n```python\nclass ConsistencyValidator:\n    \"\"\"Ensure database consistency\"\"\"\n    \n    def __init__(self):\n        self.constraints = []\n    \n    def add_constraint(self, constraint: dict):\n        self.constraints.append(constraint)\n    \n    def validate(self, data: dict) -> bool:\n        \"\"\"Validate data against constraints\"\"\"\n        for constraint in self.constraints:\n            if not self._check_constraint(data, constraint):\n                return False\n        return True\n    \n    def _check_constraint(self, data: dict, \n                         constraint: dict) -> bool:\n        if constraint[\"type\"] == \"unique\":\n            return self._check_unique(data, constraint)\n        elif constraint[\"type\"] == \"check\":\n            return self._check_expression(data, constraint)\n```\n\n### Isolation\n```python\nclass IsolationLevel:\n    \"\"\"Transaction isolation levels\"\"\"\n    \n    READ_UNCOMMITTED = \"read_uncommitted\"\n    READ_COMMITTED = \"read_committed\"\n    REPEATABLE_READ = \"repeatable_read\"\n    SERIALIZABLE = \"serializable\"\n\n\nclass TransactionManager:\n    \"\"\"Manage transaction isolation\"\"\"\n    \n    def __init__(self):\n        self.isolation_level = IsolationLevel.READ_COMMITTED\n    \n    def begin_transaction(self, level: str = None):\n        \"\"\"Begin transaction with isolation level\"\"\"\n        level = level or self.isolation_level\n        \n        if level == IsolationLevel.SERIALIZABLE:\n            return SerializableTransaction()\n        elif level == IsolationLevel.REPEATABLE_READ:\n            return RepeatableReadTransaction()\n```\n\n### Durability\n```python\nclass DurableStorage:\n    \"\"\"Ensure durability\"\"\"\n    \n    def write(self, data: dict):\n        \"\"\"Write with durability guarantee\"\"\"\n        # Write to WAL\n        self.wal.write(data)\n        \n        # Sync to disk\n        self.wal.sync()\n        \n        # Write to main storage\n        self.storage.write(data)\n        \n        # Confirm write\n        return {\"status\": \"committed\"}\n```\n","## What I do\n- Explain ACID transaction properties\n- Implement atomic operations\n- Ensure data consistency\n- Handle isolation levels\n\n## When to use me\nWhen working with database transactions.\n\n## ACID Properties\n\n### Atomicity\n```python\nclass AtomicTransaction:\n    \"\"\"Implement atomic transactions\"\"\"\n    \n    def __init__(self, db_connection):\n        self.db = db_connection\n        self.operations = []\n    \n    def add_operation(self, operation: Callable):\n        self.operations.append(operation)\n    \n    def execute(self) -> bool:\n        \"\"\"Execute all operations atomically\"\"\"\n        try:\n            self.db.begin()\n            \n            for op in self.operations:\n                op()\n            \n            self.db.commit()\n            return True\n        \n        except Exception as e:\n            self.db.rollback()\n            raise e\n```\n\n### Consistency\n```python\nclass ConsistencyValidator:\n    \"\"\"Ensure database consistency\"\"\"\n    \n    def __init__(self):\n        self.constraints = []\n    \n    def add_constraint(self, constraint: dict):\n        self.constraints.append(constraint)\n    \n    def validate(self, data: dict) -> bool:\n        \"\"\"Validate data against constraints\"\"\"\n        for constraint in self.constraints:\n            if not self._check_constraint(data, constraint):\n                return False\n        return True\n    \n    def _check_constraint(self, data: dict, \n                         constraint: dict) -> bool:\n        if constraint[\"type\"] == \"unique\":\n            return self._check_unique(data, constraint)\n        elif constraint[\"type\"] == \"check\":\n            return self._check_expression(data, constraint)\n```\n\n### Isolation\n```python\nclass IsolationLevel:\n    \"\"\"Transaction isolation levels\"\"\"\n    \n    READ_UNCOMMITTED = \"read_uncommitted\"\n    READ_COMMITTED = \"read_committed\"\n    REPEATABLE_READ = \"repeatable_read\"\n    SERIALIZABLE = \"serializable\"\n\n\nclass TransactionManager:\n    \"\"\"Manage transaction isolation\"\"\"\n    \n    def __init__(self):\n        self.isolation_level = IsolationLevel.READ_COMMITTED\n    \n    def begin_transaction(self, level: str = None):\n        \"\"\"Begin transaction with isolation level\"\"\"\n        level = level or self.isolation_level\n        \n        if level == IsolationLevel.SERIALIZABLE:\n            return SerializableTransaction()\n        elif level == IsolationLevel.REPEATABLE_READ:\n            return RepeatableReadTransaction()\n```\n\n### Durability\n```python\nclass DurableStorage:\n    \"\"\"Ensure durability\"\"\"\n    \n    def write(self, data: dict):\n        \"\"\"Write with durability guarantee\"\"\"\n        # Write to WAL\n        self.wal.write(data)\n        \n        # Sync to disk\n        self.wal.sync()\n        \n        # Write to main storage\n        self.storage.write(data)\n        \n        # Confirm write\n        return {\"status\": \"committed\"}\n```\n",{"name":5,"license":14,"metadata":27,"description":7,"compatibility":19},{"audience":28,"category":20},"developers","main","5f7a3e453c98261f93d19a6a7de44ad8f7b72d41",2,"https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk","2026-03-01 06:55:40",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill acid",{"tool":41,"command":42},"bunx","bunx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill acid",{"tool":44,"command":45},"pnpm","pnpm dlx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill acid","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Facid\u002FSKILL.md",true,[],[50,61,71,80,89,97],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":22},"01M6CXT9TXDF79BWJTMQAPB49G","xamarin","Xamarin cross-platform development","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fxamarin\u002FSKILL.md",[],[52,57,58,59,19,60],"platform","cross-platform","mobile","development",{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":22},"01M6CXT8AD04MFYDA32VW3FKAG","wrangling","Data wrangling fundamentals","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwrangling\u002FSKILL.md",[],[63,68,19,69,70],"data wrangling","science","data",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":22},"01M6CXT717GCN7SRRNPBDP4508","windows","Windows operating system administration and scripting","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwindows\u002FSKILL.md",[],[73,78,19,79],"system","scripting",{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":22},"01M6CXT54K794NMEM3XAPZZDKT","wide-column","Wide-column data model","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column\u002FSKILL.md",[],[87,20,19,88,70],"wide column","model",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":22},"01M6CXT28FMT2P4V9GZE67WA8E","wide-column-stores","Wide-column database stores","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column-stores\u002FSKILL.md",[],[96,20,19,18],"wide column stores",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":22},"01M6CXT0D0M0Q4T2N7C2RX7DSN","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwebsockets\u002FSKILL.md",[],[99,104,105,106,19,107,108],"websocket","real-time","time","best practices","implementation"]