replace-with-skill-name-using-hyphens

$npx mdskill add guanyang/antigravity-skills/replace-with-skill-name-using-hyphens

Replace strings in a document when specific conditions are met

  • Identifies and replaces specific substrings within documents based on defined patterns.
  • Depends on string manipulation libraries and regular expressions for pattern matching and replacement.
  • Decides which replacements to make by comparing input text against predefined rules or heuristics.
  • Delivers the modified document back to the user, ensuring consistency with original formatting and context.

SKILL.md

.github/skills/replace-with-skill-name-using-hyphensView on GitHub ↗
---
name: replace-with-skill-name-using-hyphens
# CRITICAL: Description MUST describe "When to use" (triggers, symptoms, errors).
# NEVER summarize the skill's workflow here. Keep under 500 chars if possible.
description: Use when [describe triggering conditions, symptoms, or specific errors]. 
---

# Skill Name

## Overview
[1-2 sentences explaining the core principle. What is the fundamental insight of this skill?]

## When to Use (Triggers)
- **Symptoms**: [Errors, behaviors, or patterns that indicate this skill is needed]
- **Contexts**: [Specific scenarios where this pattern applies]

### When NOT to Use
- [Scenario A] -> Use `[other-skill-name]` instead.
- [Scenario B] -> Does not apply because...

## Core Pattern
[Explain the mental model. Use a before/after code block or a small `dot` flowchart if the decision process is non-obvious.]

```language
// ❌ Anti-pattern / Baseline failure
[Show the common mistake or naive approach]
```

```language
// ✅ Best practice / Correct implementation
[Show the correct pattern]
```

## Step-by-Step Workflow
[Clear, numbered steps for the agent to follow. Use imperative verbs.]

1. **[Phase 1]**: [Action to take]
2. **[Phase 2]**: [Action to take]
   - *Requirement*: [Specific constraint]
3. **[Phase 3]**: [Action to take]

## Quick Reference
[A table for fast lookup of commands, syntax, or common operations.]

| Operation / Scenario | Syntax / Command | Notes |
|----------------------|------------------|-------|
| [Operation]          | `[Command]`      | [Note] |

## Verification (Success Criteria)
[How to prove the implementation is correct (The GREEN phase). Agent must run these checks.]
- [ ] [Verification check 1, e.g., run test suite]
- [ ] [Verification check 2, e.g., verify no lint errors]

## Common Mistakes & Red Flags
[List specific rationalizations, shortcuts, or misunderstandings the agent might have. Address the "RED" phase baseline failures here.]

| Red Flag (Excuse / Mistake) | Reality / Fix (What to do instead) |
|-----------------------------|------------------------------------|
| "I'll just skip testing this time." | **STOP.** You must verify the behavior first. |
| [Mistake or excuse]         | **STOP.** [Correct action]         |

More from guanyang/antigravity-skills

SkillDescription
advanced-evaluationThis skill should be used for advanced LLM evaluation: LLM-as-judge systems, direct scoring, pairwise comparison, rubric calibration, evaluator bias mitigation, confidence scoring, and automated quality assessment.
baoyu-image-cardsGenerates infographic image card series with 12 visual styles, 8 layouts, and 3 color palettes. Breaks content into 1-10 cartoon-style image cards optimized for social media engagement. Use when user mentions "小红书图片", "小红书种草", "小绿书", "微信图文", "微信贴图", "image cards", "图片卡片", or wants social media infographic series.
baoyu-imagineAI image generation with OpenAI GPT Image 2, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream and Replicate APIs. Supports text-to-image, reference images, aspect ratios, and batch generation from saved prompt files. Sequential by default; use batch parallel generation when the user already has multiple prompts or wants stable multi-image throughput. Use when user asks to generate, create, or draw images.
bdi-mental-statesThis skill should be used when modeling agent mental states with BDI concepts: beliefs, desires, intentions, RDF-to-belief transformations, rational agency traces, cognitive agents, BDI ontologies, and neuro-symbolic AI integration.
claude-api|-
context-compressionThis skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve decisions, files, risks, and next actions.
context-degradationThis skill should be used for diagnosing and mitigating context degradation: lost-in-middle failures, context poisoning, context clash, context confusion, attention-pattern issues, and agent performance degradation caused by accumulated or conflicting context.
context-fundamentalsThis skill should be used to explain or reason about the foundational concepts of context engineering: what context is, the anatomy of a context window, how attention mechanics work, the U-shaped attention curve, why context quality matters more than quantity, and the mental models needed to interpret every other context-engineering decision. Use this for conceptual explanation, onboarding, and background reading. Route operational work to the specialized skills: debugging attention failures goes to context-degradation, token-efficiency work goes to context-optimization, conversation summarization goes to context-compression, and project-shape decisions go to project-development.
context-optimizationThis skill should be used for improving context efficiency: context budgeting, observation masking, prefix or KV-cache strategy, partitioning, token-cost reduction, retrieval scoping, and extending effective context capacity without lowering answer quality.
evaluationThis skill should be used when building agent evaluation systems: deterministic checks, regression suites, multi-dimensional rubrics, quality gates, production monitoring, baseline comparison, and outcome measurement for agent pipelines.