用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill fix-reporter命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | fix-reporter |
| description | Capture solved problems as categorized documentation with YAML frontmatter for fast lookup |
| allowed-tools | Read Write Bash Grep |
| preconditions | ["Problem has been solved (not in-progress)","Solution has been verified working"] |
Purpose: Document solved problems to build searchable institutional knowledge.
Organization: Single-file per problem in .agents/lessons/[category]/[filename].md with YAML frontmatter. Files with workflow_phase fields are discoverable by lessons-discoverer agent.
Auto-invoke triggers:
Manual: /report-fix command
Document when:
Skip for: Simple typos, obvious syntax errors, trivial fixes
Extract from conversation:
| Field | Source |
|---|---|
| Module name | Which project module had the problem |
| Symptom | Observable error/behavior (exact messages) |
| Investigation attempts | What didn't work and why |
| Root cause | Technical explanation |
| Solution | Code/config changes that fixed it |
| Prevention | How to avoid in future |
If critical context missing: Ask user and WAIT before Step 3.
# Search for similar issues
grep -r "exact error phrase" .agents/lessons/
ls .agents/lessons/[category]/
If similar found: Present options:
If not found: Proceed to Step 4.
Format: [sanitized-symptom]-[module]-[YYYYMMDD].md
Rules:
Examples:
missing-import-auth-module-20251110.mdn-plus-one-user-queries-UserService-20251110.mdValidate against schema.yaml and references/yaml-schema.md.
Required fields:
BLOCK if validation fails - show errors, request corrections.
CATEGORY="[mapped from problem_type]"
mkdir -p .agents/lessons/${CATEGORY}
Populate assets/resolution-template.md with:
Optional discovery fields: Add workflow_phase, tech_stack, lesson_type, impact, keywords if lesson should auto-surface.
If similar issues from Step 3:
If 3+ similar issues exist:
.agents/lessons/patterns/common-solutions.mdIf severity=critical + non-obvious solution:
After capture, invoke fix-decision-router skill with:
doc_path: .agents/lessons/[category]/[filename].md
category: [problem_type category]
| problem_type | Directory |
|---|---|
| build_error | build-errors/ |
| test_failure | test-failures/ |
| runtime_error | runtime-errors/ |
| performance_issue | performance-issues/ |
| database_issue | database-issues/ |
| security_issue | security-issues/ |
| ui_bug | ui-bugs/ |
| integration_issue | integration-issues/ |
| logic_error | logic-errors/ |
| developer_experience | developer-experience/ |
| workflow_issue | workflow-issues/ |
| best_practice | best-practices/ |
| documentation_gap | documentation-gaps/ |
.agents/lessons/[category]/| Error | Action |
|---|---|
| Missing context | Ask user, WAIT |
| YAML validation fail | Show errors, BLOCK until valid |
| Similar issue ambiguity | Present options, let user choose |
Include:
Avoid:
Create distinctive, production-grade frontend interfaces with high design quality. Use when building web components, pages, or applications. Includes framework-specific guidance for Tailwind, React, Vue, and Rails/Hotwire ecosystems.
Skill file structure, naming conventions, directory layout, frontmatter requirements, and invocation control. Use when creating skill files or slash commands to ensure correct format and validation.
Forces adversarial reasoning before committing to decisions. Triggers on architectural choices, approach selection, and planning phases to prevent premature commitment bias.
基于 SOC 职业分类