build

build is a command for Claude Code from ncssm-robotics/ftc-claude. It costs 0 tokens per session (1,094 once invoked), scanned A, original, MIT.

A command for compiling FIRST Tech Challenge robot code with Gradle, the build system used to assemble Android-based robot software. It supports standard, clean, dependency-refresh, and release builds.

In plain words
What is it for?
Use it to build FTC projects, refresh dependencies, create a clean build, or produce a release variant.
Why use it?
It catches compilation errors and dependency problems before code is installed on a robot. Clean and dependency-refresh options help resolve stale build files or missing libraries.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/you/Documents.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build

README.md
[![agentmods](https://agentmods.dev/badge/commands/ncssm-robotics/ftc-claude/build.svg)](https://agentmods.dev/commands/ncssm-robotics/ftc-claude/build)
Your own site
<a href="https://agentmods.dev/commands/ncssm-robotics/ftc-claude/build"><img src="https://agentmods.dev/badge/commands/ncssm-robotics/ftc-claude/build.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,094 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01094
Opus 5 $0.00000 $0.00547
Sonnet 5 $0.00000 $0.00219
Haiku 4.5 $0.00000 $0.00109

Measured 6d ago against content hash 63be5087533c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

build scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/robot-dev/commands/build.md · 206 lines

How it starts

The opening of the file, as written. The whole thing — 206 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build Command

Compiles your FTC robot code using Gradle.

Usage

/build           # Standard build (auto-syncs if needed)
/build --clean   # Clean build (fixes stale cache issues)
/build --sync    # Force dependency sync before building
/build --release # Build release variant (rarely needed)

Arguments

Argument Description
--clean Run clean before building (fixes stale cache issues)
--sync Force refresh dependencies before building
--release Build release variant instead of debug

Process

When this command runs:

  1. Find project root:

    • Look for build.gradle with FTC SDK dependency
    • Look for TeamCode/ directory
  2. Check Gradle wrapper:

    ls gradlew  # or gradlew.bat on Windows
    

    If not executable (Unix):

    chmod +x gradlew
    
  3. Run build:

    Standard build (auto-syncs missing dependencies):

    ./gradlew assembleDebug
    

    With --clean:

    ./gradlew clean assembleDebug
    

    With --sync (force dependency refresh):

    ./gradlew --refresh-dependencies assembleDebug
    

    Combined --clean --sync:

    ./gradlew clean --refresh-dependencies assembleDebug
    
  4. Auto-detect sync needed:

    • If build fails with dependency errors, suggest --sync
    • If build.gradle was recently modified, offer to sync
  5. Parse output:

    • Look for errors and warnings
    • Extract file:line information
    • Provide helpful suggestions

Expected Output (Success)

Building robot code...

  Compiling TeamCode...
  ✓ Build successful (14.2s)

  Output: TeamCode/build/outputs/apk/debug/TeamCode-debug.apk

  Next: /deploy to upload to robot

Error Handling

Compilation Error

Building robot code...

  ✗ Build failed

  Error in TeleOpMode.java:45
  ┌─────────────────────────────────────────────
  │ 43:     public void init() {
  │ 44:         motor = hardwareMap.get(DcMotor.class, "motor");
  │ 45:         motor.setPower(speed);
  │                           ^^^^^
  │ 46:     }
  └─────────────────────────────────────────────
  Cannot find symbol: variable 'speed'

  Suggestions:
  - Did you mean to define 'speed' as a variable?
  - Or use a literal value like motor.setPower(0.5)?

Read the full file on GitHub · 206 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 206 lines · 0 tokens per session scan A 63be5087533c

Subscribe to this mod's changes

build is a command published in the GitHub repository ncssm-robotics/ftc-claude (4 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,094 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.