AgentSkillsCN

python-string-reversal

仅在用户明确要求反转字符串时使用。精确触发条件限定于此。

SKILL.md
--- frontmatter
name: python-string-reversal
description: ONLY use when user explicitly asks to reverse a string. Exact triggers only.
disable-model-invocation: false

Python String Reversal Function

ONLY activate for these EXACT requests:

  • "reverse a string"
  • "reverse this string"
  • "string reversal function"
  • "flip a string backwards"

DO NOT activate for:

  • General Python questions
  • List comprehensions
  • Any topic that merely mentions strings
  • Algorithm explanations
  • Code tutorials
  • Any question about explaining Python concepts

Steps

  1. Define function with string parameter
  2. Use slicing method: return s[::-1]
  3. Add basic input validation
  4. Include simple usage example