Skip to content
Back to skills

Data Ai

ASecurity

AI/LLM skill - Prompt engineering, RAG, fine-tuning, LangChain

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentspythonapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add pluginagentmarketplace/custom-plugin-linux --skill data-ai --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Ai?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Ai
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pluginagentmarketplace-data-ai-custom-plugin-linux/badge)](https://www.skillsdirectory.com/skills/pluginagentmarketplace-data-ai-custom-plugin-linux)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ai
description: AI/LLM skill - Prompt engineering, RAG, fine-tuning, LangChain
version: "1.0.0"
sasmp_version: "1.3.0"

input_schema:
  type: object
  properties:
    task: { type: string, enum: [prompt, rag, finetune, agent, evaluate] }
    model: { type: string }
  required: [task]

output_schema:
  type: object
  properties:
    solution: { type: string }
    code: { type: string }
    best_practices: { type: array }

retry_config:
  max_attempts: 3
  backoff: exponential

timeout_ms: 60000
---

# AI/LLM Skill

## PURPOSE
LLM applications, prompt engineering, and AI system design.

## CORE COMPETENCIES
```
Prompt Engineering:
├── Zero-shot, few-shot
├── Chain-of-thought
├── System prompts
└── Output formatting

RAG (Retrieval-Augmented Generation):
├── Document chunking
├── Embedding models
├── Vector databases
├── Retrieval strategies
└── Context window management

LLM Frameworks:
├── LangChain
├── LlamaIndex
├── Anthropic SDK
└── OpenAI API
```

## CODE PATTERNS

### RAG Pipeline
```python
from langchain.embeddings import OpenAIEmbeddings
from langchain.vectorstores import Pinecone
from langchain.chains import RetrievalQA
from langchain.chat_models import ChatOpenAI

# Initialize
embeddings = OpenAIEmbeddings()
vectorstore = Pinecone.from_existing_index("docs", embeddings)
llm = ChatOpenAI(model="gpt-4", temperature=0)

# RAG chain
qa_chain = RetrievalQA.from_chain_type(
    llm=llm,
    retriever=vectorstore.as_retriever(
        search_kwargs={"k": 5}
    ),
    return_source_documents=True
)

result = qa_chain({"query": "How does X work?"})
```

### Retry with Backoff
```python
from tenacity import retry, stop_after_attempt, wait_exponential

@retry(
    stop=stop_after_attempt(3),
    wait=wait_exponential(multiplier=1, min=1, max=10)
)
def call_llm(prompt: str) -> str:
    return client.chat.completions.create(
        model="gpt-4",
        messages=[{"role": "user", "content": prompt}]
    ).choices[0].message.content
```

## TROUBLESHOOTING

| Issue | Cause | Solution |
|-------|-------|----------|
| Hallucinations | No grounding | Use RAG, add sources |
| Rate limited | Too many requests | Implement backoff |
| Context overflow | Too long | Chunking, summarization |
| Poor retrieval | Bad embeddings | Tune chunk size, model |

## BEST PRACTICES
```
1. Use structured outputs (JSON mode)
2. Implement proper error handling
3. Add observability (LangSmith, Arize)
4. Cache responses when possible
5. Use streaming for long responses
6. Evaluate with diverse test sets
```

Files in this skill

  • SKILL.md731 B
  • ai-SKILL.md2.6 KB
  • assets/config.yaml690 B
  • assets/schema.json1.1 KB
  • data-SKILL.md2.4 KB
  • ml-SKILL.md2.9 KB
  • references/GUIDE.md1.8 KB
  • references/PATTERNS.md1.5 KB
  • scripts/validate.py3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…