Mohsin IqbalProduct-minded Full-Stack Engineer
60-second view
← Back to notesField note 02 · Engineering with AI

I'd Bet on My Ability to Use AI.

Not because AI can write code for me, but because I've learned how to build an accountable engineering system around it.

12 min read

If I had to bet on one skill for my future as a software engineer, I would not bet on a programming language, a framework, or even coding in isolation. I would bet on my ability to use AI well.

That does not mean writing a clever prompt, accepting generated code, and moving to the next task. It means building a system in which AI can help investigate a problem, understand a codebase, propose a change, verify the result, and preserve useful lessons for the next piece of work.

The advantage is not one model or tool. It is the workflow connecting the work around the code.

The problem is not always the AI

When an AI result misses an edge case, misunderstands a requirement, or produces something unsuitable for production, it is tempting to say that the model failed. Sometimes that is true. But there is another question worth asking: what did the engineer do to make a correct result likely?

Was enough context available? Were the boundaries clear? Did the workflow investigate the existing implementation before changing it? Did anyone test the behavior and review the diff critically? Or did we expect a good outcome simply because we asked for one?

AI can produce an unwanted result. The engineer is responsible for recognizing it, correcting it, and establishing whether the final result meets the requirement.

I do not want AI to work faster in a vacuum. I want the whole engineering process to work better.

Start with the environment, not the prompt

A useful AI workflow has different layers with different responsibilities. Project instructions explain how to work in a particular codebase. Reusable skills encode repeatable procedures. Connected tools provide authorized access to relevant context. Deterministic checks verify specific conditions. Permission rules limit consequential actions. A workspace retains information that should outlive one conversation.

These layers are not interchangeable. A prompt can request that code follows a convention. A project instruction makes that convention available consistently. A test can check a known behavior. A permission rule can prevent an action the agent should not take. Good workflows make those distinctions visible.

The accountable AI workflow
  1. 01Instructions and boundaries

    Make project conventions, allowed actions, and stopping conditions explicit before work begins.

  2. 02Context and investigation

    Gather ticket details, relevant code, tests, prior decisions, and known issues through authorized sources.

  3. 03Plan and implementation

    Propose a reviewable plan, then make focused changes that fit the existing architecture.

  4. 04Verification and review

    Run checks, test the relevant behavior, inspect the diff, and investigate failures rather than hiding them.

  5. 05Learning and reuse

    Record durable lessons, validated procedures, and useful evidence for the next related task.

Give important knowledge somewhere to live

Conversation history is useful, but I do not want an engineering workflow to depend on whether a model remembers something from an earlier chat. Important knowledge should be discoverable.

That can include architecture notes, coding conventions, known issues, testing records, historical decisions, or a concise account of why an unusual implementation exists. The application repository should remain the home of product code. A separate engineering workspace can hold the task context and reusable guidance that help people and AI work responsibly around that code.

This does not mean saving every conversation. It means preserving the information that can prevent a future investigation from starting at zero. Persistent context turns a completed investigation into a resource for the next one.

Teach the workflow how the team actually works

Generic coding advice only goes so far. Every project has conventions around naming, error handling, testing, abstractions, documentation, and how changes are presented for review. A solution can be technically reasonable and still be a poor fit for the product.

Historical pull requests and code reviews can provide useful evidence when they are handled carefully. They may reveal recurring conventions, edge cases that reviewers routinely ask about, or abstractions the team has intentionally avoided. Those observations can become project guidance, but they should be checked rather than copied blindly. One reviewer can be mistaken, and an old pattern can become obsolete.

The purpose is not to make AI imitate the past. It is to give the workflow relevant engineering history instead of relying only on generic defaults.

From ticket to tested change

Consider a representative task: a file importer must accept a revised filename format without breaking existing files. It sounds small, but the filename may be parsed in several places, existing data may depend on the old format, and edge cases need deliberate coverage.

  1. Gather context. Retrieve the available ticket details, relevant source files, tests, documentation, known issues, and permitted historical references. Identify gaps instead of inventing an answer.
  2. Investigate before implementing. Trace the existing behavior, related services, and current tests. Stop when the acceptance criteria, implementation paths, dependencies, and major edge cases are clear enough to make a defensible plan.
  3. Create a plan. Describe the intended parsing change, affected components, regression tests, and validation. This is the point to challenge assumptions before they become code.
  4. Implement and verify. Make the focused change, run the appropriate formatter, type checks, tests, and build steps, then interpret failures honestly. A passing command answers one question. It does not prove every requirement is met.
  5. Review from more than one perspective. Compare the diff with the requirement, project conventions, possible failure modes, and security-sensitive behavior. Treat AI review findings as leads to investigate, not automatic defects.
  6. Test the behavior. Test both the newly supported format and existing formats. Record what was actually tested, what happened, and which validations remain proposed rather than completed.

