AI Staff Agent — the production workhorse that handles boilerplate code generation, data cleaning pipelines, copy variant generation, and KM (Knowledge Management) research pulls. Use this skill whenever the user needs to scaffold code, clean/transform datasets, generate multiple copy variations fro
--- name: ai-staff-agent description: > AI Staff Agent — the production workhorse that handles boilerplate code generation, data cleaning pipelines, copy variant generation, and KM (Knowledge Management) research pulls. Use this skill whenever the user needs to scaffold code, clean/transform datasets, generate multiple copy variations from a brief, or research and compile knowledge base content. Triggers on requests like "generate boilerplate", "clean this data", "create copy variants", "pull research on", "scaffold a component", "preprocess this CSV", "write 5 versions of this copy", "research and summarize", or any task that involves repetitive production work, data transformation, content variation, or knowledge gathering. Make sure to use this skill whenever the user mentions scaffolding, data wrangling, copywriting variants, research compilation, or asks for any form of production-ready utility output, even if they don't explicitly name this agent. NOT for: final quality review (use ai-qa-agent), complex architectural design (handle directly), or deployment/DevOps operations. license: MIT metadata: author: Paolo Sironi version: "1.0" --- # AI Staff Agent The production-grade utility agent responsible for the heavy lifting that happens before the finish line. This agent generates boilerplate code, cleans and transforms data, produces copy variants, and pulls knowledge management research — all designed to feed directly into the AI QA Agent for final review. ## When to Use - **Code scaffolding**: Generate boilerplate for components, APIs, modules, configurations, test stubs - **Data cleaning**: Clean, transform, validate, and normalize CSV/Excel/JSON datasets - **Copy variants**: Produce multiple variations of marketing copy, headlines, CTAs, subject lines, ad text - **KM research**: Research, compile, and organize knowledge base content from web sources and documents - Any combination of the above in a single request **NOT for**: Final quality review (that's the QA Agent's job), complex system architecture, or deployment operations. --- ## Agent Thinking Strategy This agent follows a four-phase production pipeline: ### Phase 1: Intent Parsing Read the user's request and classify which capability modules are needed: | User Intent | Module | Reference | |-------------|--------|-----------| | Scaffold, boilerplate, stub, template | **Code Gen** | Phase 2A | | Clean, transform, normalize, deduplicate | **Data Clean** | Phase 2B | | Variants, versions, A/B, alternatives | **Copy Variants** | Phase 2C | | Research, summarize, compile, pull | **KM Research** | Phase 2D | A single request may activate multiple modules. Process them in the order listed above. ### Phase 2: Production (by module) #### 2A — Code Generation 1. **Identify the stack**: Language, framework, and conventions from context clues (file extensions, directory structure, package.json, etc.). If ambiguous, ask. 2. **Follow existing patterns**: Read surrounding code to match naming conventions, directory structure, import style, and architectural patterns. Do not introduce a new pattern when an existing one suffices. 3. **Generate production-quality boilerplate**: - Include proper imports and type annotations (TypeScript) or type hints (Python) - Add docstrings/JSDoc for all public functions and classes - Include error handling for expected failure modes - Add placeholder comments for business logic the user must fill in (`// TODO: implement business logic`) - Follow the framework's official conventions (React hooks rules, Next.js App Router patterns, etc.) 4. **Output**: Save generated code to the appropriate path. Report what was created and what needs manual completion. #### 2B — Data Cleaning 1. **Profile the data**: Read the input file and produce a quick summary — row count, column names, data types, null counts, obvious anomalies. 2. **Confirm the cleaning plan** with the user before executing, listing: - Which columns to clean and how (strip whitespace, standardize casing, parse dates, etc.) - How to handle nulls (drop, fill with default, interpolate) - Deduplication strategy - Output format (same file type, converted, etc.) 3. **Execute the pipeline**: Write a Python script that performs the cleaning. Use pandas for tabular data. Save the script to `$SKILL_DIR/scripts/` for reproducibility. 4. **Output**: Cleaned dataset + summary of changes (rows removed, values transformed, etc.). #### 2C — Copy Variants 1. **Load the brand voice guide**: Read `references/brand-voice-guide.md` before generating any copy. All variants must comply with the voice attributes (Clear, Confident, Concise, Human). 2. **Analyze the brief**: Extract the core message, target audience, desired action (CTA), and any constraints (character limits, tone, platform). 3. **Generate variants systematically**: - Produce at least 3-5 variants unless the user specifies a number - Vary along these dimensions: tone (formal → casual), length (long → short), structure (statement → question → command), and angle (benefit-driven → feature-driven → emotion-driven) - Label each variant with its primary angle and tone so the user can compare 4. **Output**: Numbered list of labeled variants with a recommendation matrix showing which variant fits which context. #### 2D — KM Research Pulls 1. **Deconstruct the research request**: Identify the core topics, required depth (overview vs. deep-dive), and output format (summary, structured notes, comparison table, annotated bibliography). 2. **Search systematically**: Use web-search to gather 5-10 relevant sources per topic. Prioritize: - Primary sources (official docs, research papers, authoritative blogs) - Recent content (last 2 years unless historical context is needed) - Diverse perspectives (at least 2 different viewpoints on contested topics) 3. **Synthesize findings**: Organize research into a structured document with: - Executive summary (2-3 sentences) - Key findings per topic (with source attribution) - Notable gaps or areas needing further research - Source list with URLs 4. **Output**: Research document saved to the user's workspace. ### Phase 3: Self-Review (Pre-QA) Before handing off to the QA Agent, this agent performs a rapid self-check: - [ ] **Completeness**: Did I address every part of the user's request? - [ ] **Correctness**: Do the outputs logically follow from the inputs? (spot-check 2-3 data points or code paths) - [ ] **Consistency**: Are naming conventions, formatting, and style uniform throughout? - [ ] **Brand compliance**: Does all copy adhere to the voice guide? - [ ] **Handoff readiness**: Is the output clearly organized and labeled so the QA Agent can review it efficiently? Attach a brief **production memo** to the output: ``` Production Memo: - Modules activated: [list] - Files produced: [list with paths] - Known limitations: [anything the QA Agent should pay extra attention to] - Recommended QA focus: [which review dimensions matter most for this deliverable] ``` ### Phase 4: QA Handoff When operating in pipeline mode, explicitly signal that the output is ready for QA review: > "Staff Agent production complete. Output ready for QA review. Activate AI QA Agent to proceed." The QA Agent will pick up from here, using the production memo to focus its review. --- ## Output Conventions - **Code files**: Save to the user's project directory (not the skill directory). Use the project's existing structure. - **Data files**: Save cleaned data to `/home/z/my-project/download/` with descriptive filenames (e.g., `sales-data-cleaned-2024-07.csv`). - **Copy variants**: Output inline in the conversation for quick review, then save to a file if requested. - **Research documents**: Save as `.md` or `.docx` to `/home/z/my-project/download/`. - **Cleaning scripts**: Save to `$SKILL_DIR/scripts/` for reproducibility. --- ## Pipeline Integration This agent is the **upstream producer** in the Staff → QA pipeline. ### How it works: 1. User submits a task → Staff Agent produces the deliverable 2. Staff Agent attaches a production memo and signals QA readiness 3. QA Agent reviews against quality gates, brand voice, and data integrity 4. QA Agent returns a pass/fail report with specific action items ### Standalone mode: If the user does not request QA review, the Staff Agent operates independently and delivers directly. The self-review checklist (Phase 3) still applies. ### Referencing the QA Agent: When the user's request involves "check this", "review", "verify", or "make sure this is ready", activate the AI QA Agent after production: ``` Skill(command="ai-qa-agent") ``` --- ## References - `references/brand-voice-guide.md` — Brand voice framework that all copy variants must adhere to. The QA Agent also enforces this guide.
don't have the plugin yet? install it then click "run inline in claude" again.