diagnose-seq-scans
Remedy high seq scans on a table
Sets up VS Code mention highlighting configuration for markdown files. Creates or updates the necessary VS Code workspace files to highlight @dev, @ai, and other @ mentions.
$ npx -y skills add civitai/civitai --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/setup-mention-highlightsContext preview
What this command does when you run it.
Sets up VS Code mention highlighting configuration for markdown files. Creates or updates the necessary VS Code workspace files to highlight @dev, @ai, and other @ mentions.
Sets up VS Code mention highlighting configuration for markdown files. Creates or updates the necessary VS Code workspace files to highlight @dev, @ai, and other @ mentions.
.vscode/ ├── extensions.json (created/updated) └── settings.json (created/updated)
`.vscode/extensions.json` should recommend this extension:
{
"recommendations": [
"fabiospampinato.vscode-highlight"
]
}**Base Configuration**
`.vscode/settings.json` should have these mention highlights:
{
"files.associations": {
"*.md": "markdown"
},
"highlight.regexes": {
"(^|\\s)(@dev\\s*[:-]\\s*\\*)(.*)$": {
"filterFileRegex": ".*\\.(md|markdown|mdx)$",
"decorations": [
{},
{
"backgroundColor": "rgba(255, 235, 59, 0.3)",
"color": "#50FA7B",
"fontWeight": "bold",
"borderRadius": "3px",
"border": "1px solid rgba(255, 235, 59, 0.8)"
},
{
"color": "#50FA7B"
}
]
},
"(^|\\s)(@dev\\s*[:-]\\s*)(.*)$": {
"filterFileRegex": ".*\\.(md|markdown|mdx)$",
"decorations": [
{},
{
"backgroundColor": "rgba(80, 250, 123, 0.15)",
"color": "#50FA7B",
"fontWeight": "bold"
},
{
"color": "#50FA7B"
}
]
},
"(^|\\s)(@ai\\s*[:-]\\s*\\*)(.*)$": {
"filterFileRegex": ".*\\.(md|markdown|mdx)$",
"decorations": [
{},
{
"backgroundColor": "rgba(255, 235, 59, 0.3)",
"color": "#C678DD",
"fontWeight": "bold",
"borderRadius": "3px",
"border": "1px solid rgba(255, 235, 59, 0.8)"
},
{
"color": "#C678DD"
}
]
},
"(^|\\s)(@ai\\s*[:-]\\s*)(.*)$": {
"filterFileRegex": ".*\\.(md|markdown|mdx)$",
"decorations": [
{},
{
"backgroundColor": "rgba(198, 120, 221, 0.15)",
"color": "#C678DD",
"fontWeight": "bold"
},
{
"color": "#C678DD"
}
]
}
},
"highlight.maxMatches": 250,
"highlight.decorations": {
"rangeBehavior": 1
},
"highlight.regexFlags": "gm"
}If there is a name and color provided below, add a mention block for it to `highlight.regexes`: $ARGUMENTS
**Example**: `bob red`:
"(^|\\s)(@bob\\s*[:-]\\s*\\*)(.*)$": {
"filterFileRegex": ".*\\.(md|markdown|mdx)$",
"decorations": [
{},
{
"backgroundColor": "rgba(255, 235, 59, 0.3)",
"color": "#FF6B6B",
"fontWeight": "bold",
"borderRadius": "3px",
"border": "1px solid rgba(255, 235, 59, 0.8)"
},
{
"color": "#FF6B6B"
}
]
},
"(^|\\s)(@bob\\s*[:-]\\s*)(.*)$": {
"filterFileRegex": ".*\\.(md|markdown|mdx)$",
"decorations": [
{},
{
"backgroundColor": "rgba(255, 107, 107, 0.15)",
"color": "#FF6B6B",
"fontWeight": "bold"
},
{
"color": "#FF6B6B"
}
]
}If a color isn't provided, create one or pick from the list:
Repo: civitai/civitai
Remedy high seq scans on a table
Give context for creating handlers