smithery/hashicorp

update-redirects

Manages redirects.jsonc when moving or renaming documentation. Validates redirects and detects issues.

Installation

$ npx skills add smithery/hashicorp --skill update-redirects

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/hashicorp · top by installs.

npx skills add smithery/hashicorp

Browse all from smithery/hashicorp

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,509 B
  • docs SUMMARY.md 126 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Update Redirects Skill

Arguments

  • --old: Old file path (required with --new)
  • --new: New file path (required with --old)
  • --scan: Scan directory for moved files needing redirects
  • --validate: Check for circular redirects, broken targets, orphaned redirects
  • --cleanup: Suggest unnecessary/consolidatable redirects
  • --redirects-file: Path to redirects file (default: ../redirects.jsonc)

Process

  1. Add redirect (--old + --new): Validates no existing redirect for old path, new path exists, no circular redirect created, then updates redirects.jsonc.
  1. Scan (--scan): Checks git history for renamed/moved files, reports which need redirects, which already have them.
  1. Validate (--validate): Detects circular redirects (A→B→A), broken targets (file doesn't exist), redirect chains (A→B→C when A→C is better), orphaned redirects.
  1. Cleanup (--cleanup): Finds unnecessary redirects (old age, low/no traffic), consolidation opportunities for chains.
  1. Format: Maintains JSONC format, preserves comments, keeps consistent formatting.

Redirect entry format

{
  "source": "/well-architected-framework/old-path",
  "destination": "/well-architected-framework/new-path",
  "permanent": true
}