Prompt Improver
severity1/claude-code-prompt-improver
This skill enriches vague prompts with targeted research and clarification before execution.
Manage knowledge domains (e.g., Medical, Finance). An agent skill from FabioYanezRomero/Knowledge-Graph-Builder.
$ npx skills add FabioYanezRomero/Knowledge-Graph-Builder --skill add-domain -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install FabioYanezRomero/Knowledge-Graph-Builder add-domain --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/FabioYanezRomero/Knowledge-Graph-Builder.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agent/skills/add-domain .claude/skills/add-domain && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "add-domain" agent skill from https://github.com/FabioYanezRomero/Knowledge-Graph-Builder/tree/main/.agent/skills/add-domain into .claude/skills/add-domain/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-domain", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/FabioYanezRomero/Knowledge-Graph-Builder/tree/main/.agent/skills/add-domainType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add FabioYanezRomero/Knowledge-Graph-Builder --skill add-domain -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install FabioYanezRomero/Knowledge-Graph-Builder add-domain --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FabioYanezRomero/Knowledge-Graph-Builder.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agent/skills/add-domain .agents/skills/add-domain && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-domain" agent skill from https://github.com/FabioYanezRomero/Knowledge-Graph-Builder/tree/main/.agent/skills/add-domain into .agents/skills/add-domain/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-domain", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add FabioYanezRomero/Knowledge-Graph-Builder --skill add-domain -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install FabioYanezRomero/Knowledge-Graph-Builder add-domain --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FabioYanezRomero/Knowledge-Graph-Builder.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agent/skills/add-domain .cursor/skills/add-domain && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-domain" agent skill from https://github.com/FabioYanezRomero/Knowledge-Graph-Builder/tree/main/.agent/skills/add-domain into .cursor/skills/add-domain/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-domain", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/FabioYanezRomero/Knowledge-Graph-Builder.git --path .agent/skills/add-domain--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add FabioYanezRomero/Knowledge-Graph-Builder --skill add-domain -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install FabioYanezRomero/Knowledge-Graph-Builder add-domain --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FabioYanezRomero/Knowledge-Graph-Builder.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agent/skills/add-domain .gemini/skills/add-domain && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-domain" agent skill from https://github.com/FabioYanezRomero/Knowledge-Graph-Builder/tree/main/.agent/skills/add-domain into .gemini/skills/add-domain/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-domain", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install FabioYanezRomero/Knowledge-Graph-Builder add-domainInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add FabioYanezRomero/Knowledge-Graph-Builder --skill add-domain -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/FabioYanezRomero/Knowledge-Graph-Builder.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agent/skills/add-domain .github/skills/add-domain && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-domain" agent skill from https://github.com/FabioYanezRomero/Knowledge-Graph-Builder/tree/main/.agent/skills/add-domain into .github/skills/add-domain/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-domain", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add FabioYanezRomero/Knowledge-Graph-Builder --skill add-domain -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install FabioYanezRomero/Knowledge-Graph-Builder add-domain --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FabioYanezRomero/Knowledge-Graph-Builder.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agent/skills/add-domain .opencode/skills/add-domain && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-domain" agent skill from https://github.com/FabioYanezRomero/Knowledge-Graph-Builder/tree/main/.agent/skills/add-domain into .opencode/skills/add-domain/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-domain", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-domainManage knowledge domains (e.g., Medical, Finance). An agent skill from FabioYanezRomero/Knowledge-Graph-Builder.
Add Domain is an agent skill from FabioYanezRomero/Knowledge-Graph-Builder. Manage knowledge domains (e.g., Medical, Finance). Covers adding new domains, updating prompts, and adding few-shot examples.
Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Prompt engineering. The repository describes itself as: Repository for building knowledge graphs from specific datasets using generative language model through ollama. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 588f0d9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Add Domain loads about 3.1k tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 415 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from FabioYanezRomero/Knowledge-Graph-Builder at commit 588f0d9, republished under its MIT licence (© FabioYanezRomero). 415 words, ~3,084 tokens.
.claude/skills/add-domain/SKILL.md (or your agent's skills folder).This skill documents how to add a new knowledge domain to kgb/domains/.
Domains are bundled resource sets containing prompts and few-shot examples for extraction and augmentation. The system provides:
@domain() decoratorinspect.getfile() Domains Module
┌───────────────────────────────────────────────────────────┐
│ │
│ registry.py base.py │
│ ├─ @domain() ├─ KnowledgeDomain (ABC) │
│ ├─ register_domain() ├─ DomainComponent │
│ ├─ get_domain() ├─ DomainLike (Protocol) │
│ └─ list_available_domains()└─ DomainResourceError │
│ │
│ models.py │
│ ├─ Triple, InferenceType, ExtractionMode │
│ ├─ Extraction, ExtractionExample │
│ ├─ AugmentationExample, DomainSchema │
│ └─ DomainExamples │
│ │
│ legal/ default/ │
│ ├─ __init__.py ├─ __init__.py │
│ ├─ extraction/ ├─ extraction/ │
│ ├─ augmentation/ └─ augmentation/ │
│ └─ schema.json │
│ │
└───────────────────────────────────────────────────────────┘
Registration Flow:
@domain("name") → register_domain() → _DOMAIN_REGISTRY → get_domain()| Component | Library | Purpose |
|---|---|---|
| Schema validation | pydantic>=2.0 | Triple validation |
| Extraction | langextract>=0.1 | Prompt framework |
| Resource loading | pathlib (stdlib) | File operations |
kgb/domains/<domain_name>/
├── __init__.py # Domain class with @domain decorator
├── extraction/
│ ├── prompt_open.md # Open extraction prompt
│ ├── prompt_constrained.md # Type-constrained extraction prompt
│ └── examples.json # Few-shot extraction examples
├── augmentation/
│ └── connectivity/ # Strategy folder (one per strategy)
│ ├── prompt.md # Strategy-specific augmentation prompt
│ └── examples.json # Few-shot augmentation examples
└── schema.json # Optional: entity/relation type constraintsFile extensions: Prompts use
.md(markdown). The base class resolvesprompt_open.mdorprompt_constrained.mdbased onextraction_mode, andprompt.mdfor augmentation strategies.
Create extraction/prompt_open.md:
Extract all knowledge graph triples from the following biomedical text.
Focus on explicit relationships between biomedical entities.
For each relationship identified, extract:
- **head**: The source entity
- **relation**: The relationship type
- **tail**: The target entity
{{schema_constraints}}Important: Do NOT include output format instructions. The
langextractframework generates format instructions from examples. You can include{{schema_constraints}}to inject entity/relation type guidance.
Create extraction/prompt_constrained.md (for --mode constrained):
Extract knowledge graph triples from the following biomedical text.
Only extract entities and relations that match the provided schema types.
{{schema_constraints}}extraction/examples.json)[
{
"text": "Aspirin is used to treat headaches and reduce fever.",
"extractions": [
{
"extraction_class": "Triple",
"extraction_text": "Aspirin is used to treat headaches",
"char_start": 0,
"char_end": 35,
"attributes": {
"head": "Aspirin",
"relation": "treats",
"tail": "headaches",
"inference": "explicit"
}
},
{
"extraction_class": "Triple",
"extraction_text": "Aspirin is used to reduce fever",
"char_start": 0,
"char_end": 50,
"attributes": {
"head": "Aspirin",
"relation": "reduces",
"tail": "fever",
"inference": "explicit"
}
}
]
}
]Key fields:
char_start/char_endmust be valid character positions in thetext.extraction_textis the span that justifies the extraction.inferencemust be"explicit"for extraction examples.
augmentation/connectivity/prompt.md)You are a biomedical knowledge graph expert.
Given the following text and a partially extracted knowledge graph with disconnected components,
generate new triples that bridge the disconnected components.
## Source Text
{{text}}
## Current Triples
{{current_triples}}
## Disconnected Components
{{disconnected_components}}
{{schema_constraints}}
Generate bridging triples as a JSON array. Each triple must have:
- head, relation, tail, inference ("contextual"), justificationaugmentation/connectivity/examples.json)[
{
"input": {
"text": "Aspirin treats headaches. Ibuprofen is an NSAID.",
"components": [
{"entities": ["Aspirin", "headaches"]},
{"entities": ["Ibuprofen", "NSAID"]}
]
},
"output": [
{
"head": "Aspirin",
"relation": "is_a",
"tail": "NSAID",
"inference": "contextual",
"justification": "Aspirin is also classified as an NSAID, bridging the two components."
}
]
}
]Create schema.json:
{
"entity_types": ["Drug", "Disease", "Symptom", "Gene", "Protein"],
"relation_types": ["treats", "causes", "indicates", "inhibits", "binds_to"]
}When present, schema constraints are:
{{schema_constraints}}domain.schema.entity_types and domain.schema.relation_typesCreate kgb/domains/biomedical/__init__.py:
"""Biomedical knowledge domain for clinical and research document analysis."""
from __future__ import annotations
from ..base import KnowledgeDomain
from ..registry import domain
@domain("biomedical") # This name is used with --domain CLI flag
class BiomedicalDomain(KnowledgeDomain):
"""Domain for biomedical and clinical document analysis.
Focuses on:
- Biomedical entities (drugs, diseases, symptoms, genes)
- Clinical relationships (treats, causes, indicates, inhibits)
"""
pass
__all__ = ["BiomedicalDomain"]The KnowledgeDomain base class uses inspect.getfile() to find resources:
# In KnowledgeDomain.__init__():
self._root_dir = Path(inspect.getfile(self.__class__)).parent
# → resolves to kgb/domains/biomedical/From there it finds:
extraction/prompt_open.md (or prompt_constrained.md)extraction/examples.jsonaugmentation/<strategy>/prompt.mdaugmentation/<strategy>/examples.jsonschema.jsonOverride with root_dir= for testing.
Update kgb/domains/__init__.py:
# Import domains to trigger registration
from . import legal
from . import default
from . import biomedical # Add this — triggers @domain decoratorpython -c "from kgb.domains import list_available_domains; print(list_available_domains())"
# Output: ['legal', 'default', 'biomedical']import pytest
from kgb.domains import get_domain, list_available_domains, DomainResourceError
def test_domain_registered():
assert "biomedical" in list_available_domains()
def test_extraction_prompt_loads():
domain = get_domain("biomedical")
assert len(domain.extraction.prompt) > 50
def test_extraction_examples_valid():
domain = get_domain("biomedical")
examples = domain.extraction.examples
assert isinstance(examples, list)
assert len(examples) > 0
assert "text" in examples[0]
assert "extractions" in examples[0]
def test_augmentation_strategy_exists():
domain = get_domain("biomedical")
assert "connectivity" in domain.list_augmentation_strategies()
conn = domain.get_augmentation("connectivity")
assert len(conn.prompt) > 0
assert isinstance(conn.examples, list)
def test_schema_loads():
domain = get_domain("biomedical")
assert "Drug" in domain.schema.entity_types
assert "treats" in domain.schema.relation_types
def test_constrained_mode():
domain = get_domain("biomedical", extraction_mode="constrained")
assert "constrained" in domain.extraction._prompt_path.name
def test_missing_strategy():
domain = get_domain("biomedical")
with pytest.raises(DomainResourceError):
domain.get_augmentation("nonexistent")# Extract with your domain
kgb extract --input data.jsonl --domain biomedical
# Constrained mode (uses prompt_constrained.md)
kgb extract --input data.jsonl --domain biomedical --mode constrained
# Augment with connectivity strategy
kgb augment connectivity --input data.jsonl --domain biomedical
# List available domains
kgb list domainsls kgb/domains/biomedical/extraction/prompt_open.md (not .txt)prompt.md inside strategy folderskgb/domains/__init__.py: from . import biomedicalexamples.json matches the ExtractionExample schemapython -m json.tool examples.jsonchar_start/char_end are valid integersfrom kgb.domains import get_domain, DomainResourceError
try:
domain = get_domain("biomedical")
prompt = domain.extraction.prompt
except DomainResourceError as e:
print(f"Resource error: {e} (file: {e.resource_path})")
except ValueError as e:
print(f"Domain not found: {e}")| File | Action |
|---|---|
kgb/domains/biomedical/__init__.py | Create — domain class |
kgb/domains/biomedical/extraction/prompt_open.md | Create — open extraction prompt |
kgb/domains/biomedical/extraction/prompt_constrained.md | Create — constrained prompt |
kgb/domains/biomedical/extraction/examples.json | Create — few-shot examples |
kgb/domains/biomedical/augmentation/connectivity/prompt.md | Create — augmentation prompt |
kgb/domains/biomedical/augmentation/connectivity/examples.json | Create — augmentation examples |
kgb/domains/biomedical/schema.json | Create — entity/relation types |
kgb/domains/__init__.py | Modify — add import |
.md extensions for prompts)@domain("name") decorator applied to classKnowledgeDomainexamples.json includes char_start/char_end and extraction_textconnectivity/)kgb/domains/__init__.pyschema.json with entity_types and relation_types© FabioYanezRomero, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agent/skills/add-domain of FabioYanezRomero/Knowledge-Graph-Builder.
Open the folder on GitHubat commit 588f0d9
Add Domain next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add Domain this skillFabioYanezRomero/Knowledge-Graph-Builder | 103 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Prompt Improverseverity1/claude-code-prompt-improver | 1.9k | 1 repos | ~1.7k | Automated safety check: Pass | MIT | |
| Prompt Engineering Patternsynulihao/AgentSkillOS | 618 | 14 repos | ~1.7k | Automated safety check: Pass | None | |
| Patch CreationPiebald-AI/tweakcc | 2.5k | — | ~1.6k | Automated safety check: Pass | MIT | |
| Senior Prompt Engineermaslennikov-ig/claude-code-orchestrator-kit | 260 | 3 repos | ~1.4k | Automated safety check: Pass | Custom licence | |
| Codex Fable5baskduf/FableCodex | 437 | — | ~1.6k | Automated safety check: Pass | AGPL-3.0 |
severity1/claude-code-prompt-improver
This skill enriches vague prompts with targeted research and clarification before execution.
ynulihao/AgentSkillOS
Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability in production.
Piebald-AI/tweakcc
Create and register new patches for tweakcc. An agent skill from Piebald-AI/tweakcc.
maslennikov-ig/claude-code-orchestrator-kit
Provides reference guides and Python scripts for prompt optimization, RAG evaluation, and agent orchestration when building or tuning LLM systems.
baskduf/FableCodex
Apply a Claude Fable 5 inspired operating style inside Codex.
wshobson/agents
Reference for designing and tuning production LLM prompts: few-shot examples, chain-of-thought, structured outputs, templates and system prompts.
FabioYanezRomero/Knowledge-Graph-Builder
Adds a new LLM client provider to the clients module. An agent skill from FabioYanezRomero/Knowledge-Graph-Builder.
FabioYanezRomero/Knowledge-Graph-Builder
Adds a new iterative augmentation strategy (e.g., enrichment, summarization) to the builder module.
FabioYanezRomero/Knowledge-Graph-Builder
Adds a new output format converter (e.g., CSV, RDF) to the IO writers module.
FabioYanezRomero/Knowledge-Graph-Builder
Adds a new input format loader (e.g., Parquet, Excel) to the IO readers module.
FabioYanezRomero/Knowledge-Graph-Builder
Adds a new visualization engine or style to the visualization module.
Categories
Manage knowledge domains (e.g., Medical, Finance). An agent skill from FabioYanezRomero/Knowledge-Graph-Builder. Add Domain is an agent skill from FabioYanezRomero/Knowledge-Graph-Builder., Medical, Finance).
Add Domain fits situations like: tasks that involve Prompt engineering.
Run `npx skills add FabioYanezRomero/Knowledge-Graph-Builder --skill add-domain -a claude-code`. Or copy the skill folder (.agent/skills/add-domain in FabioYanezRomero/Knowledge-Graph-Builder) into .claude/skills/add-domain in your project. Claude Code loads it when a task matches its description.
Run `npx skills add FabioYanezRomero/Knowledge-Graph-Builder --skill add-domain -a codex`. Or copy the skill folder (.agent/skills/add-domain in FabioYanezRomero/Knowledge-Graph-Builder) into .agents/skills/add-domain in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add FabioYanezRomero/Knowledge-Graph-Builder --skill add-domain -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-domain, .gemini/skills/add-domain, .github/skills/add-domain and .opencode/skills/add-domain in your project.
Going by SKILL.md and its folder, Add Domain needs the command-line tools its instructions call (python). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Add Domain is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.1k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Add Domain: Prompt Improver (severity1/claude-code-prompt-improver, 1.9k stars), Prompt Engineering Patterns (ynulihao/AgentSkillOS, 618 stars), Patch Creation (Piebald-AI/tweakcc, 2.5k stars) and Senior Prompt Engineer (maslennikov-ig/claude-code-orchestrator-kit, 260 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
FabioYanezRomero (a GitHub user) maintains it in FabioYanezRomero/Knowledge-Graph-Builder, which has 103 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on August 28, 2026.
Source: FabioYanezRomero/Knowledge-Graph-Builder on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.