nanocoai/nanoclaw / .claude/skills/add-mattermost
add-mattermost
FlaggedAdd a self-hosted or cloud Mattermost bot channel through the Chat SDK bridge, reusing a healthy server when available and linking to official server setup guidance when needed.
| File | Kind | Size |
|---|---|---|
| REMOVE.md | markdown | 1.5 KB |
| SERVER_SETUP.md | markdown | 1.3 KB |
| SKILL.md | skill md | 16.8 KB |
| apply-fixtures.json | config | 5.8 KB |
| scripts/configure.ts | script | 3.2 KB |
| scripts/discover-server.mjs | script | 3.8 KB |
| scripts/read-response.mjs | script | 1.0 KB |
| scripts/remove-base-url.mjsexecutable | script | 335 B |
| scripts/remove-config.mjsexecutable | script | 381 B |
| scripts/select-server.mjs | script | 1020 B |
| scripts/verify-runtime.ts | script | 9.8 KB |
scripts/read-response.mjs
View on GitHubimport { readFileSync } from 'node:fs';
// Setup already requires Node. Keep these two API checks independent of jq,
// which is not installed by NanoClaw's public bootstrap.
const [kind, baseUrl] = process.argv.slice(2);
try {
const response = JSON.parse(readFileSync(0, 'utf8'));
if (kind === 'config') {
if (!baseUrl || response.SiteURL !== baseUrl || (response.WebsocketURL ?? '') !== '') {
throw new Error('Server configuration mismatch');
}
process.stdout.write(`${response.SiteURL}\n\n`);
} else if (kind === 'dm') {
if (typeof response.id !== 'string' || !/^[a-z0-9]{26}$/.test(response.id) || response.type !== 'D') {
throw new Error('Invalid direct channel');
}
process.stdout.write(`mattermost:${response.id}\n`);
} else {
throw new Error('Unknown response kind');
}
} catch {
// API error bodies can contain private data; never echo them on failure.
console.error('Could not verify the Mattermost server configuration or owner DM response.');
process.exitCode = 1;
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |