Commands, Skills, and Workflows for Intelligent Coding Agents
Intelligent coding agents are moving from chat-based coding to orchestrated, reusable, batchable engineering. This article explains how commands, subagents, skills, and programmatic tool calling differ, when to use each, and how to land them in real repos and CI without extra product claims.
Intelligent coding agents are pushing “write code in a chat” toward an engineering shape that is orchestrable, reusable, and batchable. Terminal interaction, headless batch runs, and wrapping the same capabilities in an internal SDK all reduce friction around model calls so those capabilities can enter real repositories and continuous integration. Developers are rarely unsure whether a model can write code. They are unsure what preset prompts, subagents, skill packs, and programmatic tool calls each solve, and at which boundaries to use them. Splitting those concepts makes technical decisions reproducible.
Product shapes: one capability set, three ways into the workflow
From an engineering view, intelligent coding agents typically appear in three forms. An interactive terminal uses relatively controllable resources and fits exploratory changes, code review, and multi-turn clarification. Headless mode targets scripts and pipelines: bulk refactors, overnight inspections, generating change notes. A capability SDK embeds the same orchestration into an internal platform so every product line does not rebuild a “conversation loop.” All three share the same abstractions: task description, tool permissions, context window, and how results are written back to the repo. The selection criterion is not the UI. It is whether a human must stay in the loop, whether runs can be idempotent, and whether failures are observable.
Commands: freeze frequent intent as a callable entry
A command is a shortcut prompt with metadata. It is usually a Markdown file in the repo or a user directory. Front matter declares name, purpose, and when to trigger; the body is a stable task brief. It does not own multi-step planning and does not replace tool execution. It turns the team’s repeated wording into a discoverable, versioned entry point.
Typical uses: generating or maintaining API docs and change notes, committing in a standard format, pre-release checklists, injecting fixed review dimensions into a session. The value is less prompt drift: the same command means the same thing across people and sessions. Extension is straightforward: add a file, write a clear description, put constraints in the body. The description field decides when the agent will pick the command, so write what it does, what it does not do, and the output format—not slogans.
The boundary is also clear. Once a task needs multi-tool coordination, mid-course decisions, and retries, a static prompt bloats and becomes hard to test. Drop down to a skill or a subagent instead of stuffing more process into the command.
Subagents: parallel workers with isolated context and permissions
A subagent is a worker with its own context and a tool allowlist. The main agent decomposes the task and merges results; subagents retrieve, test, or locally refactor inside a restricted scope. Isolation yields three gains: the main session is not polluted by long logs; filesystem or command execution can be opened at least privilege; independent subtasks can run in parallel.
Good fits: module-level search in a large repo, running tests on a change and summarizing failures, read-only audit of security-sensitive paths. Poor fits: tightly coupled interactive design—if the user is still clarifying requirements, forking too early amplifies misunderstanding. Design for a clear I/O contract, timeouts and failures that propagate back, and no implicit privilege expansion. Treat a subagent as a schedulable function, not another chat window.
Skills: package domain processes as composable capabilities
A skill sits between a command and a full agent. It typically packs prompt strategy, checklists, optional scripts, or tool conventions for a repeatable professional job: API contract maintenance, migration checks, performance-profiling steps. Versus a command, a skill emphasizes how to finish a class of work. Versus a subagent, it need not be a separate process, but the main agent must be able to load it on demand.
Decide to extract a skill if it is reused across repos, has a clear quality bar, and must version as norms evolve. The body should include trigger conditions, inputs, prohibitions, and acceptance criteria. A skill without acceptance criteria becomes an untestable long prompt. For a team, skills make expert implicit knowledge explicit; review skill files like code—boundaries and side effects included.
Programmatic tool calling: from natural-language orders to structured orchestration
Programmatic tool calling means the model does not only say “please run this tool” in natural language; it emits a parseable call plan: tool names, arguments, dependency order, conditional branches. The pain it addresses is that many tool round-trips waste context, and intermediate results are hard for later steps to consume precisely.
Whether it improves both code quality and efficiency depends on three things. First, tool schemas must be stable and arguments validatable, or the plan itself fails. Second, tests, static checks, and diff review must be mandatory nodes, not only patch generation. Third, side-effecting tools (writes, applying changes) need confirmation or a sandbox. Under those conditions, programmatic calls cut back-and-forth explanation and make batching more reliable; without validation they only amplify bad operations faster. In practice, write a fixed plan–execute–verify loop; on verification failure, replan locally rather than restating the whole task.
A structured call might list files to change, then a patch intent per file, then a unified test command whose exit code is parsed. The plan uses structured fields; the execution layer actually invokes tools; the model only revises the plan. That split is easier to audit than scattering commands through a chat.
Design philosophy: efficiency from constraints, not longer chats
Agent efficiency rarely comes from generating more code in one shot. It comes from cutting invisible cost: inconsistent prompts, context pollution, overly broad permissions, unverifiable results. Commands lower start cost; skills lower variance in specialist workflows; subagents lower parallelism and isolation cost; programmatic calls lower orchestration cost. Stacking them assumes the repo builds, tests run, and norms can be cited. Without that, agents only produce unmergeable changes faster.
Stratify daily work by risk. Low risk: docs, comments, test fill-in—trigger with a command. Medium risk: local refactor—load the matching skill and force tests. High risk: cross-module behavior change—main agent decomposes, subagents verify in parallel, humans confirm writes. Headless terminal mode can hang medium- and low-risk work on commit hooks or overnight jobs, but needs logs and rollback. Treat “the agent takes over daily development” as taking over verifiable mechanical labor, not architecture decisions.
Landing advice: start with one command file, not a platform bake-off
A practical path: write the team’s three most frequent tasks as commands (for example change notes, review checklist, API doc sync); promote one with fixed steps to a skill with acceptance criteria; introduce read-only subagents for scan-style work; only then turn a stable plan into programmatic calls in the pipeline. Version everything as ordinary files, keep descriptions portable, and avoid internal jargon as if it were a proprietary API name.
If network or compliance blocks a given interactive environment, look for a close, vendor-neutral substitute: the same command and skill files, scriptable headless execution, and object storage or logging to archive runs. Flexibility comes from file protocols and permission models, not a UI skin. For cloud R&D, running headless jobs on a container platform, retaining traces in logs, and alerting on failure rates is closer to the engineering core than arguing product nouns.
Conclusion
Commands are entry points, skills are domain processes, subagents are isolated execution, and programmatic tool calling is auditable orchestration. With that layering, intelligent coding agents can move from demos to maintainable R&D infrastructure. Put constraints in files, verification in the plan, and permissions on an allowlist, and both quality and efficiency become visible.
