skill-create

skill-create is a command for coding agents from Fmarzochi/EGC. It costs 6 tokens per session (533 once invoked), scanned A, original, Apache-2.0.

Generate skills from git history analysis.

Command

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.

agentmods
npx agentmods add commands/fmarzochi/egc/skill-create
Clone the repo
git clone --depth 1 https://github.com/Fmarzochi/EGC

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 skill-create

README.md
[![agentmods](https://agentmods.dev/badge/commands/fmarzochi/egc/skill-create.svg)](https://agentmods.dev/commands/fmarzochi/egc/skill-create)
Your own site
<a href="https://agentmods.dev/commands/fmarzochi/egc/skill-create"><img src="https://agentmods.dev/badge/commands/fmarzochi/egc/skill-create.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 533 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00006 $0.00533
Opus 5 $0.00003 $0.00267
Sonnet 5 $0.00001 $0.00107
Haiku 4.5 $0.00001 $0.00053

Measured today against content hash eecd5ef3c43e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

skill-create 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 today.

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.

.opencode/commands/skill-create.md · 118 lines

What it actually says

Skill Create Command

Analyze git history to generate Gemini Code skills: $ARGUMENTS

Your Task

  1. Analyze commits - Pattern recognition from history
  2. Extract patterns - Common practices and conventions
  3. Generate SKILL.md - Structured skill documentation
  4. Create instincts - For continuous-learning-v2

Analysis Process

Step 1: Gather Commit Data

# Recent commits
git log --oneline -100

# Commits by file type
git log --name-only --pretty=format: | sort | uniq -c | sort -rn

# Most changed files
git log --pretty=format: --name-only | sort | uniq -c | sort -rn | head -20

Step 2: Identify Patterns

Commit Message Patterns:

  • Common prefixes (feat, fix, refactor)
  • Naming conventions
  • Co-author patterns

Code Patterns:

  • File structure conventions
  • Import organization
  • Error handling approaches

Review Patterns:

  • Common review feedback
  • Recurring fix types
  • Quality gates

Step 3: Generate SKILL.md

# [Skill Name]

## Overview
[What this skill teaches]

## Patterns

### Pattern 1: [Name]
- When to use
- Implementation
- Example

### Pattern 2: [Name]
- When to use
- Implementation
- Example

## Best Practices

1. [Practice 1]
2. [Practice 2]
3. [Practice 3]

## Common Mistakes

1. [Mistake 1] - How to avoid
2. [Mistake 2] - How to avoid

## Examples

### Good Example
```[language]
// Code example

Anti-pattern

// What not to do

### Step 4: Generate Instincts

For continuous-learning-v2:

```json
{
  "instincts": [
    {
      "trigger": "[situation]",
      "action": "[response]",
      "confidence": 0.8,
      "source": "git-history-analysis"
    }
  ]
}

Output

Creates:

  • skills/[name]/SKILL.md - Skill documentation
  • skills/[name]/instincts.json - Instinct collection

TIP: Run /skill-create --instincts to also generate instincts for continuous learning.

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. today First seen · 118 lines · 6 tokens per session scan A eecd5ef3c43e

Subscribe to this mod's changes

skill-create is a command published in the GitHub repository Fmarzochi/EGC (48 stars, last pushed today), licensed Apache-2.0. It adds 6 tokens to every session and 533 once invoked, about $0.0000 per session on Opus 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-09-03.