[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MSV1MSJQQWYMCNJK4D88A":3,"skill-same:01M77MSV1MSJQQWYMCNJK4D88A":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M77MSV1MSJQQWYMCNJK4D88A","setup",null,"Check or set up the sql-server read-only MCP server: Node.js, the config file against its schema, the server copy in the plugin data directory, and a claude mcp add command per environment that names credentials by reference. Use when: 'set up sql-server', 'register a database for the agent', 'check my sql-server config', 'connect Azure SQL Database'. Actions: check (default) | apply.","melodic-software\u002Fclaude-code-plugins","melodic-software","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F58273638?v=4","01M77JVQTXNGKCE4MDFY2BC936","Melodic Software","01M77JVQVN9QDWKAH6W03ANP76",30,"MIT","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsql-server\u002Fskills\u002Fsetup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Check or set up the sql-server read-only MCP server: Node.js, the config file against its schema, the server copy in the plugin data directory, and a claude mcp add command per environment that names credentials by reference. Use when: 'set up sql-server', 'register a database for the agent', 'check my sql-server config', 'connect Azure SQL Database'. Actions: check (default) | apply.\"\nargument-hint: \"[check|apply] --config \u003Cpath> [--environment \u003Cname>]\"\nuser-invocable: true\ndisable-model-invocation: true\n---\n\n## What this sets up\n\nA registration is one stdio server bound to one environment of one config file (design:\n[ADR 0086](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fdocs\u002Fadr\u002F0086-bound-the-sql-server-read-tier-by-a-read-only-principal-and-fixed-registrations.md)).\nThe plugin ships no server in its own `.mcp.json`; this skill installs a copy of the server into\n`${CLAUDE_PLUGIN_DATA}\u002Fserver` (why that directory: \"Upstream record\" below), and registers it\nunder a name you choose.\n\nThe read-only database principal you create is the guarantee. A registration on a login that can\nwrite is not read-only, whatever the reject list does. This skill creates no principal and no\nconfig file; it checks the ones you made. Config shape and examples:\n`${CLAUDE_PLUGIN_ROOT}\u002FREADME.md` \"Config\"; Azure SQL Database:\n`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fazure-sql-database.md`.\n\nArguments: the action (`check` when absent), `--config \u003Cpath>` (required; ask for it once when\nmissing), and `--environment \u003Cname>` to limit the run to one environment. Every action is safe to\nrerun. When the user asks for project scope, refuse it in your first reply, before any step, with\nthe reason `apply` step 3 gives, so a run that stops early still answers it.\n\n## `check` (read-only)\n\n1. Run, from the project directory:\n\n   ```bash\n   node \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-setup.mjs\" --config \u003Cpath> --data-dir \"${CLAUDE_PLUGIN_DATA}\" [--environment \u003Cname>]\n   ```\n\n   Report every row it prints in a PASS\u002FFAIL\u002FINFO table, with one remediation line per FAIL. Done\n   when the table holds every row. Exit 1 means a FAIL row; exit 2 is a usage error to fix and rerun.\n2. Remediations: `node` FAIL, install Node.js at the version the row names. `config` FAIL, edit\n   the file at the place the message names (a literal password becomes `{ \"env\": \"\u003CVARIABLE>\" }`;\n   a config inside the project directory moves outside it). `server copy` or `server dependencies`\n   FAIL, run `apply`. An `auth` row that says a variable is not set is INFO: set it in the\n   environment Claude Code starts in, never in the config or the repository.\n3. **Registrations.** For each environment, run `claude mcp get sql-\u003Cenvironment>` (or the name\n   the user chose) and report INFO with what it shows, or \"not registered\". Done when each\n   environment has a registration row.\n4. **Grants.** For each registered environment whose `query` tool is in your tool list, call it\n   once per database in the environment's list with\n   `SELECT permission_name FROM fn_my_permissions(NULL, 'DATABASE')` and once with\n   `SELECT s.name, p.permission_name FROM sys.schemas AS s CROSS APPLY fn_my_permissions(s.name, 'SCHEMA') AS p`.\n   Report FAIL for a permission that starts with `INSERT`, `UPDATE`, `DELETE`, `EXECUTE`, `ALTER`\n   or `CREATE`, or is `CONTROL`, `TAKE OWNERSHIP` or `IMPERSONATE`, with the remediation \"remove\n   that grant from the principal\"; list the rest as INFO. With no such tool, report INFO \"grants\n   not checked: register the environment and rerun check in a fresh session\". This covers grants\n   at database and schema scope in the listed databases only: a grant on a single object, or in\n   another database on the server, does not show. Done when each registered environment has a\n   grants row.\n\nModify nothing in `check`.\n\n## `apply`\n\n1. Run `check`. Stop on a `node` or `config` FAIL and report it: `apply` cannot fix either.\n2. **Install the server copy.** Run:\n\n   ```bash\n   node \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Finstall-server.mjs\" --data-dir \"${CLAUDE_PLUGIN_DATA}\"\n   ```\n\n   It copies the server into `${CLAUDE_PLUGIN_DATA}\u002Fserver` and runs `npm ci` there, or prints\n   `unchanged:` when that copy already holds this version and its dependencies. Done when it prints\n   `installed:` or `unchanged:` and exits 0; on exit 1, report its error and stop.\n3. **Register.** Rerun `check` and show each `register \u003Cenvironment>` row's command. Each one\n   registers `sql-\u003Cenvironment>` at user scope; the name is yours to change, and so is `--scope\n   local`. Refuse `--scope project`: a registration lives only where the agent cannot edit it, and\n   the repository is not such a place. Credentials are registered by reference (`--env\n   'NAME=${NAME}'`), never by value; the `claude mcp get` readback below and the grants call in\n   `check` step 4 are what confirm a credential arrived. The commands are for a POSIX shell.\n   Skip an environment whose registration row already shows the same command and arguments, and\n   report it as already in place; when that row shows different ones, show both and leave the\n   change to the user. Run each other command only after the user confirms it (ADR 0086 section 3\n   asks for that confirmation, so `apply` never registers unattended), then run\n   `claude mcp get \u003Cname>` and report what it shows. Done when every confirmed registration has a\n   `claude mcp get` readback.\n4. **Readback.** Report the version `install-server.mjs` printed, each registration's readback and\n   the check table from step 3. Leave the grants check of `check` step 4 to a fresh session, and\n   tell the user to start one before relying on the registration.\n\n## Output\n\nWhat was already in place, what changed (the server copy's version, each registration made), what\nwas skipped or refused, and each FAIL with its remediation.\n\n## Boundaries\n\n- Never write a config file, a credential, or a project-scope registration.\n- Never print a credential value; the scripts print variable names only.\n- Never create or alter a database principal or grant: those stay with the database owner.\n- Writes only `${CLAUDE_PLUGIN_DATA}\u002Fserver` (built in `server.next` and swapped in) and, after\n  confirmation, the user's own MCP registrations.\n\n## Upstream record\n\n- MCP scopes and environment variable expansion in registrations:\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fmcp#environment-variable-expansion-in-mcp-json>.\n- When an added MCP server becomes available to a session:\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fmcp#managing-your-servers>.\n- Persistence of `${CLAUDE_PLUGIN_DATA}` across plugin updates:\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fcomponents#path-variables-and-persistent-data>.\n","## What this sets up\n\nA registration is one stdio server bound to one environment of one config file (design:\n[ADR 0086](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fdocs\u002Fadr\u002F0086-bound-the-sql-server-read-tier-by-a-read-only-principal-and-fixed-registrations.md)).\nThe plugin ships no server in its own `.mcp.json`; this skill installs a copy of the server into\n`${CLAUDE_PLUGIN_DATA}\u002Fserver` (why that directory: \"Upstream record\" below), and registers it\nunder a name you choose.\n\nThe read-only database principal you create is the guarantee. A registration on a login that can\nwrite is not read-only, whatever the reject list does. This skill creates no principal and no\nconfig file; it checks the ones you made. Config shape and examples:\n`${CLAUDE_PLUGIN_ROOT}\u002FREADME.md` \"Config\"; Azure SQL Database:\n`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fazure-sql-database.md`.\n\nArguments: the action (`check` when absent), `--config \u003Cpath>` (required; ask for it once when\nmissing), and `--environment \u003Cname>` to limit the run to one environment. Every action is safe to\nrerun. When the user asks for project scope, refuse it in your first reply, before any step, with\nthe reason `apply` step 3 gives, so a run that stops early still answers it.\n\n## `check` (read-only)\n\n1. Run, from the project directory:\n\n   ```bash\n   node \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-setup.mjs\" --config \u003Cpath> --data-dir \"${CLAUDE_PLUGIN_DATA}\" [--environment \u003Cname>]\n   ```\n\n   Report every row it prints in a PASS\u002FFAIL\u002FINFO table, with one remediation line per FAIL. Done\n   when the table holds every row. Exit 1 means a FAIL row; exit 2 is a usage error to fix and rerun.\n2. Remediations: `node` FAIL, install Node.js at the version the row names. `config` FAIL, edit\n   the file at the place the message names (a literal password becomes `{ \"env\": \"\u003CVARIABLE>\" }`;\n   a config inside the project directory moves outside it). `server copy` or `server dependencies`\n   FAIL, run `apply`. An `auth` row that says a variable is not set is INFO: set it in the\n   environment Claude Code starts in, never in the config or the repository.\n3. **Registrations.** For each environment, run `claude mcp get sql-\u003Cenvironment>` (or the name\n   the user chose) and report INFO with what it shows, or \"not registered\". Done when each\n   environment has a registration row.\n4. **Grants.** For each registered environment whose `query` tool is in your tool list, call it\n   once per database in the environment's list with\n   `SELECT permission_name FROM fn_my_permissions(NULL, 'DATABASE')` and once with\n   `SELECT s.name, p.permission_name FROM sys.schemas AS s CROSS APPLY fn_my_permissions(s.name, 'SCHEMA') AS p`.\n   Report FAIL for a permission that starts with `INSERT`, `UPDATE`, `DELETE`, `EXECUTE`, `ALTER`\n   or `CREATE`, or is `CONTROL`, `TAKE OWNERSHIP` or `IMPERSONATE`, with the remediation \"remove\n   that grant from the principal\"; list the rest as INFO. With no such tool, report INFO \"grants\n   not checked: register the environment and rerun check in a fresh session\". This covers grants\n   at database and schema scope in the listed databases only: a grant on a single object, or in\n   another database on the server, does not show. Done when each registered environment has a\n   grants row.\n\nModify nothing in `check`.\n\n## `apply`\n\n1. Run `check`. Stop on a `node` or `config` FAIL and report it: `apply` cannot fix either.\n2. **Install the server copy.** Run:\n\n   ```bash\n   node \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Finstall-server.mjs\" --data-dir \"${CLAUDE_PLUGIN_DATA}\"\n   ```\n\n   It copies the server into `${CLAUDE_PLUGIN_DATA}\u002Fserver` and runs `npm ci` there, or prints\n   `unchanged:` when that copy already holds this version and its dependencies. Done when it prints\n   `installed:` or `unchanged:` and exits 0; on exit 1, report its error and stop.\n3. **Register.** Rerun `check` and show each `register \u003Cenvironment>` row's command. Each one\n   registers `sql-\u003Cenvironment>` at user scope; the name is yours to change, and so is `--scope\n   local`. Refuse `--scope project`: a registration lives only where the agent cannot edit it, and\n   the repository is not such a place. Credentials are registered by reference (`--env\n   'NAME=${NAME}'`), never by value; the `claude mcp get` readback below and the grants call in\n   `check` step 4 are what confirm a credential arrived. The commands are for a POSIX shell.\n   Skip an environment whose registration row already shows the same command and arguments, and\n   report it as already in place; when that row shows different ones, show both and leave the\n   change to the user. Run each other command only after the user confirms it (ADR 0086 section 3\n   asks for that confirmation, so `apply` never registers unattended), then run\n   `claude mcp get \u003Cname>` and report what it shows. Done when every confirmed registration has a\n   `claude mcp get` readback.\n4. **Readback.** Report the version `install-server.mjs` printed, each registration's readback and\n   the check table from step 3. Leave the grants check of `check` step 4 to a fresh session, and\n   tell the user to start one before relying on the registration.\n\n## Output\n\nWhat was already in place, what changed (the server copy's version, each registration made), what\nwas skipped or refused, and each FAIL with its remediation.\n\n## Boundaries\n\n- Never write a config file, a credential, or a project-scope registration.\n- Never print a credential value; the scripts print variable names only.\n- Never create or alter a database principal or grant: those stay with the database owner.\n- Writes only `${CLAUDE_PLUGIN_DATA}\u002Fserver` (built in `server.next` and swapped in) and, after\n  confirmation, the user's own MCP registrations.\n\n## Upstream record\n\n- MCP scopes and environment variable expansion in registrations:\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fmcp#environment-variable-expansion-in-mcp-json>.\n- When an added MCP server becomes available to a session:\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fmcp#managing-your-servers>.\n- Persistence of `${CLAUDE_PLUGIN_DATA}` across plugin updates:\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fcomponents#path-variables-and-persistent-data>.\n",{"description":7,"argument-hint":24,"user-invocable":25,"disable-model-invocation":25},"[check|apply] --config \u003Cpath> [--environment \u003Cname>]",true,"main","d0e68c3f36b92a1d6381f0ba0060d7a0b8b886c5","plugins\u002Fsql-server\u002Fskills\u002Fsetup",7,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins","https:\u002F\u002Fgithub.com\u002Fmelodic-software","https:\u002F\u002Fmelodicsoftware.com","Independent software studio building developer tools, automation, and application services, with roots in music.","2026-11-15 05:15:06",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":25},[37,40,43],{"tool":38,"command":39},"npx","npx skills add melodic-software\u002Fclaude-code-plugins --skill setup",{"tool":41,"command":42},"bunx","bunx skills add melodic-software\u002Fclaude-code-plugins --skill setup",{"tool":44,"command":45},"pnpm","pnpm dlx skills add melodic-software\u002Fclaude-code-plugins --skill setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsql-server\u002Fskills\u002Fsetup\u002FSKILL.md",[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"scripts\u002Fcheck-setup.mjs","SCRIPT","脚本",6827,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsql-server\u002Fskills\u002Fsetup\u002Fscripts\u002Fcheck-setup.mjs",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"scripts\u002Finstall-server.mjs",3816,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsql-server\u002Fskills\u002Fsetup\u002Fscripts\u002Finstall-server.mjs",[59,66,73,80,85,92],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7DYYDG31B9YX7N9MB9QW2GW","track","Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-flow\u002Fevals\u002Frecall-still-reports-reopened-bug\u002Fwork-items-stub\u002Fskills\u002Ftrack\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7DYXVBAVG3NV30PA7GKW9Q6","reviewer-media","Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from \u002Freview:explain-change's digest, has \u002Fexplainer-video:produce render it and hands the manifest to \u002Fsource-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Freview\u002Fskills\u002Freviewer-media\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7DYRZ5YD44AMYH26YR25GZ8","route","Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-pin-without-override\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":81,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7DYRTVT4FWTGDJY0HCCFJMZ","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-override-from-route\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7DYNZC8PNW3T27V2ADKECKJ","principles","Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is \u002Farchitecture:improve.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fskills\u002Fprinciples\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7DYNMCZNEWBFHV9KTSS6H60","write","Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fevals\u002Fdeepening-defect-goes-to-bugs-write\u002Fbugs-stub\u002Fskills\u002Fwrite\u002FSKILL.md",[],[]]