Skill站外收录 @skilllib/skill-2014279370729271297
mod-actions
提供对 Civitai 平台用户的全流程管理能力,包括实时查询用户状态、切换封禁与静音状态、调整排行榜资格、彻底清除违规内容等操作,所有动作均通过官方 API 执行并同步更新会话、索引与日志。
效率工具 AI 技能
Skills.MD
# Moderator Actions
Take moderator actions on Civitai users including banning, muting, removing content, and managing leaderboard eligibility.
This skill uses the Civitai tRPC API with API key authentication, ensuring all actions go through the proper service layer with full side effects (session invalidation, search index updates, activity tracking, etc.).
## Setup
1. Copy `.env-example` to `.env` in this skill directory
2. Add your Civitai API key (must belong to a moderator account)
3. Optionally set the API URL (defaults to production)
```bash
cp .claude/skills/mod-actions/.env.example .claude/skills/mod-actions/.env
# Edit .env and add your API key
```
Get your API key from: https://civitai.com/user/account (API Keys section)
**Important:** The API key must belong to a user with moderator privileges.
### Environment Variables
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `CIVITAI_API_KEY` | Yes | - | Your Civitai API key |
| `CIVITAI_API_URL` | No | `https://civitai.com` | API base URL |
For local development, set `CIVITAI_API_URL=http://localhost:3000`
## Running Commands
```bash
node .claude/skills/mod-actions/query.mjs <command> [options]
```
### Commands
| Command | Description |
|---------|-------------|
| `user <id\|username>` | Look up user info by ID or username |
| `ban <id\|username>` | Ban a user (toggle - will unban if already banned) |
| `mute <id\|username>` | Mute a user (toggle - will unmute if already muted) |
| `leaderboard <id\|username> <true\|false>` | Set leaderboard eligibility |
| `remove-content <id\|username>` | Remove all content from a user |
### Ban Reason Codes
| Code | Description |
|------|-------------|
| `SexualMinor` | Sexual content involving minors |
| `SexualMinorGenerator` | Generator for sexual minor content |
| `SexualMinorTraining` | Training on sexual minor content |
| `SexualPOI` | Sexual content with people of interest |
| `Bestiality` | Bestiality content |
| `Scat` | Scat content |
| `Nudify` | Nudification tools |
| `Harassment` | Harassment |
| `LeaderboardCheating` | Leaderboard manipulation |
| `BuzzCheating` | Buzz system abuse |
| `RRDViolation` | Rights and Restrictions Denial violation |
| `Other` | Other violation |
### Options
| Flag | Description |
|------|-------------|
| `--json` | Output raw JSON response |
| `--dry-run` | Show what would be done without making changes |
| `--reason <code>` | Ban reason code (for ban command) |
| `--message <text>` | External message shown to user (for ban command) |
| `--internal <text>` | Internal notes (for ban command) |
## Examples
### Look Up User
```bash
# By user ID
node .claude/skills/mod-actions/query.mjs user 3879899
# By username
node .claude/skills/mod-actions/query.mjs user unfazedanomaly964
# Get raw JSON
node .claude/skills/mod-actions/query.mjs user 3879899 --json
```
### Ban User
```bash
# Simple ban (toggles ban status)
node .claude/skills/mod-actions/query.mjs ban 3879899
# Ban with reason and message
node .claude/skills/mod-actions/query.mjs ban 3879899 --reason Other --message "Repeated ToS violations"
# Ban with internal notes
node .claude/skills/mod-actions/query.mjs ban 3879899 --reason Other --message "ToS violation" --internal "User exploited republish bug 15 times"
# Ban by username
node .claude/skills/mod-actions/query.mjs ban unfazedanomaly964 --reason Other
# Dry run to see what would happen
node .claude/skills/mod-actions/query.mjs ban 3879899 --dry-run
```
### Mute User
```bash
# Toggle mute status
node .claude/skills/mod-actions/query.mjs mute 3879899
# By username
node .claude/skills/mod-actions/query.mjs mute unfazedanomaly964
# Dry run
node .claude/skills/mod-actions/query.mjs mute 3879899 --dry-run
```
### Manage Leaderboard Eligibility
```bash
# Exclude from leaderboards
node .claude/skills/mod-actions/query.mjs leaderboard 3879899 false
# Include in leaderboards
node .claude/skills/mod-actions/query.mjs leaderboard 3879899 true
# Dry run
node .claude/skills/mod-actions/query.mjs leaderboard 3879899 false --dry-run
```
### Remove All Content
```bash
# Remove all content from a user (DESTRUCTIVE)
node .claude/skills/mod-actions/query.mjs remove-content 3879899
# Always dry run first!
node .claude/skills/mod-actions/query.mjs remove-content 3879899 --dry-run
```
## Output Format
### User Info
```
User: unfazedanomaly964
ID: 3879899
Status: Active
Banned: No
Muted: No
Leaderboard Eligible: Yes
Created: 2024-03-19
```
### Action Result
```
Action: BAN
User: unfazedanomaly964 (ID: 3879899)
Success: Yes
Previous: Not Banned
Now: Banned
Reason: Other
```
## How It Works
This skill calls the Civitai tRPC API endpoints:
- `user.getById` / `user.getCreator` - User lookups
- `user.toggleBan` - Ban/unban users
- `user.toggleMute` - Mute/unmute users
- `user.setLeaderboardEligibility` - Manage leaderboard access
- `user.removeAllContent` - Remove all user content
Authentication is via Bearer token in the Authorization header:
```
Authorization: Bearer <your-api-key>
```
All endpoints require `moderatorProcedure` access, meaning the API key must belong to a moderator account.
## When to Use
- **Investigating violations**: Look up user info before taking action
- **Repeat offenders**: Ban users who repeatedly violate ToS
- **Temporary restrictions**: Mute users for minor violations
- **Leaderboard manipulation**: Exclude cheaters from leaderboards
- **Content violations**: Remove all content from severe violators
## Safety Notes
- **Always use `--dry-run` first** for destructive actions
- All actions are logged in the ModActivity table
- Ban actions invalidate user sessions immediately
- Universal bans unpublish all user content and cancel subscriptions
- Document reasons with `--reason` and `--message` flags
- API key must have moderator privileges
## Tips
- Always look up user info first to confirm the right user
- Use `--dry-run` for destructive actions like bans and content removal
- Document reasons with `--reason`, `--message`, and `--internal` flags
- Use `--json` for scripting or piping to other tools
- Set `CIVITAI_API_URL=http://localhost:3000` for local development
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「mod-actions」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次