agentleFS
ambient-codeambient-code/platform/skills/scaffold/SKILL.md

scaffold

Skill131 starsChanged 6 months agoMITView on GitHub

Generate the complete file set for a new integration, endpoint, or feature flag following established project patterns. Use when adding a new integration (like Jira, CodeRabbit, Google Drive), creating a new API endpoint with full stack, or setting up a new feature flag. Triggers on: "new integration", "add an integration", "scaffold", "create endpoint", "add a new provider", "wire up a new service". Always includes a feature flag. Follows the Jira integration pattern.

49 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ascii-diagram, docs-ci and 10 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.
  • SethGammonSkill

    ascii-diagram

    Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.

    Also in 4 projects that use this

  • jh941213Skill

    docs-ci

    문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.

    Also in 3 projects that use this

  • jh941213Skill

    docs-interfaces

    API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.

    Also in 3 projects that use this

  • SethGammonSkill

    research-fleet

    Parallel research using Fleet wave mechanics. Spawns multiple scout agents, each investigating a different angle of the same question. Findings are compressed between waves. Produces a unified research brief from multiple independent perspectives.

    Also in 3 projects that use this

  • RachaelQuiselSkill

    client-docs

    Client documentation. Use when a build needs documentation updates or missing project documents need to be identified.

    Also in 3 projects that use this

  • vicoa-aiSkill

    live-preview

    Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Use when the user asks for a preview URL, public URL, shareable localhost, mobile/web preview, or tunnel setup.

    Also in 4 projects that use this

  • +4 more from jh941213

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 0

    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. Very specific:

    Run /unleash-flag with the flag name and follow its checklist.

    line 132

“Common” is measured: kept by at least 6 in 10 of the 42 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

Scaffold

Generate the complete file set for a new integration, endpoint, or feature flag.

Usage

/scaffold integration <name>    # Full integration scaffold
/scaffold endpoint <name>       # API endpoint scaffold
/scaffold feature-flag <name>   # Feature flag scaffold (delegates to /unleash-flag)

User Input

$ARGUMENTS

Parse the scaffold type and name from $ARGUMENTS. If ambiguous, ask the user.

Integration Scaffold

Based on the established integration pattern (Jira, CodeRabbit, Google Drive), generate the full file set.

Backend Files

FilePurposeTemplate
components/backend/handlers/{provider}_auth.goAuth handlers + K8s Secret CRUDFollow jira_auth.go pattern
components/backend/handlers/integration_validation.goAdd validation + test endpointAdd Validate{Provider} function
components/backend/handlers/integrations_status.goAdd to unified statusAdd provider to status aggregation
components/backend/handlers/runtime_credentials.goSession credential fetch with RBACAdd fetch{Provider}Credentials
components/backend/routes.goRegister endpointsAdd route group with auth middleware

Frontend Files

FilePurposeTemplate
components/frontend/src/components/integrations/{provider}-connection-card.tsxIntegration card UIFollow existing integration card (e.g., Jira)
components/frontend/src/services/api/{provider}-auth.tsAPI clientFollow existing auth service pattern
components/frontend/src/services/queries/use-{provider}.tsReact Query hooksFollow existing query hook pattern
components/frontend/src/app/api/auth/{provider}/route.tsNext.js proxy routeFollow existing auth proxy
components/frontend/src/components/integrations/IntegrationsClient.tsxAdd card importUpdate imports + render
components/frontend/src/components/integrations/integrations-panel.tsxAdd to panelUpdate panel

Note: Before scaffolding, verify the reference files exist by checking components/frontend/src/components/integrations/ and components/frontend/src/services/. File names may differ from examples above.

Runner Files

FilePurposeTemplate
components/runners/ambient-runner/src/auth.pyAdd fetch_{provider}_credentials()Follow fetch_jira_credentials pattern

Feature Flag

FilePurpose
components/manifests/base/core/flags.jsonAdd integration.{provider}.enabled

Checklist

After scaffolding, verify:

  • All backend handlers use GetK8sClientsForRequest for user operations
  • Credentials stored in K8s Secret with OwnerReferences
  • Frontend uses React Query hooks (no manual fetch)
  • Frontend uses Shadcn UI components
  • Feature flag gates the integration card
  • Tests mock the feature flag hook
  • Runner credential fetch is added to populate_runtime_credentials()

Endpoint Scaffold

For adding a new API endpoint with full-stack support.

Files to Create/Modify

LayerFileAction
Backend handlercomponents/backend/handlers/{resource}.goCreate
Backend routescomponents/backend/routes.goAdd routes
Backend typescomponents/backend/types/{resource}.goCreate if needed
Frontend APIcomponents/frontend/src/services/api/{resource}.tsCreate
Frontend queriescomponents/frontend/src/services/queries/{resource}.tsCreate
Frontend proxycomponents/frontend/src/app/api/{resource}/route.tsCreate

Backend Handler Template

func List{Resource}(c *gin.Context) {
    projectName := c.Param("projectName")

    reqK8s, reqDyn := GetK8sClientsForRequest(c)
    if reqK8s == nil || reqDyn == nil {
        c.JSON(http.StatusUnauthorized, gin.H{"error": "Invalid or missing token"})
        return
    }

    // RBAC check
    // List operation with reqDyn
    // Return response
}

Frontend Query Template

export function use{Resource}(projectName: string) {
  return useQuery({
    queryKey: ["{resource}", projectName],
    queryFn: () => {resource}Api.list(projectName),
  })
}

Feature Flag Scaffold

Delegates to the /unleash-flag skill for the full feature flag workflow.

Run /unleash-flag with the flag name and follow its checklist.

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.