ai-product

ai-product is a skill for Claude Code, Codex from coco-research/coco. It costs 47 tokens per session (4,319 once invoked), scanned A, original, Apache-2.0.

A guide to building AI features for real products, including language-model connections, retrieval systems, prompts, user experience, safety controls, live responses, and spending limits.

In plain words
What is it for?
Use it when adding chat or generation features, searching a private knowledge base, designing prompts, showing streamed results, or controlling AI costs and unsafe output.
Why use it?
It helps turn an AI prototype into a feature that behaves consistently, handles risks, and fits practical product constraints.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it when adding chat or generation features, searching a private knowledge base, designing prompts, showing streamed results, or controlling AI costs and unsafe output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coco-research/coco/ai-product
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add coco-research/coco --skill ai-product
Clone the repo
git clone --depth 1 https://github.com/coco-research/coco

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-product

README.md
[![agentmods](https://agentmods.dev/badge/skills/coco-research/coco/ai-product/github.svg)](https://agentmods.dev/skills/coco-research/coco/ai-product)
Your own site
<a href="https://agentmods.dev/skills/coco-research/coco/ai-product"><img src="https://agentmods.dev/badge/skills/coco-research/coco/ai-product/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-product

Your own site · 80×15
<a href="https://agentmods.dev/skills/coco-research/coco/ai-product"><img src="https://agentmods.dev/badge/skills/coco-research/coco/ai-product.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,319 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.04319
Opus 5.5 $0.00019 $0.01728
Sonnet 5.5 $0.00009 $0.00864
Haiku 4.5 $0.00005 $0.00432

Measured 2mo ago against content hash 503d3f6b169a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-product scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ai-product/SKILL.md · 588 lines

How it starts

The opening of the file, as written. The whole thing — 588 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Product Development

Expert in shipping production-grade AI-powered features — LLM integration patterns, RAG architecture, prompt engineering that scales, AI UX that users trust, safety and guardrails, streaming, and cost optimization. Treats prompts as code, validates all outputs, and never trusts an LLM blindly.

Use when: building AI features into a product, integrating LLMs, designing RAG pipelines, implementing AI safety/guardrails, optimizing AI costs, building AI UX patterns, prompt engineering for production, handling hallucinations, streaming LLM responses, or evaluating AI output quality.


When This Skill Is Activated

  1. Read this file fully before proceeding
  2. Understand what AI feature the user is building
  3. Apply the relevant patterns below (integration, RAG, UX, safety, cost)
  4. Always address: output validation, error handling, cost awareness, user trust

Core Principle

Demos are easy. Production is hard. Every pattern below exists because something broke in production.


LLM Integration Patterns

Structured Output with Validation

Never parse free-text LLM output with regex. Use structured output modes and validate with a schema.

import { z } from "zod";
import OpenAI from "openai";

// 1. Define your schema
const ProductReviewSchema = z.object({
  sentiment: z.enum(["positive", "negative", "neutral"]),
  score: z.number().min(0).max(10),
  summary: z.string().max(200),
  keyTopics: z.array(z.string()).max(5),
});

type ProductReview = z.infer<typeof ProductReviewSchema>;

// 2. Call with structured output
const openai = new OpenAI();

async function analyzeReview(reviewText: string): Promise<ProductReview> {
  const response = await openai.chat.completions.create({
    model: "gpt-4o-mini",
    response_format: { type: "json_object" },
    messages: [
      {
        role: "system",
        content: `Analyze the product review. Return JSON matching this schema:
          { sentiment: "positive"|"negative"|"neutral", score: 0-10, summary: string, keyTopics: string[] }`,
      },
      { role: "user", content: reviewText },
    ],
  });

  const raw = JSON.parse(response.choices[0].message.content!);

  // 3. Always validate — the model can return anything
  const result = ProductReviewSchema.parse(raw);
  return result;
}

Read the full file on GitHub · 588 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +4 tokens per session 503d3f6b169a
  2. 3mo ago First seen · 588 lines · 43 tokens per session scan A f3ac20b377c8

Subscribe to this mod's changes

ai-product is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 47 tokens to every session and 4,319 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ai-product compared with skills from other repositories

ai-product next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-productcoco-research/cocoSkill323yesterdayApache-2.0A47Claude Code, Codex
dspyNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex
ai-engineering-toolkitsickn33/agentic-awesome-skillsSkill51ktodayMITA47Claude Code
llm-app-patternsdavila7/claude-code-templatesSkill34ktodayMITA54Claude Code, Codex
llm-securityzhaoxuya520/reverse-skillSkill45k16d agoMITA37Claude Code, Codex
ai-productsickn33/agentic-awesome-skillsSkill51ktodayMITA22Claude Code
llm-opsdavila7/claude-code-templatesSkill34ktodayMITA44Claude Code, Codex