基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Esri/arcgis-maps-sdk-flutter-samples --skill create-new-sample命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | create-new-sample |
| description | Scaffolds, implements, and validates a new Flutter sample based on existing designs. |
../common-samples/designs/.../flutter/arcgis_maps/doc/api/.lib/samples/<sample_name_snake_case>/README.mdAGENT_REPORT.md detailing execution statussample_name. If not provided, prompt the
user to input it. If necessary, convert it to TitleCase. If the input is
malformed, halt execution.design_directory exists. If not found, halt execution.sample_category or that
sample_category can be determined from the
implementation-details.md file in the design directory. If it cannot be
determined, halt execution.documentation_directory exists and contains API reference
files. If not found, halt execution.Execute the scaffolding script:
dart tool/generate_new_sample.dart "<sample_name>" "<sample_category>"
If the script returns a non-zero exit code, halt execution and report the console error.
Read the implementation-details.md file located within the provided design_directory.
Locate the corresponding Swift and Kotlin implementations by querying the repos defined in AGENTS.md.
Read only the core controller/view files from those cross-platform samples to identify the primary ArcGIS mapping classes and architectural patterns required.
Use the scaffolded Dart files as your foundation. If there are no interactive controls, remove the SafeArea widget from the scaffolded code. Use simple layouts and controls. Use styling inherited from the existing Theme.
API Reference Protocol: Do not attempt to ingest the entire
documentation_directory. Instead, cross-reference the specific ArcGIS
classes identified in Phase 3 by reading only their corresponding Dart
documentation files within ../flutter/arcgis_maps/doc/api/. Do not attempt
to read from the .pub-cache directory.
Translate the logic identified in Phase 3 into Dart/Flutter.
If a specific API file is missing, leave a
// TODO: Implement <Feature> - API doc missing comment in the Dart code and
continue.
The purpose of comments in this sample is to provide the reader a tutorial-style explanation of how the API is being used.
Add concise, imperative comments to each method and to each distinct block of code within a method.
Ensure all comments are sentences ending with a period.
Execute the initialization script to regenerate affected code:
dart tool/initialize.dart
If this fails, do not attempt to fix the generator script. Halt and report the failure.
Run flutter analyze against the newly created sample directory.
Circuit Breaker: Attempt to resolve any detected analysis issues. You are permitted a maximum of 3 iterative fix attempts. If issues persist after 3 attempts, cease fixing.
Provide a brief summary of each stage, including any errors encountered and how they were resolved.