Dart – Contentstack Utils

VerifiedSafe

Guide for editing Dart sources in Contentstack Utils: SDK constraints, lib layout, imports, analyzer, formatting, and dependencies.

Sby Skills Guide Bot
DevelopmentBeginner
10/30/2026
Claude CodeCursorCodex
#dart#code-style#dependencies#linting#package-layout

Recommended for

Automated summary

Dart conventions skill for the contentstack_utils package: SDK constraints, lib/src layout, import rules, analyzer, formatting and dependency policy.

Strengths

  • Gives concrete paths and naming rules (barrel lib/contentstack_utils.dart, PascalCase under lib/src/, snake_case for tests)
  • States the actual pre-PR commands such as dart format . and how analysis_options.yaml drives lints
  • Sets an explicit policy for runtime dependencies (path, html, logger, lint) with review required before adding new ones
  • Cross-references other skills (contentstack-utils, framework) and AGENTS.md for lockfile and CI impact

Limitations

  • Tightly scoped to the contentstack_utils repository, so it is not reusable as-is on another Dart or Flutter project
  • Contains no code snippets or test examples, only rules to apply
  • Relies on external references (skills/framework, AGENTS.md, and package:pedantic which is now deprecated) that may drift out of date
When to use it

Use it whenever you touch a .dart file, pubspec.yaml or analysis_options.yaml in the contentstack_utils package.

When not to use it

Skip it for a generic Dart project, Flutter work, or anything outside this package.

Security analysis

Safe
Quality score78/100

This is a pure documentation/instruction file describing Dart coding conventions for a specific package. It declares no tools and contains no executable commands, network access, obfuscated content, or instructions to exfiltrate data or disable safety mechanisms. The only operational guidance is benign developer workflow advice (run `dart format`, keep SDK constraints in sync).

No concerns found

How this analysis is made

Examples

Add a new helper
Add a new helper class under lib/src/helper/ in contentstack_utils, export it from the barrel and keep the naming conventions of the package.
Add a dependency
I need to add a new runtime dependency to pubspec.yaml in this Dart package — check the SDK constraint and tell me what else needs updating.
Fix lints before a PR
The analyzer is reporting lint errors from analysis_options.yaml in this Dart package — fix them and run the formatter before I open a PR.

name: dart description: Use when editing Dart sources — SDK constraints, lib layout, imports, analyzer, formatting, dependencies

Dart – Contentstack Utils (Dart)

When to use

  • Editing any *.dart file under lib/ or test/.
  • Changing pubspec.yaml dependency lists (coordinate with skills/framework/SKILL.md for lockfile and CI impact).
  • Fixing or discussing analysis_options.yaml behavior.

Instructions

Language and SDK

  • Honor environment.sdk in pubspec.yaml (>=2.12.0 <4.0.0). Do not require a newer SDK in code without updating the constraint deliberately.

Analyzer and formatting

  • Lints are driven by analysis_options.yaml (includes package:pedantic/analysis_options.yaml today — ensure the resolved package exists or fix the include with the team).
  • Run dart format . before PRs.

Package layout and naming

  • Barrel: lib/contentstack_utils.dart
  • Implementation: lib/src/ — helper/, model/, embedded/, constants/
  • Files: PascalCase.dart under lib/src/; test/*_test.dart use snake_case.

Imports

  • Prefer package:contentstack_utils/... in library code.
  • Tests may import the barrel plus package:contentstack_utils/src/... (e.g. Automate.dart) to exercise internals — follow existing tests.

Dependencies

  • Runtime: path, html, logger, lint — keep the package lean; no new packages without review.
  • Typing: JSON is often Map / dynamic; improve safety incrementally and match patterns in lib/src/helper/Automate.dart and lib/src/model/Option.dart.

References

  • skills/contentstack-utils/SKILL.md — public API behavior
  • skills/framework/SKILL.md — lockfile, CI, analyzer policy changes
  • AGENTS.md — command quick reference

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/dart-contentstack-utils-mvda8814/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/dart-contentstack-utils-mvda8814' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/dart-contentstack-utils-mvda8814/download' --output '.skill-downloads/dart-contentstack-utils-mvda8814/SKILL.md.part' && mv '.skill-downloads/dart-contentstack-utils-mvda8814/SKILL.md.part' '.skill-downloads/dart-contentstack-utils-mvda8814/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Original excerpt: Dependencies
  • Runtime: path, html, logger, lint — keep the package lean; no new packages without review.
  • Typing: JSON is often Map / dynamic; improve safety incrementally and match patterns in lib/src/helper/Automate.dart and lib/src/model/Option.dart.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/dart-contentstack-utils-mvda8814/SKILL.md' && test -s '.skill-downloads/dart-contentstack-utils-mvda8814/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/dart' && cp -R '.skill-downloads/dart-contentstack-utils-mvda8814' '.claude/skills/dart'

Cursor
test -f '.skill-downloads/dart-contentstack-utils-mvda8814/SKILL.md' && test -s '.skill-downloads/dart-contentstack-utils-mvda8814/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/dart' && cp -R '.skill-downloads/dart-contentstack-utils-mvda8814' '.cursor/skills/dart'

Codex
test -f '.skill-downloads/dart-contentstack-utils-mvda8814/SKILL.md' && test -s '.skill-downloads/dart-contentstack-utils-mvda8814/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/dart' && cp -R '.skill-downloads/dart-contentstack-utils-mvda8814' '.agents/skills/dart'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/dart-contentstack-utils-mvda8814'

openskills read 'dart-contentstack-utils-mvda8814'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/dart-contentstack-utils-mvda8814/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills