[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C3M7HSYJY93N3Z5GC19TCW":3,"skill-same:01M7C3M7HSYJY93N3Z5GC19TCW":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":13,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M7C3M7HSYJY93N3Z5GC19TCW","one-three-one-rule",null,"1-3-1 decision briefs: problem, three options, one pick.","fengwhang\u002Fmercury","fengwhang","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F325040254?v=4","01M7C3K54Y41KVGPHEMKEP9X70","01M7C3K55NTZ4B36YP2JY1NMJ0",0,"MIT","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fcommunication\u002Fone-three-one-rule\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: one-three-one-rule\ndescription: \"1-3-1 decision briefs: problem, three options, one pick.\"\nplatforms: [linux, macos, windows]\nversion: 1.0.0\nauthor: Willard Moore\nlicense: MIT\ncategory: communication\nmetadata:\n  mercury:\n    tags: [communication, decision-making, proposals, trade-offs]\n---\n\n# 1-3-1 Communication Rule\n\nStructured decision-making format for when a task has multiple viable approaches and the user needs a clear recommendation. Produces a concise problem framing, three options with trade-offs, and an actionable plan for the recommended path.\n\n## When to Use\n\n- The user explicitly asks for a \"1-3-1\" response.\n- The user says \"give me options\" or \"what are my choices\" for a technical decision.\n- A task has multiple viable approaches with meaningful trade-offs (architecture, tooling, migration strategy).\n- The user needs a proposal they can forward to a team or stakeholder.\n\nDo NOT use for simple questions with one obvious answer, debugging sessions, or tasks where the user has already decided on an approach.\n\n## Procedure\n\n1. **Problem** (one sentence)\n   - State the core decision or desired outcome in a single concise sentence.\n   - Focus on the *what*, not the *how* — no implementation details, tool names, or specific technologies.\n   - Keep it tight. If you need \"and\", you're describing two problems.\n\n2. **Options** (exactly three)\n   - Present three distinct, viable approaches labeled A, B, C.\n   - Each option gets a brief description, pros, and cons.\n   - Options should represent genuinely different strategies, not minor variations of the same approach.\n\n3. **Recommendation** (one option)\n   - State which option you recommend and why, based on the user's context and priorities.\n   - Be direct — this is your professional judgment, not a hedge.\n\n4. **Definition of Done**\n   - List the specific success criteria for the recommended option.\n   - These are concrete, verifiable outcomes — not vague aspirations.\n   - If the user picks a different option, revise this section to match.\n\n5. **Implementation Plan**\n   - Concrete steps to execute the recommended option.\n   - Include specific commands, tools, or actions where applicable.\n   - If the user picks a different option, revise this section to match.\n\n## Verification\n\n- Response has exactly one Problem sentence.\n- Response has exactly three Options (A, B, C) with pros and cons for each.\n- Response has a single Recommendation that picks one option with reasoning.\n- Definition of Done and Implementation Plan align with the recommended option.\n- If the user selects a different option, Recommendation, DoD, and Implementation Plan update accordingly.\n\n## Example\n\nUser: \"Give me a 1-3-1 for adding retry logic to our API client.\"\n\nAgent:\n\n**Problem:** API calls to external services fail intermittently under load and need graceful retry handling.\n\n**Options:**\n\n- **Option A: Exponential backoff with jitter in a shared utility.**\n  Pros: Simple, well-understood pattern; single implementation shared across all callers.\n  Cons: No circuit-breaking; callers still block during retries.\n\n- **Option B: Retry library (tenacity) as a decorator on each endpoint call.**\n  Pros: Configurable per-endpoint; built-in support for circuit breakers and rate limits.\n  Cons: Adds a dependency; decorator pattern can obscure control flow.\n\n- **Option C: Queue-based async retry with dead letter handling.**\n  Pros: Non-blocking; failed calls are tracked and replayable; scales well.\n  Cons: Significant complexity increase; requires a queue backend; overkill for low-volume services.\n\n**Recommendation:** Option A. The call volume doesn't justify queue infrastructure, and a shared utility with exponential backoff + jitter covers the failure mode cleanly without new dependencies.\n\n**Definition of Done:**\n- `api_retry()` utility handles transient HTTP errors (429, 502, 503, 504).\n- Retries up to 3 times with exponential backoff and jitter.\n- All external API calls route through the retry utility.\n- Logs each retry attempt with endpoint and attempt number.\n- Tests cover retry exhaustion, immediate success, and transient-then-success scenarios.\n\n**Implementation Plan:**\n1. Create `utils\u002Fapi_retry.py` with configurable max retries, base delay, and retryable status codes.\n2. Add jitter using `random.uniform(0, base_delay)` to prevent thundering herd.\n3. Wrap existing API calls in `api_client.py` with the retry utility.\n4. Add unit tests mocking HTTP responses for each retry scenario.\n5. Verify under load with a simple stress test against a flaky endpoint mock.\n","# 1-3-1 Communication Rule\n\nStructured decision-making format for when a task has multiple viable approaches and the user needs a clear recommendation. Produces a concise problem framing, three options with trade-offs, and an actionable plan for the recommended path.\n\n## When to Use\n\n- The user explicitly asks for a \"1-3-1\" response.\n- The user says \"give me options\" or \"what are my choices\" for a technical decision.\n- A task has multiple viable approaches with meaningful trade-offs (architecture, tooling, migration strategy).\n- The user needs a proposal they can forward to a team or stakeholder.\n\nDo NOT use for simple questions with one obvious answer, debugging sessions, or tasks where the user has already decided on an approach.\n\n## Procedure\n\n1. **Problem** (one sentence)\n   - State the core decision or desired outcome in a single concise sentence.\n   - Focus on the *what*, not the *how* — no implementation details, tool names, or specific technologies.\n   - Keep it tight. If you need \"and\", you're describing two problems.\n\n2. **Options** (exactly three)\n   - Present three distinct, viable approaches labeled A, B, C.\n   - Each option gets a brief description, pros, and cons.\n   - Options should represent genuinely different strategies, not minor variations of the same approach.\n\n3. **Recommendation** (one option)\n   - State which option you recommend and why, based on the user's context and priorities.\n   - Be direct — this is your professional judgment, not a hedge.\n\n4. **Definition of Done**\n   - List the specific success criteria for the recommended option.\n   - These are concrete, verifiable outcomes — not vague aspirations.\n   - If the user picks a different option, revise this section to match.\n\n5. **Implementation Plan**\n   - Concrete steps to execute the recommended option.\n   - Include specific commands, tools, or actions where applicable.\n   - If the user picks a different option, revise this section to match.\n\n## Verification\n\n- Response has exactly one Problem sentence.\n- Response has exactly three Options (A, B, C) with pros and cons for each.\n- Response has a single Recommendation that picks one option with reasoning.\n- Definition of Done and Implementation Plan align with the recommended option.\n- If the user selects a different option, Recommendation, DoD, and Implementation Plan update accordingly.\n\n## Example\n\nUser: \"Give me a 1-3-1 for adding retry logic to our API client.\"\n\nAgent:\n\n**Problem:** API calls to external services fail intermittently under load and need graceful retry handling.\n\n**Options:**\n\n- **Option A: Exponential backoff with jitter in a shared utility.**\n  Pros: Simple, well-understood pattern; single implementation shared across all callers.\n  Cons: No circuit-breaking; callers still block during retries.\n\n- **Option B: Retry library (tenacity) as a decorator on each endpoint call.**\n  Pros: Configurable per-endpoint; built-in support for circuit breakers and rate limits.\n  Cons: Adds a dependency; decorator pattern can obscure control flow.\n\n- **Option C: Queue-based async retry with dead letter handling.**\n  Pros: Non-blocking; failed calls are tracked and replayable; scales well.\n  Cons: Significant complexity increase; requires a queue backend; overkill for low-volume services.\n\n**Recommendation:** Option A. The call volume doesn't justify queue infrastructure, and a shared utility with exponential backoff + jitter covers the failure mode cleanly without new dependencies.\n\n**Definition of Done:**\n- `api_retry()` utility handles transient HTTP errors (429, 502, 503, 504).\n- Retries up to 3 times with exponential backoff and jitter.\n- All external API calls route through the retry utility.\n- Logs each retry attempt with endpoint and attempt number.\n- Tests cover retry exhaustion, immediate success, and transient-then-success scenarios.\n\n**Implementation Plan:**\n1. Create `utils\u002Fapi_retry.py` with configurable max retries, base delay, and retryable status codes.\n2. Add jitter using `random.uniform(0, base_delay)` to prevent thundering herd.\n3. Wrap existing API calls in `api_client.py` with the retry utility.\n4. Add unit tests mocking HTTP responses for each retry scenario.\n5. Verify under load with a simple stress test against a flaky endpoint mock.\n",{"name":5,"author":23,"license":14,"version":24,"category":25,"metadata":26,"platforms":32,"description":7},"Willard Moore","1.0.0","communication",{"mercury":27},{"tags":28},[25,29,30,31],"decision-making","proposals","trade-offs",[33,34,35],"linux","macos","windows","main","94a12cab2ce32e2020d179b5d579d0cbcbd0f206","hermes\u002Foptional-skills\u002Fcommunication\u002Fone-three-one-rule","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury","https:\u002F\u002Fgithub.com\u002Ffengwhang","2026-10-09 08:26:42",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add fengwhang\u002Fmercury --skill one-three-one-rule",{"tool":48,"command":49},"bunx","bunx skills add fengwhang\u002Fmercury --skill one-three-one-rule",{"tool":51,"command":52},"pnpm","pnpm dlx skills add fengwhang\u002Fmercury --skill one-three-one-rule","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fhermes\u002Foptional-skills\u002Fcommunication\u002Fone-three-one-rule\u002FSKILL.md",true,[],[57,64,71,78,84,91],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M7C4BTY3ND38CN200ZCTH6NV","greet","A greeting skill for testing","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Fmarketplace\u002Ffixtures\u002Fvalid-marketplace\u002Fplugins\u002Fhello-plugin\u002Fskills\u002Fgreet\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7C4BSNZTPW8JR5NGCQXGSEZ","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7C4BRA7J8C06KSVW100F1W1","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M7C4BNB04KQGCJ835JE8AR13","no-frontmatter","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M7C4BM38TZFYT1AJ6SKHPZZ2","child-skill","A nested skill in a subdirectory.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fnested\u002Fchild-skill\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M7C4BJDN7RFFCM28CGX15Q97","different-name","A skill with a name that doesn't match the directory.","https:\u002F\u002Fgithub.com\u002Ffengwhang\u002Fmercury\u002Fblob\u002Fmain\u002Fomp\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fname-mismatch\u002FSKILL.md",[],[]]