agentleFS
xialangji-debugxialangji-debug/codex-skills-agentmd-obsidian/skills/asr3602-local-build-flash/SKILL.md

asr3602-local-build-flash

Skill3 starsChanged 2 months agoMITView on GitHub

Build a normal local ASR360x firmware package, flash an existing verified package, or perform one build/flash/current-session CATStudio capture chain. Use for 出固件, 编译固件, 编译一个包, 刷固件, 刷到串口机器, 本地编译刷机, or 编译刷机抓日志. Do not use for releases, FOTA, uploads, or DumpTest.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the exact verified normal-test build profile.

    line 27
  2. Distinctive:

    Do not flash once and call CATStudio capture a second time.

    line 52
  3. Distinctive:

    Read flash and capture only for this composite mode's evidence contract.

    line 54
  4. Very specific:

    Do not update yl.h, create release folders/readmes, upload, or publish.

    line 59
  5. Distinctive:

    Do not remove watchdog configuration or select/build a Dump package.

    line 61
  6. Distinctive:

    Do not guess build parameters from a repository name.

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ASR360x Local Build And Flash

The controller restores/prepares the registered branch profile internally. Reuse its result; do not run another full onboarding step or require navigation Markdown before this operation.

Select one mode and load only its required context.

RequestModeRequired context
出固件 / 编译一个包Build onlyBuild profile; no device or CATStudio
刷这个包Flash existingPackage manifest/hash plus physical device
编译并刷机Build and flashBuild profile plus physical device
编译刷机抓日志Flash and captureBuild/flash receipt plus current CATStudio session

Build Only Fast Path

Reuse the task snapshot and invoke the controller once with -NoFlash:

powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\asr3602-local-build-flash\scripts\local_build_flash.ps1" -Repo . -BuildCommand "<project-confirmed command>" -NoFlash

Use the exact verified normal-test build profile. Do not read device context, probe USB/COM, open CATStudio, or run a second artifact search. Consume the controller's package path, SHA256, manifest, and build result.

Flash Existing Or Build And Flash

For an existing package:

powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.codex\skills\asr3602-local-build-flash\scripts\local_build_flash.ps1" -Repo . -NoBuild -Package "<firmware.zip>" -Port <confirmed-port>

For build and flash, omit -NoBuild/-NoFlash and pass the exact build command. Immediately before flashing, let the controller revalidate the profile, package hash, chip compatibility, and physical USB identity. Do not perform a separate flash or reselect the newest ZIP outside the controller.

Reject package names containing source, dump, or acceptance. A COM port is transport metadata, not device identity; do not use Bluetooth serial ports.

Flash And Capture

Enter this mode only when the user explicitly asks for both flashing and current log capture. Build once with -NoFlash -CleanTargetOutput -RequireFreshPackage, then pass that exact package path and SHA256 to the combined flash/capture owner. Do not flash once and call CATStudio capture a second time.

Read flash and capture only for this composite mode's evidence contract.

Boundaries

  • Do not update yl.h, create release folders/readmes, upload, or publish. Route formal release and FOTA to their owners.
  • Do not remove watchdog configuration or select/build a Dump package. Route DumpTest to the current project's dump owner.
  • Preserve unrelated local changes. Dirty files may affect reproducibility but do not authorize staging, cleanup, or discard.
  • Do not guess build parameters from a repository name. If the verified profile and user-supplied command disagree, stop with the exact mismatch.
  • Build/package, flash, current-session capture, business evidence, and device/QA acceptance are separate results.

Report only the selected mode's command/result, exact package and SHA256, flash target/result when applicable, capture result when applicable, and relevant dirty state. Do not print unused-mode fields.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.