agentleFS
coding-by-fengcoding-by-feng/ai-agent-session-center/.agents/skills/electron-build/SKILL.md

electron-build

Skill83 starsChanged 4 months agoMITView on GitHub

Build and verify this repository's Electron distributables. Use when the user invokes $electron-build or asks to build, rebuild, package, or troubleshoot the macOS Electron app, DMG, or ZIP without publishing a release.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Run npm run electron:build and stream the output.

    line 17
  2. Distinctive:

    If the build fails, diagnose the first actionable error.

    line 18
  3. Distinctive:

    Verify that these non-empty artifacts exist for the package version:

    line 23
  4. Distinctive:

    Do not treat an exit code of zero as sufficient if either expected artifact is missing or empty.

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Build Electron Distributables

Build the Electron app from the repository root and verify the versioned macOS artifacts. Do not commit, push, tag, or publish as part of this skill.

Workflow

  1. Resolve the Git root and read the applicable AGENTS.md and CLAUDE.md.
  2. Inspect git status --short and preserve every unrelated local change.
  3. Confirm package.json defines electron:build and read its current version.
  4. Run npm run electron:build and stream the output.
  5. If the build fails, diagnose the first actionable error. Apply only a narrow, in-scope fix that does not overwrite existing work, then rerun the smallest relevant check before retrying the build. Report the blocker instead when a safe fix needs user direction, credentials, signing access, or a broader behavior change.
  6. Verify that these non-empty artifacts exist for the package version:
    • dist/AI Agent Session Center-<version>-arm64.dmg
    • dist/AI Agent Session Center-<version>-arm64-mac.zip
  7. Report success or failure, artifact paths and sizes, and any source changes made while resolving a build failure. Include SHA-256 checksums when the artifacts may be handed off or uploaded.

Do not treat an exit code of zero as sufficient if either expected artifact is missing or empty.

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.