Back to list
epicpast

ai-tuning

by epicpast

Organization-wide GitHub configuration for Epic Pastures: reusable CI/CD workflows, composite actions, AI agents and Copilot skills for regenerative agriculture and smart farm automation projects.

0🍴 0📅 Jan 19, 2026

SKILL.md


name: ai-tuning description: Optimize AI assistant configurations for maximum effectiveness. USE THIS SKILL when user says "improve CLAUDE.md", "better copilot instructions", "tune AI", "optimize prompts", "MCP configuration", or wants to enhance AI assistant behavior. allowed-tools:

  • Bash
  • Read
  • Write
  • Edit
  • Glob
  • Grep

AI Tuning Skill

Optimize GitHub Copilot, Claude Code, and MCP configurations.

Trigger Phrases

  • "improve my CLAUDE.md"
  • "better copilot instructions"
  • "tune AI for this project"
  • "add MCP servers"
  • "optimize AI prompts"

Effective AI Instructions Principles

  1. Be Specific: Vague -> vague results
  2. Show Examples: Code > descriptions
  3. State Constraints: What NOT to do
  4. Organize Hierarchically: General -> specific
  5. Include Commands: Quick reference

CLAUDE.md Structure

# CLAUDE.md

## Project Overview
[What, architecture, technologies]

## Project Structure

[directory tree]


## Build Commands
```bash
# Install
[command]

# Test
[command]

# Lint
[command]

Code Style Requirements

[Formatter, linter, key rules with examples]

Architecture Guidelines

[Patterns, layer rules]

Important Patterns

[Code examples]


## copilot-instructions.md Structure

```markdown
# GitHub Copilot Instructions

## Project Context
[Brief description, tech stack]

## Code Generation Guidelines

### [Language] Patterns
[Conventions, type annotations, imports]

### Examples
```[language]
// GOOD
[example]

// AVOID
[counter-example]

Common Patterns

[Reusable code]

Commands

[Quick reference]


## MCP Configuration

```json
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@context7/mcp-server"]
    },
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "${workspaceFolder}"]
    },
    "memory": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-memory"]
    }
  }
}

Optimization Techniques

1. Context Density

# Instead of verbose:
"We use Python 3.12 as the language.
We use ruff for linting.
Testing is done with pytest."

# Write dense:
"Python 3.12 | ruff (lint+format) | pytest"

2. Example-Driven

# Instead of:
"Use type annotations."

# Write:
"Type annotations required:
```python
def process(items: list[str]) -> dict[str, int]: ...
```"

3. Constraints Section

## Constraints
- Max line length: 100 chars
- No star imports
- Error messages assigned to variables
- All public functions need docstrings

4. Command Quick Reference

| Action | Command |
|--------|---------|
| Test | `uv run pytest` |
| Lint | `uv run ruff check .` |
| Format | `uv run ruff format .` |

Validation

# Check AI files exist
[ -f "CLAUDE.md" ] && echo "OK CLAUDE.md"
[ -f ".github/copilot-instructions.md" ] && echo "OK Copilot"
[ -f ".vscode/mcp.json" ] && echo "OK MCP"

# Check sections in CLAUDE.md
grep "^## " CLAUDE.md

# Check code examples
grep -c '```' CLAUDE.md

Quality Metrics

MetricTarget
Has examplesYes (3+ code blocks)
Has commandsYes
OrganizedYes (## headers)
SpecificNo vague terms
CurrentTool versions updated

Pattern Library Development

Include reusable patterns:

# Pattern: Error Handling
def fetch(id: str) -> User:
    """Fetch user by ID.

    Raises:
        UserNotFoundError: If not found.
    """
    result = db.query(User).filter_by(id=id).first()
    if result is None:
        raise UserNotFoundError(f"User {id} not found")
    return result

AI File Audit

echo "=== AI Configuration Audit ==="

for f in CLAUDE.md .github/copilot-instructions.md .vscode/mcp.json; do
  if [ -f "$f" ]; then
    echo "OK $f exists ($(wc -l < "$f") lines)"
  else
    echo "MISSING $f"
  fi
done

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon