dart-skills-lint-setup

द्वारा flutter

इस कौशल का उपयोग तब करें जब आपको पहली बार किसी Dart प्रोजेक्ट में AI एजेंट कौशल के लिए सत्यापन सेट अप करने की आवश्यकता हो। लिंटर को dev_dependency के रूप में जोड़ता है, एक… बनाता है

npx skills add https://github.com/flutter/skills --skill dart-skills-lint-setup

Setting up Skill Validation with dart_skills_lint

This skill covers first-time wiring of dart_skills_lint into a repository. For ongoing use — running the linter, interpreting output, and writing custom rules — see the dart-skills-lint-validation skill. For copy-pasteable CI workflow and pre-commit hook recipes, see the Recipes section of the README.

Steps

  1. Add dart_skills_lint as a dev_dependency.

    dev_dependencies:
      dart_skills_lint: ^0.5.0
    

    Isolate the dependency in a tool/ package when you can, instead of putting it on the root pubspec.yaml — keeps the linter's deps out of your runtime closure. If you must add it to multiple pubspec.yaml files, ensure the ref: (commit hash) is identical across all of them so resolution doesn't diverge.

  2. Create dart_skills_lint.yaml at the repository root so both the CLI and any embedded test invocation share the same config:

    dart_skills_lint:
      rules:
        check-relative-paths: error
        check-trailing-whitespace: error
      directories:
        - path: ".agents/skills"
    

    Rules enabled by default — check-absolute-paths, valid-yaml-metadata, invalid-skill-name, description-too-long — only need to be listed if you want to change their severity. See RULES.md for the full list.

  3. Generate a baseline if you're integrating into a repository with pre-existing skills that have legacy violations you don't want to fix immediately:

    dart run dart_skills_lint:cli --skills-directory=.agents/skills --generate-baseline
    

    This writes the current set of failures into an ignore file so the next run exits clean. New violations introduced after the baseline still surface as errors.

  4. Wire it into CI. Use the GitHub Actions recipe from the README verbatim, or follow the pre-commit hook recipe below it.

When you're done

The dart-skills-lint-validation skill takes over from here for day-to-day use.

flutter की और Skills

adding-release-notes
flutter
उपयोगकर्ता-सामना करने वाले परिवर्तन विवरणों को DevTools रिलीज़ नोट्स में जोड़ता है। NEXT_RELEASE_NOTES.md फ़ाइल में सुधार, सुधार या नई सुविधाओं का दस्तावेज़ीकरण करते समय उपयोग करें।
official
dart-modern-features
flutter
आधुनिकीकरण के लिए उम्मीदवार खोजने हेतु:
official
genui-helper
flutter
यह कौशल genui रिपॉजिटरी के लिए विशिष्ट वर्कफ़्लो और सर्वोत्तम प्रथाएँ प्रदान करता है।
official
add-dart-lint-validation-rule
flutter
dart_skills_lint में एक नया सत्यापन नियम और CLI फ्लैग जोड़ने के निर्देश।
official
grill-with-docs
flutter
ग्रिलिंग सत्र जो आपकी योजना को मौजूदा डोमेन मॉडल के विरुद्ध चुनौती देता है, शब्दावली को स्पष्ट करता है, और दस्तावेज़ीकरण (CONTEXT.md, ADRs) को इनलाइन अपडेट करता है...
official
analyze-github-flake
flutter
फ्लटर/फ्लटर रिपॉजिटरी में फ्लेक गिटहब मुद्दों के विश्लेषण में विशेषज्ञता। तब उपयोग करें जब कोई उपयोगकर्ता फ्लटर के किसी विशिष्ट लिंक की अस्थिरता का विश्लेषण करना चाहता है…
official
flutter-cherry-pick
flutter
फ्लटर/फ्लटर रिपॉजिटरी के स्थिर या बीटा चैनल के लिए किसी मर्ज किए गए PR की औपचारिक चेरी-पिक कैसे करें। केवल फ्लटर/फ्लटर में लैंड किए गए पुल रिक्वेस्ट के लिए उपयोग करें। केवल…
official
rebuilding-flutter-tool
flutter
फ्लटर टूल और CLI को पुनर्निर्माण करता है। इसका उपयोग तब करें जब कोई उपयोगकर्ता फ्लटर टूल या CLI को संकलित, अद्यतन, पुनर्जीवित या पुनर्निर्माण करने के लिए कहे।
official