DEV Community

Fernando Paladini for TechLeads.club

Posted on

Stop Guessing: Give Your AI Coding Agent a Spec-Driven Workflow

Stop Guessing: Give Your AI Coding Agent a Spec-Driven Workflow

Your coding agent can write a feature quickly. But what happens when the request leaves a product decision open, or when a passing test does not actually prove the requirement? You can end up reviewing a polished implementation of the wrong thing.

The Tech Leads Club Agent Skills catalog includes tlc-spec-driven, a skill that helps an AI coding agent turn a feature request into requirements, a plan, implementation tasks, and evidence. The depth adapts to the size of the work. For larger changes, it introduces explicit approval points and verification rather than relying on the agent's memory alone.

Here is how to install it and try it on a realistic feature.

Before you start

You need Node.js and npm so that npx is available, an AI coding agent supported by the catalog, Python for the skill's validation scripts, and a project you can safely experiment in. Check the supported agents and installation instructions for your environment.

Use a test repository or a dedicated branch for your first session. The workflow can create files and commits, so review your workspace and your agent's permissions before asking it to implement anything. Never put real customer information or credentials in the example request.

Install the skill

From a terminal, use the command shown on the skill's official page:

npx @tech-leads-club/agent-skills install --skill tlc-spec-driven
Enter fullscreen mode Exit fullscreen mode

Follow the installer's prompts to select your agent and the appropriate scope. A project installation keeps the skill with the project; a global installation makes it available to the selected agent more broadly. The installer's available options can change, so follow the current prompts rather than assuming a particular directory.

If you prefer browsing first, the catalog also documents the interactive installer:

npx @tech-leads-club/agent-skills
Enter fullscreen mode Exit fullscreen mode

Select the install action, find tlc-spec-driven, and choose your agent. Restart or refresh the agent session if it does not discover newly installed skills. Check your agent's skill list or installed skill directory to confirm it can see the skill. Installation alone does not change your application.

Try a concrete feature request

Imagine a web application where members can manage their subscription. You want the billing page to explain what happens when a payment fails. Open your project in the supported agent and start with a request like this:

Use tlc-spec-driven to specify a feature for failed subscription payments.

When a charge fails, suspend paid access and show the member a clear
explanation on the billing page. Ask me about any product decisions you
need before approving the specification. Do not implement yet.
Enter fullscreen mode Exit fullscreen mode

This is a starting point, not a complete product policy. The agent may need to ask whether access is suspended immediately, how a successful retry restores it, and what information the user should see. Answer based on your own product rules rather than accepting guesses. If a question does not apply, explain why.

The skill sizes the change and adjusts the amount of process to the work. Its documented workflow describes a specification and approval before implementation, with design and task artifacts when the work calls for them. Look under .specs/features/ for the feature's files and review the proposed requirements before approving. The exact artifacts and questions depend on the selected scope and current version.

Review the spec as a user, not just as a developer

Ask yourself whether each requirement describes an observable outcome. For the billing example, useful questions include:

  • What does the member see after the payment fails?
  • Which paid actions become unavailable, and when?
  • What event restores access after a successful payment?
  • What happens if the payment provider sends the same event twice?
  • Which details should never appear in a user-facing error?

These are prompts for your product discussion, not built-in payment rules. The point is to make decisions explicit before code makes them for you. Review the scope, assumptions, and acceptance criteria; ask for corrections when the document does not represent your intent.

Once you approve the spec, ask the agent to continue with the appropriate design and tasks. The skill's documentation describes deterministic validation scripts and a per-task gate for work that uses its task workflow. If a gate fails, read the error and fix the underlying issue rather than asking the agent to skip it.

Implement, then inspect the evidence

After reviewing and approving the proposed work, ask the agent to execute the approved tasks. Keep the change in your test branch and inspect each commit and its associated checks. For example, you can review the working tree and recent history with:

git status --short
git log --oneline -5
Enter fullscreen mode Exit fullscreen mode

The documented workflow uses checks linked to acceptance criteria and an independent verifier to evaluate whether tests actually prove the requirements. For applicable work, it also records proof output. These steps make review easier, but they do not replace your judgment: inspect the test cases, confirm edge cases against your real product rules, and run the project's own relevant checks.

The skill page says pushing or deploying requires a separate approval. Treat that as a useful boundary: a local commit is not a deployed feature.

Where this helps in daily work

Use the skill when the cost of an implicit assumption is high: billing changes, permission rules, data retention, or features with several interacting screens. It is also useful when you will hand a feature to another developer and want the requirements and checks to survive the current chat.

For a tiny, obvious change, the skill can scale down its process. For a standalone architecture decision or a pure technical design document, the catalog recommends choosing a more appropriate skill instead. Review the skill page for current scope and alternatives.

Troubleshooting

The agent does not recognize the skill. Confirm you selected the right agent and installation scope, then start a fresh session. Inspect the installer's output for errors.

The agent asks questions I did not expect. That can be a useful signal that the requested behavior is underspecified. Answer them, or mark an area not applicable with a reason.

A validation script fails. Read its output and compare the relevant artifact with the current skill documentation. The skill is a workflow aid, not a guarantee that every project command or environment is configured correctly.

Does this guarantee correct software? No. A spec, checks, and review provide evidence and a way to find gaps; they cannot guarantee that every requirement or risk has been identified.

Takeaway

Install tlc-spec-driven, give your agent a bounded feature, and review the decisions and evidence before shipping. The payoff is not more documents for their own sake. It is a shared, reviewable path from the problem you described to the behavior you intended.

What feature in your current project would benefit most from a clearer specification before the next line of code is written?

Disclosure: This tutorial was prepared with AI assistance and checked against the linked project documentation.

Top comments (0)