Configure File Write And Recovery

ReviewAudited by ClawScan on May 10, 2026.

Overview

The skill is aligned with editing gateway configuration, but it promotes overwriting persistent config files with exec/Python without clear backup, approval, or rollback safeguards.

Review this skill before use. It may be useful for gateway configuration issues, but do not let it write files or restart a gateway automatically. Confirm the real config path, back up the current file, validate the model IDs from the official API, and require explicit approval for any write or reboot action.

Findings (3)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

If run against the wrong path or with unsuitable model IDs, the agent could overwrite important gateway configuration and cause the gateway or model routing to fail after restart.

Why it was flagged

The helper script directly overwrites a configuration file and then invokes an exec-style command. This is consistent with the skill’s purpose, but it is high-impact and lacks visible safeguards such as backup, path validation, dry-run, confirmation, or rollback.

Skill content
with open('/path/to/config/file', 'w') as f:
    f.write(config_content)

subprocess.run(['exec', 'cat', '/path/to/config/file'])
Recommendation

Only use this after confirming the exact config path and intended contents, make a backup first, prefer a merge/update workflow over whole-file overwrite, and require explicit user approval before writing or restarting the gateway.

What this means

The agent may need access to provider or gateway APIs to validate model IDs, which could expose account capabilities if overly broad credentials are used.

Why it was flagged

The skill says API access is needed to query actual model IDs. That is purpose-aligned, but users should treat any API credential or account access as sensitive.

Skill content
- API 访问权限
Recommendation

Use the least-privileged API access available, avoid sharing long-lived tokens in chat, and verify which account or gateway endpoint the agent will query.

What this means

The user may not have the referenced model-ID mapping file, or may rely on an unreviewed mapping from elsewhere.

Why it was flagged

The skill references a companion mapping file that is not present in the provided manifest, so that referenced data source cannot be reviewed here.

Skill content
- `references/model_id_mapping.txt` — 用户提供的模型名称与实际 API ID 的映射表
Recommendation

Do not trust absent or external mapping data blindly; query the authoritative API directly and verify model IDs before writing configuration.