agentleFS
swyxioswyxio/skills/forge/SKILL.md

forge

Skill171 starsChanged 8 months agoMITView on GitHub

Operate or diagnose SmolForge repositories and Forge Deploy/Sites when the task requires Forge-specific CLI, authentication, manifest, or release behavior on forge.smol.ai or *.sites.smol.ai. Do not use for generic Git or Cloudflare work, public-page review, product strategy or analytics, or ordinary code changes that do not interact with Forge-hosted state.

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use forge-docs, forge-review and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • weselbenSkill

    forge-docs

    Load before code changes, before writing docs or an ADR, when a user question exposes a missing how-to, and when closing a chunk of work; also loaded by forge after each squash-merge and by deep-research after a report.

    Also in 3 projects that use this

  • tonmoy007Skill

    forge-review

    Run a multi-dimensional parallel code review over the current change.

    Also in 3 projects that use this

  • yike-gunshiSkill

    forge-ship

    发布上线:PR only(建 PR 即停)或 Full ship(合并 PR + 同步本地基础分支);测试失败不发布、不 force push,状态汇报严格区分提交/推送/合并/部署。 触发方式:用户说"ship"、"发布"、"合并上线"、"发 PR"。

    Also in 3 projects that use this

  • WordPressSkill

    blueprint

    Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing steps/resources, and debugging Blueprint files. For only running or sharing a Playground environment, use wp-playground.

    Also in 3 projects that use this

  • AnthropicSkill

    brief

    Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.

    Also in 3 projects that use this

  • OpenAISkill

    audit

    Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 44 edited versions we read keep these.

  • 7

    Distinctive

    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. Distinctive:

    Repository operation: use ordinary Git plus Forge authentication.

    line 23
  2. Distinctive:

    Customer application deployment: use Forge Deploy and its release ledger.

    line 24
  3. Distinctive:

    Forge infrastructure repair: use the smallest healthy release path.

    line 25
  4. Distinctive:

    Source-only, CLI, documentation, analysis, or UI work: do not add production release gates unless the user also requested a deployment.

    line 27
  5. Very specific:

    Keep credential.useHttpPath enabled.

    line 64
  6. Distinctive:

    Use Forge Deploy for customer applications.

    line 102
  7. Distinctive:

    Before retrying a blocked release, identify the last proven state and targeted diagnostic.

    line 114
  8. Distinctive:

    Use the Forge source map to load only the first-party document that owns the current question.

    line 121

“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “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

Forge

Forge has two surfaces over Cloudflare:

  • Repositories: Git hosting, issues, pull requests, Actions, transcripts, and repository agents.
  • Deploy / Sites: an exact pushed SHA becomes a preview and can later become the production application.

Cloudflare remains the runtime/provider. Do not substitute another Git or hosting product when Forge is the requested destination, and do not assume a hosted app inherits Forge or Cloudflare Access authentication.

Keep the task scoped

Classify the requested outcome before loading more process:

  • Repository operation: use ordinary Git plus Forge authentication.
  • Customer application deployment: use Forge Deploy and its release ledger.
  • Forge infrastructure repair: use the smallest healthy release path; the control plane being repaired need not deploy its own fix.
  • Source-only, CLI, documentation, analysis, or UI work: do not add production release gates unless the user also requested a deployment.

Thread-local holds and unrelated releases are not global prerequisites. Apply only the checks that mitigate a concrete risk in the requested action, and stop when that outcome is proven. Record unrelated findings as follow-ups.

Resolve current behavior

Forge is evolving. Use the installed CLI, target repository, current UI/API, and only the relevant first-party source routed by the Forge source map. Documentation does not prove current account eligibility, limits, or release state.

Inspect syntax before constructing commands:

sf help
sf commands --json
sf schema --json
sf <command> --help

Identify the account, repository, default branch, and, for Deploy, project root. Preserve an existing GitHub remote unless the user asks to replace it.

Repository authentication

A signed-in Forge browser is not a local Git credential. Use Forge's scoped credential flow without exposing its token:

sf auth status
sf auth git-credential <owner>/<repo>
git ls-remote <forge-remote> HEAD

Keep credential.useHttpPath enabled. Never extract tokens from browser storage or another application's keychain, or put them in remotes, source, shell history, or output. Do not force-push, replace origin, change visibility, or broaden credential scopes without the required authorization.

For GitHub migration, use Forge's current import flow. Preserve the package manager and handle Git LFS separately; importing history does not copy hosted LFS objects.

Forge Deploy contract

Forge releases an exact pushed SHA, not the local checkout. Source, build, preview, provider publication, production activation, and live verification are distinct states.

Each project needs a data-only forgeBuild.ts v1 in its configured root. Read the current manifest source from the source map, then validate:

npx smolforge deploy check
  • Omitting build runs no repository build command.
  • forgeBuild.ts is statically evaluated; do not use executable configuration, dynamic imports, or forge.yml/forge.yaml.
  • An app needs an HTTP entrypoint, assets, or both. Use an SPA fallback only for browser-side routing.
  • .forge/config.json can map projects and propose bindings; it does not create projects, apply provider state, or grant DNS authority.
  • Imported Wrangler bindings can expose production resources to previews.

Creating or enabling a project, accepting service terms, promotion, rollback, disablement, routes, and provider apply are separate external state changes. Preview URLs are unlisted and noindex, not private; never put secrets or private data in them.

Release and recovery

Use Forge Deploy for customer applications. For Forge infrastructure, prefer the canonical lane while it is healthy and proportionate. Direct Wrangler is an authorized operator path when that lane is unavailable, unhealthy, implicated in the incident, or materially obstructs the bounded repair; it is not a shortcut around a customer application's release ledger.

For a direct infrastructure repair, scope one exact component, record the source SHA, current and rollback versions, and any migration or binding change, then check traffic, health/dependencies, and one reproduction. Do not require unrelated previews, portfolio reconciliation, exhaustive proof, or coordination with tasks that cannot mutate the same component or schema.

Before retrying a blocked release, identify the last proven state and targeted diagnostic. Check the exact SHA, project root, branch, and effective build/asset settings. Retry only when the immutable target and idempotency conditions are clear.

References

Use the Forge source map to load only the first-party document that owns the current question.

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.