Specify a webhook-driven task for OpenClaw
Describe event inputs, validation, deduplication, and intended actions before integration work.
5,012,758 AI resources indexedWorking toward the worldβs largest AI resource index.
Compare config files semantically, highlight differences, and
--- name: config-diff-5f243fb251c6 description: Compare config files semantically, highlight differences, and suggest merge strategies. --- # Config Diff Semantically compare and merge configuration files (YAML, JSON, TOML, INI, .env). ## Instructions 1. **Detect format** from file extension or content 2. **Semantic diff** β parse structure, don't just compare text: ```bash # JSON: normalize and diff jq -S . a.json > /tmp/a.json && jq -S . b.json > /tmp/b.json diff --unified /tmp/a.json /tmp/b.json # YAML: convert to sorted JSON first yq -o=json -S '.' a.yml | diff - <(yq -o=json -S '.' b.yml) # .env files diff <(sort a.env) <(sort b.env) ``` 3. **Classify changes**: - π’ **Added**: New keys in target - π΄ **Removed**: Keys missing from target - π‘ **Changed**: Same key, different value - βͺ **Unchanged**: Same key and value 4. **Report format**: ``` π Config Diff: config.yml vs config.prod.yml | Key Path | Source | Target | Change | |----------|--------|--------|--------| | db.host | localhost | db.prod.internal | π‘ Changed | | db.pool | β | 20 | π’ Added | | debug | true | β | π΄ Removed | ``` 5. **Merge suggestions**: For conflicts, recommend which value to keep based on environment context ## Security - Flag sensitive values (passwords, tokens, keys) β never display in full; mask as `****` - Warn if secrets differ between environments (may indicate misconfiguration) ## Edge Cases - **Comments**: Text diff preserves comments; semantic diff ignores them β note this - **Key ordering**: Semantic diff ignores order; flag if order matters (INI sections) - **Nested objects**: Flatten key paths with dot notation for clear reporting ## Requirements - `diff` (pre-installed) - Optional: `jq` (JSON), `yq` (YAML) - No API keys needed--- name: config-diff-5f243fb251c6 description: Compare config files semantically, highlight differences, and suggest merge strategies. --- # Config Diff Semantically compare and merge configuration files (YAML, JSON, TOML, INI, .env). ## Instructions 1. **Detect format** from file extension or content 2. **Semantic diff** β parse structure, don't just compare text: ```bash # JSON: normalize and diff jq -S . a.json > /tmp/a.json && jq -S . b.json > /tmp/b.json diff --unified /tmp/a.json /tmp/b.json # YAML: convert to sorted JSON first yq -o=json -S '.' a.yml | diff - <(yq -o=json -S '.' b.yml) # .env files diff <(sort a.env) <(sort b.env) ``` 3. **Classify changes**: - π’ **Added**: New keys in target - π΄ **Removed**: Keys missing from target - π‘ **Changed**: Same key, different value - βͺ **Unchanged**: Same key and value 4. **Report format**: ``` π Config Diff: config.yml vs config.prod.yml | Key Path | Source | Target | Change | |----------|--------|--------|--------| | db.host | localhost | db.prod.internal | π‘ Changed | | db.pool | β | 20 | π’ Added | | debug | true | β | π΄ Removed | ``` 5. **Merge suggestions**: For conflicts, recommend which value to keep based on environment context ## Security - Flag sensitive values (passwords, tokens, keys) β never display in full; mask as `****` - Warn if secrets differ between environments (may indicate misconfiguration) ## Edge Cases - **Comments**: Text diff preserves comments; semantic diff ignores them β note this - **Key ordering**: Semantic diff ignores order; flag if order matters (INI sections) - **Nested objects**: Flatten key paths with dot notation for clear reporting ## Requirements - `diff` (pre-installed) - Optional: `jq` (JSON), `yq` (YAML) - No API keys needed
Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.