Engineering operating model for teams where AI agents generate a large share of implementation output.
git clone https://github.com/affaan-m/ECC.git--- name: ai-first-engineering description: Engineering operating model for teams where AI agents generate a large share of implementation output. metadata: origin: ECC --- # AI-First Engineering Use this skill when designing process, reviews, and architecture for teams shipping with AI-assisted code generation. ## Process Shifts 1. Planning quality matters more than typing speed. 2. Eval coverage matters more than anecdotal confidence. 3. Review focus shifts from syntax to system behavior. ## Architecture Requirements Prefer architectures that are agent-friendly: - explicit boundaries - stable contracts - typed interfaces - deterministic tests Avoid implicit behavior spread across hidden conventions. ## Code Review in AI-First Teams Review for: - behavior regressions - security assumptions - data integrity - failure handling - rollout safety Minimize time spent on style issues already covered by automation. ## Hiring and Evaluation Signals Strong AI-first engineers: - decompose ambiguous work cleanly - define measurable acceptance criteria - produce high-signal prompts and evals - enforce risk controls under delivery pressure ## Testing Standard Raise testing bar for generated code: - required regression coverage for touched domains - explicit edge-case assertions - integration checks for interface boundaries
[{"step":"Define the project scope and constraints. Fill in [PROJECT_NAME], [TECH_STACK], and [NUMBER] of components in the prompt template. Specify whether the system is greenfield or a refactor, as this impacts the AI's approach to modularization.","tip":"For greenfield projects, ask the AI to prioritize components where AI can generate >80% of the code. For refactors, focus on components with the highest technical debt or manual effort."},{"step":"Generate the initial architecture plan. Paste the customized prompt into an AI tool (e.g., Claude, Cursor, or GitHub Copilot) and review the output. Use the AI's suggestions to create a shared document (e.g., Notion, Confluence) for the team.","tip":"Ask the AI to include a \"risk mitigation\" section in the plan to proactively address potential issues like hallucinations or data privacy."},{"step":"Break down the plan into sprints. Use the AI-generated timeline to create Jira tickets or GitHub issues. Assign tasks based on the AI's component breakdown, ensuring each task includes a human review step.","tip":"For each component, ask the AI to specify the exact AI tools/models to use (e.g., 'use Llama-3-8B for response generation'). This ensures consistency across the team."},{"step":"Implement and iterate. Use AI tools (e.g., Cursor, GitHub Copilot) to generate code for each component. Conduct human reviews at the specified checkpoints (e.g., weekly for Intent Recognition Engine).","tip":"Set up automated testing early (e.g., using pytest for Python components) and ask the AI to generate test cases for the initial implementation."},{"step":"Monitor and refine. Use the AI's testing strategies to validate the system. Collect feedback from end-users and use it to retrain models or adjust the architecture as needed.","tip":"Schedule a retrospective after each sprint to review the AI's contributions and identify areas for improvement (e.g., better prompt engineering, additional human review steps)."}]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/affaan-m/ECC/tree/main/skills/ai-first-engineeringCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as an AI-first engineering team lead. For the project [PROJECT_NAME], define the high-level architecture using [TECH_STACK]. Break down the system into [NUMBER] modular components, each with a clear purpose, input/output contracts, and dependencies. For each component, specify: 1) the AI tools or models to be used, 2) the human-in-the-loop review steps, and 3) the testing strategy. Prioritize components where AI can generate 80%+ of the initial implementation. Deliver this as a structured engineering plan with a timeline for the next 4 weeks.
### AI-First Engineering Plan: Next-Gen Customer Support Automation **Project Name:** SupportBot 2.0 **Tech Stack:** Python, FastAPI, LangChain, PostgreSQL, Redis **Timeline:** 4 weeks #### **System Architecture Overview (4 Modular Components)** 1. **Intent Recognition Engine** - **Purpose:** Classify user queries into 15 predefined intents (e.g., billing, technical support, feature requests) with 95%+ accuracy. - **AI Tools:** Fine-tuned Mistral-7B model (via Hugging Face) for intent classification, with a fallback to rule-based matching for edge cases. - **Human-in-the-Loop:** Weekly review of misclassified queries by a support specialist to retrain the model. - **Testing Strategy:** Precision/recall metrics on a held-out validation set; A/B test against the current rule-based system. - **AI-Generated Output:** 90% of initial implementation (Python class with pre-trained model weights, API endpoints for inference). 2. **Contextual Response Generator** - **Purpose:** Generate dynamic responses using a retrieval-augmented generation (RAG) pipeline with company knowledge base (Confluence + Zendesk articles). - **AI Tools:** LangChain + ChromaDB for vector search; Llama-2-70B for response synthesis. - **Human-in-the-Loop:** Daily review of 10% of generated responses by a content specialist for tone/accuracy alignment. - **Testing Strategy:** Human evaluation rubric (clarity, relevance, tone) scored 1-5; compare against baseline (static responses). - **AI-Generated Output:** 85% of initial implementation (FastAPI endpoints, RAG pipeline setup, response templates). 3. **Workflow Orchestrator** - **Purpose:** Route queries to the appropriate downstream systems (e.g., billing team, engineering, or self-service portal) based on intent and context. - **AI Tools:** Decision tree logic auto-generated from intent-confidence scores; integration with Jira/ServiceNow APIs. - **Human-in-the-Loop:** Monthly review of routing accuracy by ops team; adjust decision thresholds. - **Testing Strategy:** End-to-end integration tests with mock APIs; validate routing logic with synthetic data. - **AI-Generated Output:** 70% of initial implementation (Python scripts for routing, API client stubs). 4. **Feedback Loop System** - **Purpose:** Collect user feedback (thumbs up/down, optional comments) and use it to improve the model over time. - **AI Tools:** LangSmith for feedback aggregation; automated retraining pipeline (triggered weekly if feedback volume > 100). - **Human-in-the-Loop:** Quarterly review of feedback trends by product team to identify new intents or edge cases. - **Testing Strategy:** Monitor feedback distribution; validate retraining pipeline with synthetic data. - **AI-Generated Output:** 60% of initial implementation (FastAPI endpoints for feedback collection, retraining scripts). #### **Week-by-Week Breakdown** - **Week 1:** Finalize architecture, set up CI/CD (GitHub Actions), and generate initial component skeletons using AI (Claude Code + Cursor). - **Week 2:** Implement Intent Recognition Engine and Contextual Response Generator; conduct initial testing. - **Week 3:** Build Workflow Orchestrator and Feedback Loop System; integrate all components. - **Week 4:** End-to-end testing, performance benchmarking, and documentation (using AI to auto-generate READMEs and API docs). #### **Risk Mitigation** - **Hallucination Risk:** Add a "confidence score" filter to the Response Generator; route low-confidence queries to human agents. - **Data Privacy:** Use anonymized data for training; implement role-based access control for the knowledge base. - **Model Drift:** Schedule weekly retraining for the Intent Recognition Engine; monitor performance metrics in Grafana. **Next Steps:** Assign a human engineer to review the AI-generated code for Week 1 components and provide feedback before merging into `main`.
skills-collection
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan