Note from production
A practical AI coding workflow with Codex, Claude Code, and reusable skills
How reusable skills, repository guidance, specialized agents, and review gates make AI-assisted engineering repeatable rather than improvisational.
The fastest way to get inconsistent work from an AI coding agent is to explain the same process differently every time.
One session remembers the release checklist. Another misses the accessibility review. A third rewrites a component without understanding the repository boundary. The model may be capable, but the operating system around it is improvised.
I use Codex and Claude Code for real engineering work. The largest improvement has not come from finding a perfect prompt. It has come from separating durable rules, reusable workflows, live tools, independent reviewers, and approval gates.
Four layers of context
I find it useful to separate AI-assisted engineering context into four layers.
1. Repository guidance
This is what the agent should know whenever it works in the codebase: how the project is structured, which commands verify a change, where contracts live, what must never be committed, and which actions require approval.
Codex uses AGENTS.md files for repository guidance. Claude Code uses CLAUDE.md and scoped rules for a similar purpose. These files are valuable because the constraints live beside the code and can be reviewed like any other engineering decision.
2. Reusable skills
A skill is a procedure, not a personality. It can contain instructions, checklists, references, scripts, templates, and rules for when the workflow applies.
Examples from my own work include:
- reviewing a web interface for accessibility and interaction problems;
- rendering and visually checking a PDF instead of trusting extracted text;
- inspecting a production incident using a fixed evidence hierarchy;
- auditing a site for search intent, metadata, structured data, and crawl risks;
- building a document from a controlled template and verifying its final layout.
OpenAI calls skills the authoring format for reusable workflows in its Codex skills guide. Claude Code similarly documents skills as SKILL.md-based capabilities with optional supporting files in its skills documentation.
The practical benefit is consistency. A workflow can improve after every mistake without making the global repository instructions longer and noisier.
3. Tools and live systems
Instructions tell an agent how to work. Tools let it observe or act.
Depending on the task, that can include a browser, a code graph, logs, cloud documentation, issue trackers, analytics, or a deployment platform. MCP and other connectors can expose those systems with bounded operations. A skill can then describe the safe and useful way to combine them.
The distinction matters. Giving an agent a deployment tool does not teach it when deployment is appropriate. A workflow needs both capability and policy.
4. Specialized agents
Some investigations benefit from isolated reviewers. A frontend reviewer, an enterprise buyer, a security skeptic, and an SEO auditor should not all receive the same generic prompt. They should inspect the same artifact through different success criteria.
I use specialized agents when the work is independent enough to parallelize or when a large investigation would pollute the main decision context. Claude Code’s guide to parallel agents describes the same tradeoff between subagents, independent sessions, teams, and isolated worktrees.
The workflow I actually trust
A repeatable AI-assisted change usually follows this sequence.
Define the outcome and authority
State what must become true, what is out of scope, what evidence is available, and which external actions are not authorized. “Improve the page” is weak. “Clarify the contact flow without changing the visual system, test it locally at two widths, and do not deploy” is actionable.
Inspect before proposing
The agent reads the current instructions, repository state, relevant implementation, and runtime behavior. It should not rely on an old summary when the code is cheap to verify.
Separate investigation from synthesis
Use additional reviewers for bounded questions: accessibility, production risk, buyer trust, or SEO. Ask them for findings and evidence, not for competing rewrites of the same files.
Change the smallest coherent surface
A good agent can make many changes. That is not the same as making the right change. I prefer one coherent slice with visible boundaries over a broad modernization pass hidden inside a small request.
Run explicit review gates
The gate depends on the system, but a strong default includes:
- Build, type, and lint checks.
- Targeted tests plus relevant regression coverage.
- Contract, data, security, and privacy review.
- Browser or device verification where users experience the change.
- Diff inspection for accidental scope and generated artifacts.
- A separate decision to commit, publish, or deploy.
The last gate is important. Local completion and external publication are different states.
Where this helps architecture work
This operating model is useful beyond coding. In an Architecture Decision Sprint, agents can map a repository, research primary documentation, test alternatives, and challenge assumptions while the decision remains anchored in product constraints and implementation capacity.
In a Production Systems Review, they can trace a workflow across services, compare code with runtime evidence, classify failure modes, and help build a prioritized sequence. The architect still owns the evidence standard, tradeoffs, and recommendation.
That is also why I prefer publishing anonymized case evidence over a list of AI tool badges. A buyer needs to see whether the method leads to clearer decisions and more reliable systems.
Skills are small pieces of organizational memory
The most valuable skill is not the cleverest one. It is the one that captures a hard-won procedure clearly enough to be reused and improved.
That might be a checklist that prevents an unsafe deploy, a browser test that catches a broken contact flow, or a review rubric that forces an architecture recommendation to cite evidence. Over time, these skills turn individual experience into a working system.
AI can increase output faster than it increases trust. Repository guidance, reusable skills, narrow tools, independent reviewers, and explicit gates are how I close that gap.
Related: How I use AI agents without outsourcing engineering judgment focuses on evidence, architecture decisions, and the parts that remain explicitly human.