[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699529EEJD1Z9AJ15GXAS7N":3,"skill-same:01M699529EEJD1Z9AJ15GXAS7N":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":17,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M699529EEJD1Z9AJ15GXAS7N","dart-best-practices","Dart 开发最佳实践","General best practices for Dart development.\nCovers code style, effective Dart, and language features.","Dart 开发的通用最佳实践。涵盖代码风格、Effective Dart（有效的 Dart）和语言特性。","google\u002Fskills_lint.dart","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M69948DMEXSF9KS5Y4DBBN4D",8,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills_lint.dart\u002Fblob\u002Fmain\u002Fthird_party\u002Fskill-repos\u002Fkevmoo-dash-skills\u002F.agents\u002Fskills\u002Fdart-best-practices\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT3B3SM9ZTTFVESHK5HDRR","Dart 开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"dart best practices","best practices","dart","code style","guidelines","development","code","idioms","general","language","recommendations","feature","style","for","features","general best practices","2026-11-10 10:12:30",false,"---\nname: dart-best-practices\ndescription: |-\n  General best practices for Dart development.\n  Covers code style, effective Dart, and language features.\nlicense: Apache-2.0\nkey_features:\n  - Code style guidelines\n  - Effective Dart idioms\n  - Language feature recommendations\n---\n\n# Dart Best Practices\n\n## 1. When to use this skill\n\nUse this skill when:\n\n- Writing or reviewing Dart code.\n- Looking for guidance on idiomatic Dart usage.\n\n### When NOT to use (Abstention Guardrails)\n\nDo NOT apply this skill or refactor code when:\n\n- **Public API Breaking Changes**: Refactoring would alter public API contracts,\n  return types, or parameter signatures in published packages without a\n  coordinated major SemVer bump.\n- **Dogmatic Micro-Optimizations**: Rewriting clear, readable code for\n  negligible theoretical gains (e.g. replacing clear string concatenation in a\n  simple one-line log message with multiline quotes).\n- **Domain-Specific or Code-Generated Files**: Generated files (`*.g.dart`,\n  `*.freezed.dart`, protobufs) or files where line lengths and string layouts\n  are managed by code generators.\n- **Explicit Type Annotations in Public Interfaces**: Replacing explicit type\n  annotations with `var` or `final` where explicit types document the public API\n  surface or disambiguate complex generics.\n\n## 2. Best Practices\n\n### Multi-line Strings\n\nPrefer using multi-line strings (`'''`) over concatenating strings with `+` and\n`\\n`, especially for large blocks of text like SQL queries, HTML, or PEM-encoded\nkeys. This improves readability and avoids `lines_longer_than_80_chars` lint\nerrors by allowing natural line breaks.\n\n**Avoid:**\n\n```dart\nfinal pem = '-----BEGIN RSA PRIVATE KEY-----\\n' +\n    base64Encode(fullBytes) +\n    '\\n-----END RSA PRIVATE KEY-----';\n```\n\n**Prefer:**\n\n```dart\nfinal pem = '''\n-----BEGIN RSA PRIVATE KEY-----\n${base64Encode(fullBytes)}\n-----END RSA PRIVATE KEY-----''';\n```\n\n### Line Length\n\nAvoid lines longer than 80 characters, even in Markdown files and comments. This\nensures code is readable in split-screen views and on smaller screens without\nhorizontal scrolling.\n\n**Prefer:** Target 80 characters for wrapping text. Exceptions are allowed for\nlong URLs or identifiers that cannot be broken.\n\n## Discovery\n\n### Multi-line Strings\n\nTo find candidates for multi-line strings, search for string concatenation with\n`+` involving newlines:\n\n- **Regex**: `['\"]\\s*\\+\\s*['\"]`\n- **Regex**: `\\+\\s*['\"].*\\\\n`\n\n### Line Length\n\n- Rely on the `lines_longer_than_80_chars` lint from the analyzer.\n\n## Related Skills\n\n- **[dart-modern-features]**: For idiomatic usage of modern Dart features like\n  Pattern Matching (useful for deep JSON extraction), Records, and Switch\n  Expressions.\n\n[dart-modern-features]:\n  https:\u002F\u002Fgithub.com\u002Fkevmoo\u002Fdash_skills\u002Fblob\u002Fmain\u002Fskills\u002Fdart-modern-features\u002FSKILL.md\n","# Dart Best Practices\n\n## 1. When to use this skill\n\nUse this skill when:\n\n- Writing or reviewing Dart code.\n- Looking for guidance on idiomatic Dart usage.\n\n### When NOT to use (Abstention Guardrails)\n\nDo NOT apply this skill or refactor code when:\n\n- **Public API Breaking Changes**: Refactoring would alter public API contracts,\n  return types, or parameter signatures in published packages without a\n  coordinated major SemVer bump.\n- **Dogmatic Micro-Optimizations**: Rewriting clear, readable code for\n  negligible theoretical gains (e.g. replacing clear string concatenation in a\n  simple one-line log message with multiline quotes).\n- **Domain-Specific or Code-Generated Files**: Generated files (`*.g.dart`,\n  `*.freezed.dart`, protobufs) or files where line lengths and string layouts\n  are managed by code generators.\n- **Explicit Type Annotations in Public Interfaces**: Replacing explicit type\n  annotations with `var` or `final` where explicit types document the public API\n  surface or disambiguate complex generics.\n\n## 2. Best Practices\n\n### Multi-line Strings\n\nPrefer using multi-line strings (`'''`) over concatenating strings with `+` and\n`\\n`, especially for large blocks of text like SQL queries, HTML, or PEM-encoded\nkeys. This improves readability and avoids `lines_longer_than_80_chars` lint\nerrors by allowing natural line breaks.\n\n**Avoid:**\n\n```dart\nfinal pem = '-----BEGIN RSA PRIVATE KEY-----\\n' +\n    base64Encode(fullBytes) +\n    '\\n-----END RSA PRIVATE KEY-----';\n```\n\n**Prefer:**\n\n```dart\nfinal pem = '''\n-----BEGIN RSA PRIVATE KEY-----\n${base64Encode(fullBytes)}\n-----END RSA PRIVATE KEY-----''';\n```\n\n### Line Length\n\nAvoid lines longer than 80 characters, even in Markdown files and comments. This\nensures code is readable in split-screen views and on smaller screens without\nhorizontal scrolling.\n\n**Prefer:** Target 80 characters for wrapping text. Exceptions are allowed for\nlong URLs or identifiers that cannot be broken.\n\n## Discovery\n\n### Multi-line Strings\n\nTo find candidates for multi-line strings, search for string concatenation with\n`+` involving newlines:\n\n- **Regex**: `['\"]\\s*\\+\\s*['\"]`\n- **Regex**: `\\+\\s*['\"].*\\\\n`\n\n### Line Length\n\n- Rely on the `lines_longer_than_80_chars` lint from the analyzer.\n\n## Related Skills\n\n- **[dart-modern-features]**: For idiomatic usage of modern Dart features like\n  Pattern Matching (useful for deep JSON extraction), Records, and Switch\n  Expressions.\n\n[dart-modern-features]:\n  https:\u002F\u002Fgithub.com\u002Fkevmoo\u002Fdash_skills\u002Fblob\u002Fmain\u002Fskills\u002Fdart-modern-features\u002FSKILL.md\n",{"name":5,"license":16,"description":7,"key_features":52},[53,54,55],"Code style guidelines","Effective Dart idioms","Language feature recommendations","main","d7c70923cbbe95b86a590fa0fa4e914d15695e4d","third_party\u002Fskill-repos\u002Fkevmoo-dash-skills\u002F.agents\u002Fskills\u002Fdart-best-practices",7,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills_lint.dart","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 05:40:20",{"source":9,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add google\u002Fskills_lint.dart --skill dart-best-practices",{"tool":71,"command":72},"bunx","bunx skills add google\u002Fskills_lint.dart --skill dart-best-practices",{"tool":74,"command":75},"pnpm","pnpm dlx skills add google\u002Fskills_lint.dart --skill dart-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills_lint.dart\u002Fblob\u002Fmain\u002Fthird_party\u002Fskill-repos\u002Fkevmoo-dash-skills\u002F.agents\u002Fskills\u002Fdart-best-practices\u002FSKILL.md",true,[79],{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"evals\u002Fevals.json","REFERENCE","参考文档",2197,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills_lint.dart\u002Fblob\u002Fmain\u002Fthird_party\u002Fskill-repos\u002Fkevmoo-dash-skills\u002F.agents\u002Fskills\u002Fdart-best-practices\u002Fevals\u002Fevals.json",[86,108,126,146,168,198],{"skillNo":87,"name":88,"nameZh":89,"description":90,"descriptionZh":91,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":92,"categories":93,"keywords":96,"publishedAt":47},"01M6995BQ87JV2EG35BC0BGH3E","dart-test-fundamentals","Dart 单元测试基础","Core concepts and best practices for `package:test`.\nCovers `test`, `group`, lifecycle methods (`setUp`, `tearDown`), and\nconfiguration (`dart_test.yaml`).","`package:test` 的核心概念与最佳实践。\n涵盖 `test`、`group`、生命周期方法（`setUp`、`tearDown`）以及配置（`dart_test.yaml`）。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills_lint.dart\u002Fblob\u002Fmain\u002Fthird_party\u002Fskill-repos\u002Fkevmoo-dash-skills\u002F.agents\u002Fskills\u002Fdart-test-fundamentals\u002FSKILL.md",[94,95],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[97,98,33,99,44,100,101,102,103,104,105,106,32,107],"test","dart test fundamentals","core","concepts","teardown","methods","configuration","lifecycle","yaml","package","setup",{"skillNo":109,"name":110,"nameZh":111,"description":112,"descriptionZh":113,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":118,"publishedAt":47},"01M699560NWTQKV9VMQYQR4P9S","dart-matcher-best-practices","Dart 断言匹配器最佳实践","Best practices for using `expect` and `package:matcher`.\nFocuses on readable assertions, proper matcher selection, and avoiding\ncommon pitfalls.","使用 `expect` 和 `package:matcher` 的最佳实践。\n重点关注可读的断言、正确选择匹配器以及避免常见陷阱。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills_lint.dart\u002Fblob\u002Fmain\u002Fthird_party\u002Fskill-repos\u002Fkevmoo-dash-skills\u002F.agents\u002Fskills\u002Fdart-matcher-best-practices\u002FSKILL.md",[116,117],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[32,119,33,120,97,106,121,44,122,123,124,125],"dart matcher best practices","pitfalls","assertions","common pitfalls","selection","common","refactoring",{"skillNo":127,"name":128,"nameZh":129,"description":130,"descriptionZh":131,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":132,"categories":133,"keywords":136,"publishedAt":47},"01M69954NHT0DAFYE2SZPN6KF0","dart-long-lines","Dart 长行代码规范处理","Guidelines for handling long lines in Dart code to adhere to the 80-column\nrule. The `lines_longer_than_80_chars` lint.","处理 Dart 代码中长行以遵守 80 列规则的指南，即 `lines_longer_than_80_chars` lint 检查。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills_lint.dart\u002Fblob\u002Fmain\u002Fthird_party\u002Fskill-repos\u002Fkevmoo-dash-skills\u002F.agents\u002Fskills\u002Fdart-long-lines\u002FSKILL.md",[134,135],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[137,138,33,125,139,140,141,37,142,44,143,144,145,35],"long","dart long lines","compliance","linter","line","rule","column","lint","enforcement",{"skillNo":147,"name":148,"nameZh":149,"description":150,"descriptionZh":151,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":152,"categories":153,"keywords":156,"publishedAt":47},"01M69953F9VQ40RN4T4WYDMQPC","dart-doc-validation","Dart 文档注释校验","Best practices for validating Dart documentation comments.\nCovers using `dart doc` to catch unresolved references and macros.","验证 Dart 文档注释的最佳实践。涵盖使用 `dart doc` 检测未解析的引用和宏。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills_lint.dart\u002Fblob\u002Fmain\u002Fthird_party\u002Fskill-repos\u002Fkevmoo-dash-skills\u002F.agents\u002Fskills\u002Fdart-doc-validation\u002FSKILL.md",[154,155],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[157,158,159,33,160,161,162,44,163,164,165,166,167,32],"dart doc validation","validation","doc","reference","documentation","catch","comments","macros","references","macro","verification",{"skillNo":169,"name":170,"nameZh":171,"description":172,"descriptionZh":173,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":174,"categories":175,"keywords":180,"publishedAt":47},"01M6994Q5SB4RRW1EHQGFGEYM2","triage-github-issues","GitHub Issue 分类与整理","Sorts new GitHub issues by type and priority, asks for missing details, and closes duplicates. Use when asked to triage, label or clean up the issue tracker.","按类型和优先级对新的 GitHub issue 进行分类，询问缺失的详细信息，并关闭重复项。当被要求对 issue tracker 进行分类（triage）、添加标签或清理时使用。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills_lint.dart\u002Fblob\u002Fmain\u002Fpackages\u002Fskills_lint\u002Fbenchmark\u002Fsample_skills\u002Ftriage-github-issues\u002FSKILL.md",[176,177],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":178,"categoryName":179,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[181,182,183,184,185,186,187,188,189,190,191,192,44,193,194,195,196,197],"issues","github issues","triage","triage github issues","github","issue","duplicates","up","use","tracker","new","when","true","issue tracker","missing","type","clean",{"skillNo":199,"name":200,"nameZh":201,"description":202,"descriptionZh":203,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":204,"categories":205,"keywords":210,"publishedAt":47},"01M6994NJCFZQXX8XKRE8BWHEM","release-dart-package","Dart 包版本发布","Prepares and publishes a new version of a Dart package to pub.dev, from the version bump to the GitHub release. Use when asked to cut, tag or publish a release.","准备并将 Dart 包的新版本发布到 pub.dev，涵盖从版本号提升到 GitHub release 的完整流程。当被要求创建（cut）、打标签（tag）或发布（publish）版本时使用。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills_lint.dart\u002Fblob\u002Fmain\u002Fpackages\u002Fskills_lint\u002Fbenchmark\u002Fsample_skills\u002Frelease-dart-package\u002FSKILL.md",[206,207],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":208,"categoryName":209,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[106,211,212,33,213,191,192,193,214,215,216,217,218,189,219,220,221,222,185,223],"release dart package","release","github cli","rights","with","version bump","bump","version","Bash","publish","dev","sdk","cli"]