That is bounded autonomy. AI can prepare and investigate independently, but it should not make every consequential decision independently. The engineer remains able to inspect the reasoning, correct the direction, and decide when the available evidence is sufficient.

Evidence is not intention

Formatting scripts, type checks, tests, builds, browser checks, and manual validation each establish different kinds of evidence. They are valuable precisely because they are specific. They should not be treated as a universal guarantee of correctness.

If a test fails, I want the cause investigated rather than an assertion changed simply to make the suite pass. If a type error appears, it should be resolved properly rather than hidden behind an inappropriate type. If a manual test is recommended but not performed, it should be described as a proposed step, not reported as proof.

Skills, hooks, permissions, and checks solve different problems

As an AI setup becomes more capable, it is easy to focus on how many agents, tools, or integrations it contains. The more important question is what responsibility each component owns.

Skills package repeatable procedures such as investigating a ticket, reviewing a diff, or preparing a test record. Hooks automate predictable actions at a tool lifecycle point, such as formatting or validation. Permissions define what a tool may read, write, or execute. Deterministic checks establish evidence about specific conditions.

A documented instruction is not the same as an enforced hook. A read-only integration label is not proof that every exposed tool is read-only. A passing check is not proof that the feature is correct. Keeping those distinctions explicit improves both quality and security.

Let completed work improve the next task

A completed task can leave behind more than a merged pull request. It can produce a tested implementation, an explanation of the architecture, a record of validation, a known issue, a useful diff, or a lesson that makes the next related task easier to understand.

I use the investigation and testing process to improve my own understanding as well. When a feature is unfamiliar, I ask AI to explain the relevant components, likely consequences, and architectural trade-offs. Then I inspect the implementation, test the behavior, and challenge the explanation where necessary. The goal is not to let AI become a black box that produces code I cannot explain.

Each task should contribute something useful to the next one, but not everything should become a permanent rule. Task-specific evidence, reusable knowledge, and historical examples have different lifecycles. The workflow should preserve them with the right amount of context and skepticism.

Build the smallest useful version first

You do not need a complex workspace, multiple integrations, custom skills, hooks, automated reviews, and persistent knowledge on day one. Start with the problem that wastes the most time.

If AI repeatedly lacks context, improve project instructions. If the same investigation happens for every ticket, create a reusable procedure. If testing is inconsistent, define a validation checklist and connect it to suitable checks. If a problem keeps returning, document it as a known issue. If a task finishes without enough understanding, add a learning step.

Real engineering work reveals which parts deserve automation and which need clearer boundaries. The setup should evolve with the problems it solves.

Why I am sharing this

I have been told that a useful AI workflow is an advantage worth keeping private. I understand that instinct. But I think people benefit from seeing how another engineer approaches a problem, especially when the emphasis is on responsibility rather than shortcuts.

Sharing a workflow does not make every reader use it in the same way. They bring different experience, constraints, products, and judgment. Someone may take one principle and build something better. Someone else may find a weakness and improve it. That is a good outcome.

The ability I would bet on

AI does not make experience irrelevant. It gives experienced engineers another way to apply judgment across more of the process, and it gives earlier-career engineers a structure for learning deliberately. In both cases, the essential work remains: understand the problem, establish boundaries, inspect the result, verify the behavior, and take responsibility when something is wrong.

I do not think the future belongs exclusively to engineers who write the longest prompts or collect the most tools. There is lasting value in engineers who can design a process around AI, evaluate what it produces, and continuously improve that process.

Build yours. Test it. Question it. Improve it.
Your turn

Build your own AI engineering workspace

Start with your project, your workflow, and one repeated engineering problem. This prompt asks an AI coding assistant to inspect your setup, propose a minimal foundation, and recommend the first skill worth creating.

Read the full prompt
You are my AI Engineering Workflow Architect.

