openai-patterns — community openai-patterns, CRAutomatique2, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for AI Agents needing advanced OpenAI integration with dual-model strategies for detection and extraction tasks. Application qui créer un compe rendu automatique s

77DidO 77DidO
[1]
[0]
Updated: 2/26/2026

Agent Capability Analysis

The openai-patterns skill by 77DidO is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for AI Agents needing advanced OpenAI integration with dual-model strategies for detection and extraction tasks.

Core Value

Empowers agents to leverage the OpenAI API for automatic report generation, utilizing libraries like `openai` and configuring via `.env` files, while supporting dual-model strategies with `gpt-4o-mini` for simple classification tasks.

Capabilities Granted for openai-patterns

Automating report generation with OpenAI patterns
Detecting meeting types using `gpt-4o-mini` models
Extracting atomic facts with strategic model switching

! Prerequisites & Limits

  • Requires OpenAI API Key stored in `.env`
  • Dependent on `openai` package version ^4.0.0
  • Limited to 3000 characters for `gpt-4o-mini` model usage
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

openai-patterns

Install openai-patterns, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Patterns OpenAI — CRAutomatique2

Package et client

  • Package : openai ^4.0.0 (PAS Anthropic SDK, PAS @azure/openai)
  • Client factory : backend/src/services/openai/client-factory.ts
  • Configuration : OPENAI_API_KEY dans .env (ou vLLM local via OPENAI_BASE_URL)

Strategie dual-model

UsageModelePourquoi
Detection type reuniongpt-4o-miniClassification simple, low-cost, 3000 chars max
Extraction facts atomiquesgpt-4o-miniJSON structure, temperature 0
Generation brief completgpt-4oQualite editoriale, structured output

Structured output

typescript
1// Detection (JSON simple) 2const response = await client.chat.completions.create({ 3 model: 'gpt-4o-mini', 4 messages: [{ role: 'user', content: prompt }], 5 response_format: { type: 'json_object' }, 6 temperature: 0, 7}); 8 9// Generation brief (schema Zod) 10const response = await client.chat.completions.create({ 11 model: 'gpt-4o', 12 messages: [{ role: 'system', content: systemPrompt }, { role: 'user', content: userPrompt }], 13 response_format: { type: 'json_object' }, 14 temperature: 0.1, 15}); 16const brief = BriefStructuredSchema.parse(JSON.parse(content));

Schemas Zod definis dans backend/src/types/brief.ts :

  • BriefStructuredSchema — schema principal
  • BriefMetadataSchema — metadata (meetingType, date, duration)
  • ComexContentSchema, CodirContentSchema, EncoursContentSchema — contenu par type

Anti-hallucination (3 couches)

Couche 1 — Pre-extraction deterministe (AVANT le LLM)

  • Fichier : backend/src/services/pre-extraction.ts
  • Scan regex : montants financiers (avec interpretations brut/x1000/x1M), dates, personnes, entites
  • Output : pre-extracted-facts.json dans chaque job
  • Inject : buildFactsConstraintSection() produit un bloc de contraintes injecte dans le prompt

Couche 2 — Post-processings deterministes (APRES le LLM)

  • ~70 sanitizers/enrichers/guards dans applyComexPostProcessings()
  • Corrigent les erreurs LLM : kind budget, revenue, attributions, formulations
  • Voir skill /comex-rules pour la chaine complete

Couche 3 — Validation post-extraction

  • Fichier : backend/src/services/openai/validation.ts
  • Verifie montants financiers du brief contre la transcription
  • Valide noms responsables contre voice profiles
  • Output : validation-report.json dans chaque job

Prompts

Chaque type de reunion a son prompt dedie :

  • prompts/detect-meeting-type.ts — detection (excerpt 3000 chars)
  • prompts/generate-comex.ts — generation brief COMEX
  • prompts/generate-codir.ts — generation brief CODIR
  • prompts/generate-chantier.ts — generation brief ENCOURS
  • prompts/extract-chantier-facts.ts — extraction facts ENCOURS

Les prompts recoivent les contraintes pre-extraites via buildFactsConstraintSection().

Regles

  • Ne jamais faire confiance au LLM sur les champs structurels (budget.kind, attributions)
  • Temperature 0 pour classification/extraction, 0.1 pour generation editoriale
  • Pas de retry auto cote app — le pipeline gere les erreurs via safe() wrapper
  • Toujours valider la sortie JSON avec le schema Zod avant utilisation
  • Tronquer la transcription a la taille contexte du modele (32768 tokens pour vLLM local)

Fichiers cles

  • backend/src/services/openai/client-factory.ts — creation client OpenAI
  • backend/src/services/openai/structured-generation.ts — orchestration generation + post-processings
  • backend/src/services/openai/prompts/ — tous les prompts par type
  • backend/src/services/openai/validation.ts — validation anti-hallucination
  • backend/src/services/pre-extraction.ts — pre-extraction deterministe
  • backend/src/types/brief.ts — schemas Zod (BriefStructured, ComexContent, etc.)

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is openai-patterns?

Perfect for AI Agents needing advanced OpenAI integration with dual-model strategies for detection and extraction tasks. Application qui créer un compe rendu automatique s

How do I install openai-patterns?

Run the command: npx killer-skills add 77DidO/CRAutomatique2/openai-patterns. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for openai-patterns?

Key use cases include: Automating report generation with OpenAI patterns, Detecting meeting types using `gpt-4o-mini` models, Extracting atomic facts with strategic model switching.

Which IDEs are compatible with openai-patterns?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for openai-patterns?

Requires OpenAI API Key stored in `.env`. Dependent on `openai` package version ^4.0.0. Limited to 3000 characters for `gpt-4o-mini` model usage.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add 77DidO/CRAutomatique2/openai-patterns. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use openai-patterns immediately in the current project.

Related Skills

Looking for an alternative to openai-patterns or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI