Skip to content
Back to skills

Llm Prompt Change

ASecurity

Use when adding or changing LLM tasks, providers, prompt templates, provider routing, or generation behavior.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added August 31, 2026
ai-agentsbash

Security analysis

A100/100

Scanned August 31, 2026

npx -y skills add hannibalevit/resumorph --skill llm-prompt-change --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Llm Prompt Change?

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

Security grade badge for Llm Prompt Change
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hannibalevit-llm-prompt-change/badge)](https://www.skillsdirectory.com/skills/hannibalevit-llm-prompt-change)

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: llm-prompt-change
description: Use when adding or changing LLM tasks, providers, prompt templates, provider routing, or generation behavior.
---

# LLM Prompt Or Provider Change

## Workflow

1. Identify whether the change is a prompt edit, a new task, a new provider, or generation orchestration.
2. Keep LLM-invoking orchestration in `server/app/services/generation.py`.
3. Resolve provider/model choice through `services/llm_settings.py`; do not read settings fields directly.
4. For a new task, add `.system.md` and `.user.md` prompt files under every supported provider directory:
   - `server/app/prompts/claude/`
   - `server/app/prompts/gemini/`
   - `server/app/prompts/openai/`
   - `server/app/prompts/ollama/`
5. For a new provider, add a provider implementation under `server/app/llm/`, register it in `llm/factory.py`, update provider literals in `schemas.py`, and add a full prompt directory matching existing tasks.
6. Update `LlmTaskName` or `ProviderName` literals in `server/app/schemas.py` when names change.
7. Check every `$placeholder` in changed prompts against the values passed to `render_prompt`.
8. Add tests that stub `resolve_task_llm` and `get_llm_provider` on `app.services.generation`.

## Validation

Run from `server/`:

```bash
uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run mypy
uv run deptry .
```

For prompt additions, directly smoke-test `render_prompt(provider, task, **values)` for each provider/task pair.

## Common Failure Modes

- A prompt file is missing for one provider and fails later with `FileNotFoundError`.
- Unknown `$placeholders` remain because `Template.safe_substitute` does not raise.
- Prompt edits appear stale during local dev because `render_prompt` is cached.
- Provider/model routing is duplicated outside `services/llm_settings.py`.
- Tests patch the wrong module path and accidentally hit a real LLM.

## Expected Output

Report changed prompt files, generation/provider/schema changes, smoke-test coverage for provider/task pairs, and validation results.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.