Your job is to help me build a practical AI engineering workspace around my existing software project.

I do not want a generic collection of prompts. I want a maintainable foundation that helps me investigate tasks, understand my codebase, implement changes, test them, review results, and preserve useful engineering knowledge.

We will build this incrementally. Do not try to automate everything on day one.

PHASE 1: UNDERSTAND MY ENVIRONMENT

First, inspect the environment you can access.

Identify:
- The current working directory and project root.
- The AI coding tool I am using, where detectable.
- Existing project instructions and AI configuration.
- Any existing skills, commands, agents, or hooks.
- The repository structure and development stack.
- Existing testing, linting, formatting, and build commands.
- Any existing documentation or workspace for engineering notes.

Inspect only the files relevant to understanding the setup. Do not read the entire application codebase unnecessarily.

Do not assume that I am using Claude Code, Codex, Cursor, or any other specific tool. Detect the environment where possible and adapt your recommendations to the capabilities actually available.

PHASE 2: DESIGN A MINIMAL WORKSPACE

Based on what you discover, propose a small, useful workspace.

Consider directories for:
- tickets/ for task requirements, investigation notes, and plans.
- testing/ for test plans, actual test results, and QA evidence.
- knowledge/ for reusable architecture notes, coding conventions, and lessons learned.
- research/ for investigation findings that may be useful later.
- templates/ for recurring engineering work.

These are suggestions, not mandatory directories. Create only what makes sense for my project.

Prefer keeping personal engineering notes outside the application repository where practical. If that is not possible, explain the trade-offs and propose a suitable alternative.

Do not create duplicate instruction files or overwrite existing configuration just to match a template.

PHASE 3: ESTABLISH THE RULES

Design a minimal set of instructions for working with this workspace.

The rules should establish that:
1. Relevant project instructions and existing code conventions must be inspected before implementation.
2. Research should have a defined objective and stopping point.
3. Missing information must be identified rather than invented.
4. Code changes must be checked against the requirements.
5. Suggested tests must not be described as tests that were actually executed.
6. Failures must be investigated rather than hidden or worked around just to make checks pass.
7. Useful discoveries should be documented for future tasks.
8. Sensitive information, credentials, tokens, production data, and private keys must never be copied into workspace notes.
9. External tools and integrations must respect their configured permissions and require appropriate approval for consequential actions.
10. I remain responsible for reviewing the implementation and deciding whether the final result meets the requirements.

Use the native instruction format of my AI coding tool where appropriate. Keep the instructions short enough to maintain.

PHASE 4: CREATE THE FOUNDATION

After inspecting the environment, present a concise plan showing:
- The directories and files you propose to create.
- The purpose of each file.
- Any existing configuration that would need modification.
- Any security, portability, or compatibility concerns.

Proceed with the approved, low-risk workspace scaffolding. Create new files without overwriting existing work.

Do not modify application source code, package dependencies, CI/CD pipelines, permissions, MCP configurations, or existing instruction files without my explicit approval.

Do not install tools, access production services, send external messages, deploy code, or run destructive commands.

Create a short workspace README that explains the folder structure and how I should use it.

If the workspace cannot be created safely with your available access, explain the limitation and give me the exact next step.

PHASE 5: VERIFY WHAT YOU CREATED

Inspect the resulting structure and report:
- What was created.
- Where it was created.
- How my AI tool is expected to discover the instructions.
- What remains manual.
- What assumptions could not be verified.
- How I should start using the workspace.

Do not claim that integrations, permissions, hooks, or other features work unless you have evidence that they are configured.

PHASE 6: LET'S CREATE MY FIRST SKILL

Do not create a custom skill yet.

First, examine the available evidence about my project and development workflow. Identify 3 to 5 repetitive tasks that could benefit from a reusable skill.

For each candidate, explain:
- The repetitive problem it solves.
- The information it needs.
- What it would do.
- What output it would produce.
- What decisions or actions must remain under my control.
- Why a reusable skill is better than a one-off prompt.

Then recommend the single skill you believe would provide the greatest immediate value, explaining your reasoning.

Finish by asking me:

"Which skill should we build first?"

Show me your recommended choice alongside the alternatives, and wait for my answer before creating any skill.

The goal is to build a useful workspace first, then evolve it through real engineering work rather than unnecessary complexity.