跳到正文
FunCoding

nw-ab-anti-patterns

KNOWLEDGE — agent/skill/command anti-pattern catalog with fixes. Reference scanned by validate-spec; no sequence.

Star
637
许可证
MIT
最近提交
2026年11月19日

nWave/skills/nw-ab-anti-patterns/SKILL.md

在 GitHub 上查看

nw-ab-anti-patterns (KNOWLEDGE)

Kind: KNOWLEDGE (reference catalog). Scanned by nw-ab-validate-spec (anti-pattern step). No forced sequence.

Anti-PatternWhy It FailsFix
Monolithic agent (2000+ lines)Context rot; 3x token costExtract to Skills, target 200-400 lines
Embedded safety frameworksDuplicates platform; wastes tokensConstruct safety first — tool surface (frontmatter tools/permissionMode), typed grammar; hooks last resort (GDP-0)
Aggressive languageOvertriggering on Opus 4.6Calm, direct statements
Zero examplesFails on subtle/critical behaviorsInclude 3-5 canonical examples
Exhaustive examples (30+)Diminishing returns; context rotKeep 3-5 diverse canonical cases
Specifying default behaviors65% of specs redundantSpecify only divergent behaviors
Negatively phrased rulesLess effective than affirmativePhrase affirmatively
Compound instructionsConfuses agent reasoningSplit into separate focused steps
Inconsistent terminologyAmplifies confusion in longer contextsOne term per concept throughout
Mirrored skill loadingFrontmatter skill also loaded by a body directive or table row — the installer already preloaded it once, so the body duplicates resident knowledgeDelete the body directive/row; frontmatter alone keeps it resident
Handwritten conditional indexSkill Loading section or table written beside the generated region — two indexes driftApply the source-aware Skill addressing procedure in nw-agent-creation-workflow; retain one generated index and report missing source capability
Conditional skill in frontmatterA skill needed only under a condition is eagerly preloaded on every taskMove it to a precise conditional trigger through the source-aware procedure; do not manufacture a registry in an installed project
Over-compressed examples### Example N: headers removed during compression — eval tools can't find themKeep example section headers verbatim
Compressed AskUserQuestion optionsRuntime menu items compressed to pipes — lose decision tree structurePreserve numbered options with descriptions verbatim
Broad multi-job assetOne agent/skill does N jobs; runtime re-decides "what good means" each runSplit into N one-job-one-trigger INTERNAL skills — do not add rules, do not parameterize
Renaming/proliferating the command surfaceRenaming an established command (e.g. forge) or adding new user-facing commands breaks muscle-memory + the preserve-names ruleRoute the split to internal skills behind the EXISTING command/agent; preserve names; a new command is the rare exception, named /nw-*

相似的 Skill

wayfinder

MAmattpocock/skills337k近 7 天新增 4,978 个 star

grill-with-docs

MAmattpocock/skills337k近 7 天新增 4,978 个 star

to-tickets

MAmattpocock/skills337k近 7 天新增 4,978 个 star

loop-me

MAmattpocock/skills337k近 7 天新增 4,978 个 star

to-spec

MAmattpocock/skills337k近 7 天新增 4,978 个 star

implement-spec

MAmattpocock/skills337k近 7 天新增 4,978 个 star