[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AWSESCP2CMFAJSM8SA8V4G":3,"skill-same:01M7AWSESCP2CMFAJSM8SA8V4G":44},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7AWSESCP2CMFAJSM8SA8V4G","domain-fintech",null,"Use when building fintech apps. Keywords: fintech, trading, decimal, currency, financial, money, transaction, ledger, payment, exchange rate, precision, rounding, accounting, 金融, 交易系统, 货币, 支付","wxxb789\u002Fmarkturbo","wxxb789","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F49564443?v=4","01M7AWR3AB19SNE4ATARY9KV3W","01M7AWR3AZ5Y5ADAY47KF3RBRJ",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdomain-fintech\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: domain-fintech\ndescription: \"Use when building fintech apps. Keywords: fintech, trading, decimal, currency, financial, money, transaction, ledger, payment, exchange rate, precision, rounding, accounting, 金融, 交易系统, 货币, 支付\"\nuser-invocable: false\n---\n\n# FinTech Domain\n\n> **Layer 3: Domain Constraints**\n\n## Domain Constraints → Design Implications\n\n| Domain Rule | Design Constraint | Rust Implication |\n|-------------|-------------------|------------------|\n| Audit trail | Immutable records | Arc\u003CT>, no mutation |\n| Precision | No floating point | rust_decimal |\n| Consistency | Transaction boundaries | Clear ownership |\n| Compliance | Complete logging | Structured tracing |\n| Reproducibility | Deterministic execution | No race conditions |\n\n---\n\n## Critical Constraints\n\n### Financial Precision\n\n```\nRULE: Never use f64 for money\nWHY: Floating point loses precision\nRUST: Use rust_decimal::Decimal\n```\n\n### Audit Requirements\n\n```\nRULE: All transactions must be immutable and traceable\nWHY: Regulatory compliance, dispute resolution\nRUST: Arc\u003CT> for sharing, event sourcing pattern\n```\n\n### Consistency\n\n```\nRULE: Money can't disappear or appear\nWHY: Double-entry accounting principles\nRUST: Transaction types with validated totals\n```\n\n---\n\n## Trace Down ↓\n\nFrom constraints to design (Layer 2):\n\n```\n\"Need immutable transaction records\"\n    ↓ m09-domain: Model as Value Objects\n    ↓ m01-ownership: Use Arc for shared immutable data\n\n\"Need precise decimal math\"\n    ↓ m05-type-driven: Newtype for Currency\u002FAmount\n    ↓ rust_decimal: Use Decimal type\n\n\"Need transaction boundaries\"\n    ↓ m12-lifecycle: RAII for transaction scope\n    ↓ m09-domain: Aggregate boundaries\n```\n\n---\n\n## Key Crates\n\n| Purpose | Crate |\n|---------|-------|\n| Decimal math | rust_decimal |\n| Date\u002Ftime | chrono, time |\n| UUID | uuid |\n| Serialization | serde |\n| Validation | validator |\n\n## Design Patterns\n\n| Pattern | Purpose | Implementation |\n|---------|---------|----------------|\n| Currency newtype | Type safety | `struct Amount(Decimal);` |\n| Transaction | Atomic operations | Event sourcing |\n| Audit log | Traceability | Structured logging with trace IDs |\n| Ledger | Double-entry | Debit\u002Fcredit balance |\n\n## Code Pattern: Currency Type\n\n```rust\nuse rust_decimal::Decimal;\n\n#[derive(Clone, Debug, PartialEq)]\npub struct Amount {\n    value: Decimal,\n    currency: Currency,\n}\n\nimpl Amount {\n    pub fn new(value: Decimal, currency: Currency) -> Self {\n        Self { value, currency }\n    }\n\n    pub fn add(&self, other: &Amount) -> Result\u003CAmount, CurrencyMismatch> {\n        if self.currency != other.currency {\n            return Err(CurrencyMismatch);\n        }\n        Ok(Amount::new(self.value + other.value, self.currency))\n    }\n}\n```\n\n---\n\n## Common Mistakes\n\n| Mistake | Domain Violation | Fix |\n|---------|-----------------|-----|\n| Using f64 | Precision loss | rust_decimal |\n| Mutable transaction | Audit trail broken | Immutable + events |\n| String for amount | No validation | Validated newtype |\n| Silent overflow | Money disappears | Checked arithmetic |\n\n---\n\n## Trace to Layer 1\n\n| Constraint | Layer 2 Pattern | Layer 1 Implementation |\n|------------|-----------------|------------------------|\n| Immutable records | Event sourcing | Arc\u003CT>, Clone |\n| Transaction scope | Aggregate | Owned children |\n| Precision | Value Object | rust_decimal newtype |\n| Thread-safe sharing | Shared immutable | Arc (not Rc) |\n\n---\n\n## Related Skills\n\n| When | See |\n|------|-----|\n| Value Object design | m09-domain |\n| Ownership for immutable | m01-ownership |\n| Arc for sharing | m02-resource |\n| Error handling | m13-domain-error |\n","# FinTech Domain\n\n> **Layer 3: Domain Constraints**\n\n## Domain Constraints → Design Implications\n\n| Domain Rule | Design Constraint | Rust Implication |\n|-------------|-------------------|------------------|\n| Audit trail | Immutable records | Arc\u003CT>, no mutation |\n| Precision | No floating point | rust_decimal |\n| Consistency | Transaction boundaries | Clear ownership |\n| Compliance | Complete logging | Structured tracing |\n| Reproducibility | Deterministic execution | No race conditions |\n\n---\n\n## Critical Constraints\n\n### Financial Precision\n\n```\nRULE: Never use f64 for money\nWHY: Floating point loses precision\nRUST: Use rust_decimal::Decimal\n```\n\n### Audit Requirements\n\n```\nRULE: All transactions must be immutable and traceable\nWHY: Regulatory compliance, dispute resolution\nRUST: Arc\u003CT> for sharing, event sourcing pattern\n```\n\n### Consistency\n\n```\nRULE: Money can't disappear or appear\nWHY: Double-entry accounting principles\nRUST: Transaction types with validated totals\n```\n\n---\n\n## Trace Down ↓\n\nFrom constraints to design (Layer 2):\n\n```\n\"Need immutable transaction records\"\n    ↓ m09-domain: Model as Value Objects\n    ↓ m01-ownership: Use Arc for shared immutable data\n\n\"Need precise decimal math\"\n    ↓ m05-type-driven: Newtype for Currency\u002FAmount\n    ↓ rust_decimal: Use Decimal type\n\n\"Need transaction boundaries\"\n    ↓ m12-lifecycle: RAII for transaction scope\n    ↓ m09-domain: Aggregate boundaries\n```\n\n---\n\n## Key Crates\n\n| Purpose | Crate |\n|---------|-------|\n| Decimal math | rust_decimal |\n| Date\u002Ftime | chrono, time |\n| UUID | uuid |\n| Serialization | serde |\n| Validation | validator |\n\n## Design Patterns\n\n| Pattern | Purpose | Implementation |\n|---------|---------|----------------|\n| Currency newtype | Type safety | `struct Amount(Decimal);` |\n| Transaction | Atomic operations | Event sourcing |\n| Audit log | Traceability | Structured logging with trace IDs |\n| Ledger | Double-entry | Debit\u002Fcredit balance |\n\n## Code Pattern: Currency Type\n\n```rust\nuse rust_decimal::Decimal;\n\n#[derive(Clone, Debug, PartialEq)]\npub struct Amount {\n    value: Decimal,\n    currency: Currency,\n}\n\nimpl Amount {\n    pub fn new(value: Decimal, currency: Currency) -> Self {\n        Self { value, currency }\n    }\n\n    pub fn add(&self, other: &Amount) -> Result\u003CAmount, CurrencyMismatch> {\n        if self.currency != other.currency {\n            return Err(CurrencyMismatch);\n        }\n        Ok(Amount::new(self.value + other.value, self.currency))\n    }\n}\n```\n\n---\n\n## Common Mistakes\n\n| Mistake | Domain Violation | Fix |\n|---------|-----------------|-----|\n| Using f64 | Precision loss | rust_decimal |\n| Mutable transaction | Audit trail broken | Immutable + events |\n| String for amount | No validation | Validated newtype |\n| Silent overflow | Money disappears | Checked arithmetic |\n\n---\n\n## Trace to Layer 1\n\n| Constraint | Layer 2 Pattern | Layer 1 Implementation |\n|------------|-----------------|------------------------|\n| Immutable records | Event sourcing | Arc\u003CT>, Clone |\n| Transaction scope | Aggregate | Owned children |\n| Precision | Value Object | rust_decimal newtype |\n| Thread-safe sharing | Shared immutable | Arc (not Rc) |\n\n---\n\n## Related Skills\n\n| When | See |\n|------|-----|\n| Value Object design | m09-domain |\n| Ownership for immutable | m01-ownership |\n| Arc for sharing | m02-resource |\n| Error handling | m13-domain-error |\n",{"name":5,"description":7,"user-invocable":19},"main","0f3f41ed51c357d4f79561a132514089c1aaa97d",".agents\u002Fskills\u002Fdomain-fintech",0,"https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo","https:\u002F\u002Fgithub.com\u002Fwxxb789","2026-11-15 04:06:53",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add wxxb789\u002Fmarkturbo --skill domain-fintech",{"tool":36,"command":37},"bunx","bunx skills add wxxb789\u002Fmarkturbo --skill domain-fintech",{"tool":39,"command":40},"pnpm","pnpm dlx skills add wxxb789\u002Fmarkturbo --skill domain-fintech","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdomain-fintech\u002FSKILL.md",true,[],[45,52,58,65,72,78],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7AWXVVZ6JEJVFGGT2WBSEN0","hello-diagrams","A valid, fully-populated Agent Skill, shown here so the Skills inspector has something correct to display.","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Fsample\u002F.claude\u002Fskills\u002Fhello-diagrams\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7AWXTNG6ZV6WW5CHJZXJYEC","Broken-Example","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Fsample\u002F.claude\u002Fskills\u002Fbroken-example\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7AWXS5WN306ENF2MYJYP7VM","valid-skill","A fully conformant skill with every optional field populated.","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7AWXR0NY08YVHE0G8VTJJ97","a-different-name","The name does not match the directory, which is a conformance warning.","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fname-mismatch\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":6,"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":18},"01M7AWXQ5EV9JCA0WG9Q1WB13Y","missing-metadata","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fmissing-metadata\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M7AWXP8GT7FATM53B914ZN50","malformed-yaml","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fmalformed-yaml\u002FSKILL.md",[],[]]