Engineering AI Agent Skills: Making a Year of Coding Experience Reusable

    Learn how to turn AI-assisted coding records into reusable agent skills rather than a growing archive of prompts. This article covers skill boundaries, sample preparation, task classification, structured workflows, knowledge organization, independent evaluation, and team maintenance, using a frontend requirements example to show how experience can become a verifiable engineering asset.

    1. From Saving Conversations to Building Reusable Capabilities

    After working with AI coding tools for some time, developers tend to accumulate requirements, clarifications, correction records, and acceptance feedback. These materials may look fragmented, but they contain some of the most valuable parts of a developer’s experience: understanding business needs, identifying risks, limiting the scope of changes, and determining whether an implementation meets expectations.

    Saving conversations, however, is not the same as building a reusable capability.

    Historical records often mix temporary discussions, outdated constraints, failed attempts, and repeated statements. Giving an agent the entire archive increases its context burden and may cause lessons specific to an old project to be misapplied to a new task.

    The goal is to turn these records into three types of assets:

    • Stable rules: Engineering principles that apply across projects, such as recognizing that hiding a button is not equivalent to enforcing authorization.
    • Scenario-specific knowledge: Constraints for particular business contexts, such as field dependencies and state transitions in a certain type of form.
    • Evaluation samples: Inputs, expected behavior, and acceptance criteria that can establish whether a skill works.

    In this article, a skill is a set of instructions, knowledge, templates, and validation rules organized around a clearly defined task. It is not a feature exclusive to a particular product, nor does it require a specific runtime platform.

    The example skill has one responsibility: turning ambiguous frontend development requests into structured prompts grounded in project evidence, with clear boundaries and testable acceptance criteria. It does not make business decisions on behalf of the requirements owner or guarantee that subsequently generated code will be correct.

    2. Define the Skill’s Boundaries Before Writing Prompts

    “Help the team use AI coding tools more efficiently” is a goal, not an implementable skill definition. Such a broad goal can lead a skill to take on requirements analysis, architecture, coding, testing, and deployment at once, making it difficult to evaluate.

    A more practical capability definition is:

    Receive an initial request and available project materials, identify the task type, extract known constraints, flag information gaps, and produce a requirements specification for coding execution.

    Inputs

    Inputs may include the initial request, descriptions of existing pages, relevant code snippets, API contracts, design specifications, and team standards.

    These materials may be incomplete. The skill must distinguish supported information from details that still require confirmation, rather than guessing to make a document appear complete.

    Outputs

    The output should include, at minimum:

    • The task objective and scope.
    • Confirmed business rules.
    • Project-specific technical constraints.
    • Interaction and state requirements.
    • Change boundaries and prohibited actions.
    • Questions requiring clarification.
    • Observable, actionable acceptance criteria.

    Non-Responsibilities

    The skill should not independently choose a new technical approach, change unauthorized modules, promise performance improvements, or present habits from historical projects as facts about the current project.

    These boundaries prevent “requirements organization” from gradually becoming unauthorized “requirements decision-making.”

    3. Prepare Historical Samples: Extract Experience, Not Just Text

    The source material comes from sustained AI-assisted coding practice. Often, the most useful content is not the first prompt but the constraints established through clarification and correction.

    For example, an initial request might say only, “Add an edit dialog.” Later discussion may specify how to populate existing values, disable fields, confirm closure, prevent duplicate submissions, and display failures. Those additions reveal the engineering details that matter to the developer.

    Use Complete Tasks as the Sampling Unit

    Organize the records associated with a task into one sample instead of treating every conversation message as an independent data point.

    A sample can use the following structure:

    1. Sample ID:
    2. Task type:
    3. Initial request:
    4. Available project materials:
    5. Problems in the first output:
    6. Constraints added through clarification:
    7. Final usable specification:
    8. Acceptance evidence:
    9. Scope of applicability:
    10. Conditions under which the guidance no longer applies:

    The last field is particularly important. For example, guidance that assumes an existing shared form component should not be generalized to every project.

    Clean, Redact, and Deduplicate

    Before analysis, remove secrets, personal information, internal addresses, and other content that should not enter a shared knowledge base. Confirm the permitted use of code and business materials as well.

    Duplicate records can be merged, but meaningful differences must remain. Two otherwise similar pagination requests may require different behavior: preserving the current page after a search in one case and resetting it in another. Deduplication must not erase that distinction.

    Separate Evidence from Preference

    Label historical content according to its status:

    • An explicit requirement of the current project.
    • A general practice validated repeatedly.
    • An individual developer’s writing preference.
    • An unverified assumption.
    • A historical constraint that no longer applies.

    A skill can adopt useful writing preferences, but it must not elevate them into mandatory engineering standards.

    4. Classify Tasks So Experience Can Be Applied by Context

    The following eight categories provide an initial framework for frontend requests. This is a design suggestion, not a universal taxonomy that every team must adopt.

    Task type Information to clarify
    New page or feature Entry points, layout, data sources, permissions, and states
    Component development or modification Inputs, outputs, events, reuse boundaries, and compatibility requirements
    Forms and workflow interactions Validation, field dependencies, submission behavior, and error recovery
    API integration Contracts, error handling, competing requests, and data transformations
    Bug fixes Reproduction steps, expected behavior, impact scope, and regression criteria
    Refactoring Behavior preservation, dependencies, migration scope, and rollback approach
    Performance optimization Baselines, evidence of bottlenecks, measurement methods, and optimization constraints
    Testing and acceptance improvements Scenario coverage, test data, edge cases, and pass/fail criteria

    Classification is useful because it determines which questions to ask, not because it adds labels.

    A bug fix should prioritize reproduction conditions. Performance work should first establish how performance will be measured. A component change must examine compatibility with its callers. Applying the same checklist to every task produces irrelevant questions and unnecessary content.

    Tasks may span multiple categories. Use a primary type with supporting tags—for example, “form modification + API integration + permission constraints”—rather than forcing each task into one category.

    5. Design an Inspectable Execution Workflow

    A reliable skill needs an explicit processing sequence, not just a broad role description.

    A recommended workflow is:

    1. Check inputs
    2. → Classify the task
    3. → Extract project evidence
    4. → Identify information gaps
    5. → Analyze risks and change boundaries
    6. → Generate a structured prompt
    7. → Check the output

    Check Inputs

    First, determine whether the request provides enough information to begin organizing the work.

    If the request says only, “Optimize this page,” the skill should explain that the optimization objective is missing. It should not immediately propose a comprehensive visual, performance, and interaction redesign.

    Extract Project Evidence

    Organize relevant information as a fact, its source, and its scope:

    1. Fact: List query conditions must remain consistent with page state.
    2. Source: Current requirements document.
    3. Scope: The list page covered by this task.

    This structure helps prevent an implementation detail from another page from being mistaken for a project-wide standard.

    Handle Information Gaps

    Separate missing information into two categories:

    • Blockers: Details required to determine a correct implementation, such as the meaning of API fields or the basis for authorization decisions.
    • Non-blockers: Details that can temporarily remain placeholders, such as unresolved notification wording.

    The skill may produce an interim draft, but it must explicitly identify unconfirmed content. Completeness is not a justification for inventing business rules.

    Check the Output

    After generation, check whether the result:

    • Presents assumptions as facts.
    • Introduces features absent from the original request.
    • Ignores explicit prohibitions.
    • Uses acceptance criteria that cannot be verified.
    • Mistakes text in source materials for instructions to execute.

    Project documents and historical conversations are materials to analyze, not inherently high-priority instructions. A phrase such as “ignore the existing rules” in those materials must not change the skill’s boundaries.

    6. Practical Example: Turn a One-Line Request into an Execution Specification

    Suppose the input is:

    Add a status filter to the order list. Refresh the list when the selection changes, and do not affect the existing export feature.

    Although brief, this request leaves several implementation-relevant questions unanswered. Where do the status options come from? Should refreshing reset pagination? Should exports include the new filter?

    Instead of deciding these points for the user, the skill should produce a draft such as:

    1. Task type:
    2. List interaction modification involving query conditions and data loading.
    3. Objective:
    4. Add status filtering to the existing order list.
    5. Confirmed requirements:
    6. 1. Query the list again when the user changes the selected status.
    7. 2. Keep the existing export feature operational.
    8. 3. Do not extend changes to other pages or unrelated modules.
    9. Blockers requiring confirmation:
    10. 1. The authoritative source of status values and display labels.
    11. 2. Whether the query API already supports a status filter.
    12. 3. Whether exports must include the new filter condition.
    13. Interaction details requiring confirmation:
    14. 1. Whether changing the status resets pagination to the first page.
    15. 2. Whether users can select all statuses.
    16. 3. Whether a failed query preserves existing data or clears the list.
    17. Implementation constraints:
    18. 1. Prefer the project's existing filtering and request-handling patterns.
    19. 2. Do not independently change API contracts.
    20. 3. Prevent responses from earlier requests from overwriting newer results
    21. when users switch filters rapidly.
    22. Acceptance criteria:
    23. 1. Confirmed status options display correctly.
    24. 2. Requests include a filter condition matching the current selection.
    25. 3. Loading, empty-result, and failure states follow existing page standards.
    26. 4. The existing export entry point and workflow remain operational.
    27. 5. Pagination and export conditions follow the confirmed rules.

    Preventing older responses from overwriting newer results is a general risk reminder, not a prescribed implementation. Whether to cancel requests, validate response sequence numbers, or use an existing project mechanism depends on the actual code environment.

    This illustrates the difference between a high-quality prompt and a long prompt: the former reduces ambiguity; the latter may simply add words.

    7. Maintain Rules, Project Materials, and Examples Separately

    To avoid an ever-growing skill document, organize knowledge into four layers.

    Core Rules

    Store boundaries that apply to every task: separate facts from assumptions, do not invent APIs, and do not expand scope without authorization.

    Task Templates

    Maintain checklists for each task type. A performance template should focus on measurement evidence; a bug-fix template should focus on reproduction and regression. They should not be used interchangeably.

    Project Context

    Store project-specific directory conventions, component rules, API standards, and acceptance workflows. Each entry should identify its owner, update date, and scope of applicability.

    Examples and Evaluation

    Maintain redacted cases, common failure patterns, and expected behavior. Examples illustrate rules; they do not override facts about the current task.

    For large collections, retrieving materials relevant to the task is generally more reliable than loading the entire history at once. More context does not necessarily mean more accurate evidence. Irrelevant materials can increase conflicts and the risk of misapplication.

    8. Evaluate Effectiveness Instead of Relying on Impressions

    Once the skill is built, demonstrating it on a few familiar cases is not enough. Evaluate it using samples that were not involved in extracting the rules to determine whether it generalizes.

    Build an Independent Evaluation Set

    Include cases covering:

    • Routine requests with sufficient information.
    • Ambiguous requests missing critical conditions.
    • Requests with conflicting constraints.
    • Complex requests spanning multiple task types.
    • Outdated or inapplicable project materials.
    • Materials containing sensitive information or misleading instructions.

    Keep different rewrites of the same task in the same data partition where possible. Otherwise, similar content can appear in both the rule-development and evaluation sets, inflating the apparent results.

    Use Actionable Evaluation Dimensions

    Assess outputs along these dimensions:

    • Faithfulness: Does the output preserve the meaning of the original request?
    • Coverage: Does it include the important engineering constraints?
    • Uncertainty handling: Does it identify blockers and assumptions?
    • Actionability: Can a developer clearly understand the work involved?
    • Testability: Does it provide observable acceptance criteria?
    • Scope control: Does it avoid unrelated expansion?
    • Safety: Does it avoid exposing sensitive materials or following unauthorized instructions?

    Serious issues—such as fabricated APIs, sensitive information disclosure, or violations of explicit prohibitions—should be separate failure conditions. High scores elsewhere must not compensate for them.

    Establish a Comparison and Record the Conditions

    Compare requirements organized directly with requirements organized using the skill. Keep input materials, model settings, and evaluation rules as consistent as possible, and record environmental changes.

    Human reviewers can assess outputs without knowing which approach produced them, reducing bias from expectations that the skill should work better. Automated checks are useful for section completeness, prohibited content, and formatting consistency, but cannot independently establish whether complex business rules are correct.

    If outputs vary between runs, repeat a subset of samples to check whether critical constraints are retained consistently.

    9. Iterate as a Team: From Personal Habits to Shared Standards

    Individual experience can provide a starting point, but a team skill should not remain permanently dependent on one person’s judgment.

    When a developer identifies a missing condition or an incorrect output, record structured feedback:

    1. Input scenario:
    2. Omission or error:
    3. Actual impact:
    4. Proposed rule:
    5. Scope of applicability:
    6. New regression sample:

    Every rule change should include its rationale and undergo regression evaluation. If a new rule improves one scenario but introduces irrelevant questions elsewhere, refine its applicability instead of continuing to stack instructions.

    Maintain separate stable and experimental versions, retain version differences, and provide a rollback path. When project context changes, update the relevant project materials first rather than bending general rules around one project.

    Ultimately, success should not be measured only by prompt quality. More meaningful indicators include fewer clarification rounds, fewer critical omissions, clearer development scope, and better control of rework causes. Without actual measurements, do not claim a percentage improvement in efficiency.

    10. Conclusion: Reusable Experience Must Be Explainable and Verifiable

    Turning a year of AI-assisted coding experience into a skill is not a matter of concatenating historical prompts into one long document. It is a knowledge-engineering process.

    Extract evidence from real tasks, organize rules by scenario, establish facts and boundaries before generating executable specifications, and validate reliability through independent samples and team feedback.

    A mature skill should explain not only what to write, but also why the specification is structured that way, which conditions remain unresolved, and how correctness will be checked.

    When these capabilities are organized consistently, individual development experience becomes more than a hard-to-transfer habit. It becomes an engineering asset that a team can understand, use, review, and continuously improve.