edit

Edit clash policy rules in ~/.clash/policy.yaml with dry-run previews.

33|5|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/empathic/clash --skill edit-empathic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: edit
Source: https://github.com/empathic/clash/tree/main/clash-plugin/skills/edit
Command: npx skills add https://github.com/empathic/clash --skill edit-empathic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guided editing of the clash policy file to simplify configuring tool restrictions and permissions without manual YAML edits.

Core Features & Use Cases

  • Interactive policy editing: add, remove, or adjust allow/deny/ask rules across tools and commands.
  • Policy overview and validation: view current rules, preview changes with dry-run, and verify behavior before applying.
  • Profile-aware updates: apply changes to a specific policy profile and see immediate effect.

Quick Start

Start by stating the desired policy change, then follow the guided prompts to add, remove, or adjust rules and apply them to policy.yaml.

Frequently Asked Questions about edit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I edit clash policy rules without manually modifying YAML?

You can edit clash policy rules through a guided interactive workflow that safely adds, removes, or updates allow, deny, and ask rules in your ~/.clash/policy.yaml file without manual YAML modifications.

Can I preview clash policy changes before applying them to a profile?

Yes, you can preview clash policy changes using the dry-run feature, which verifies behavior and shows exactly how updates will affect your target profile before applying them to policy.yaml.

How do I add or remove rules for a specific clash policy profile via CLI?

To add or remove rules for a specific clash policy profile via CLI, state your desired policy change and follow the guided prompts to apply profile-targeted updates directly to the YAML configuration.

What is the safest way to update clash policy.yaml file permissions?

The safest way to update clash policy.yaml permissions is using a guided editor with per-rule constraints and dry-run previews, ensuring tool restrictions and permissions are validated before any changes are applied.

Does this guided policy editing approach support per-rule constraints for clash configurations?

Yes, this guided policy editing approach supports per-rule constraints for clash configurations, allowing you to safely adjust allow, deny, and ask rules across tools and commands while targeting specific profiles.