Index of every page on this site: llms.txt
All skills
Run it yourself

Make temporary code changes for testing that can be easily undone. Use when user says "temp", "temporary change", "temporarily enable/disable/show/hide", or needs to force a UI state, bypass a guard, or flip a feature flag for local testing. Also handles "temp undo" to revert all temporary changes, and "temp list" to show them.

Use this Skill: https://skilld.dev/gh/nielsmadan/agentic-coding/temp

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈84 tokens for metadata: the name and description. ≈846 when used: this file.

Description uses 4.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈336 characters, or 4.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Temp

Make quick, reversible code changes for local testing. Every change is marked with a TEMP: comment so it can be found and undone later.

Modes

1. Make a temporary change (default)

Usage: temp always show questionnaire

  1. Search the codebase for code related to the user's description.
  2. Make the minimal change needed — flip a boolean, comment out a guard, force a condition, hardcode a value. Prefer the smallest diff possible.
  3. Mark every modified line with a comment containing TEMP: and the reason. Use the appropriate comment syntax for the language.

Marking rules:

  • Add // TEMP: <reason> (or # TEMP:, /* TEMP: */, -- TEMP:, etc.) at the end of each changed line, or on the line above if end-of-line isn't practical.
  • If commenting out code, wrap it like:
    // TEMP: always show questionnaire — commented out guard
    // if (!hasSeenQuestionnaire) {
  • If changing a value:
    const showOnboarding = true; // TEMP: always show onboarding (was: false)
  • Always include what the original value was when replacing a value, using (was: ...).
  1. Tell the user what was changed and how to undo (temp undo).

2. Undo all temporary changes

Usage: temp undo

  1. Grep the project for TEMP: markers.
  2. If no markers found, tell the user there are no temporary changes.
  3. For each file with markers, use git checkout or git restore to revert the file. If the file has other unstaged changes mixed in, restore only the TEMP-marked lines manually by reading the original from git and editing surgically.
  4. Confirm what was reverted.

3. List current temporary changes

Usage: temp list

  1. Grep the project for TEMP: markers.
  2. Display each one with file path, line number, and the marker text.
  3. If none found, say "No temporary changes active."

Examples

Example 1: Force a questionnaire to always show

User says: temp always show questionnaire

Actions:

  1. Search for questionnaire-related display logic (e.g., hasSeenQuestionnaire, showQuestionnaire, questionnaire + conditional).
  2. Find: if (!user.hasCompletedQuestionnaire) { showQuestionnaire(); }
  3. Change to: if (true) { showQuestionnaire(); } // TEMP: always show questionnaire (was: !user.hasCompletedQuestionnaire)
  4. Report the change.

Example 2: Disable auth check

User says: temp skip auth

Actions:

  1. Find auth middleware or guard.
  2. Comment out or force-pass the check, marking with // TEMP: skip auth.

Example 3: Undo

User says: temp undo

Actions:

  1. Search the codebase for TEMP: markers.
  2. Found markers in src/components/Questionnaire.tsx:42 and src/middleware/auth.ts:15.
  3. Restore original code for each marked line (read original from git or use the (was: ...) hint).
  4. Confirm: "Reverted 2 files, removed all TEMP markers."

Troubleshooting

Can't find relevant code

Cause: The description is too vague or uses different terminology than the codebase. Solution: Ask the user for more specific terms, file names, or feature names to search for.

Undo reverts more than TEMP changes

Cause: The file had other unstaged modifications mixed with TEMP changes. Solution: Instead of reverting the whole file, surgically restore only the TEMP-marked lines by reading the original from git show HEAD:<file> and editing just those lines back.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert7mo3 checks · Risk SAFE
  • Gen Agent Trust Hub7mo

    The 'temp' skill allows for quick, reversible codebase modifications like flipping flags or skipping security guards for testing purposes. It uses Git commands to revert changes and searches the codebase to find relevant logic. While useful for development, it contains instructions to bypass security controls and lacks sanitization when reading untrusted code content.

  • Socket7mo

    No alerts

  • Snyk7mo

    Risk: CRITICAL · 2 issues

Signed by skilld at 9fbe49f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 3 months ago
effort
low

README badge

README badge for nielsmadan/agentic-coding/temp