一键导入
fortinet-settings
Configure Fortinet Code Security plugin settings (enable/disable scanning globally or per repo)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Configure Fortinet Code Security plugin settings (enable/disable scanning globally or per repo)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | fortinet:settings |
| description | Configure Fortinet Code Security plugin settings (enable/disable scanning globally or per repo) |
| user-invocable | true |
Manage plugin settings for the Fortinet Code Security plugin.
Settings are stored in ~/.lacework/plugins/code-security.json.
Structure (v2):
{
"hooks": {
"mode": "pre-commit",
"enabled": true,
"overrides": [
{
"path": "/absolute/path/to/repo",
"enabled": false
}
]
}
}
hooks.mode — "pre-commit" (default, scans before git commit) or "post-task" (scans after every Claude Code task)hooks.enabled — global kill switch for all scanninghooks.overrides — per-repo overrides, matched by path prefix (longest match wins)Older configs may use hooks.stop.enabled and hooks.stop.overrides. If hooks.mode is absent, treat as mode=post-task and use hooks.stop.* fields. When writing any change, migrate to v2 format.
When the user asks to disable or enable scanning without specifying scope, ask:
Would you like to disable/enable scanning globally (all repos) or just for this repo (
<current working directory>)?
If the user specifies scope directly, act without asking.
Show settings:
~/.lacework/plugins/code-security.jsonSwitch scanning mode:
stop.enabled → hooks.enabled, stop.overrides → hooks.overrides)hooks.mode to the new valueDisable/enable globally:
hooks.enabled to false or trueDisable/enable for a specific repo:
enabled valueoverrides arrayCreating the config file:
If ~/.lacework/plugins/code-security.json does not exist:
mkdir -p ~/.lacework/pluginsWhen determining if scanning is enabled for a directory:
hooks.enabled — if false, scanning is disabled globallypath (prefix match)enabled valuehooks.enabled valueAfter any change, show:
Fortinet Code Security Settings updated:
- Scanning mode: pre-commit / post-task
- Scanning (global): enabled/disabled
- This repo (<path>): enabled/disabled (via override / via global default)