[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75M10FPP98N08KHKDA2P5ZW":3,"skill-same:01M75M10FPP98N08KHKDA2P5ZW":61},{"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":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M75M10FPP98N08KHKDA2P5ZW","extra-dirs-file-edit",null,"Write or edit files in extra directories outside the current project (e.g. another project on disk that the current workspace cannot modify). Use when the user asks to write, rewrite, append, or edit a file located in a directory outside the current project, or when Trae\u002Fagent reports that the target file is outside the workspace boundary. Operates on directories listed in the EXTRA_DIRS whitelist in scripts\u002Fextra_dirs_config.py.","ydf0509\u002Flc-agent","ydf0509","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F26890690?v=4","01M75KX7AQYS5FN6KPSDJAVM43","01M75KX7C61TGAM4RM0M3K4XG6",8,"MIT","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fcontrib_skills\u002Fextra-dirs-file-edit\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: extra-dirs-file-edit\ndescription: >-\n  Write or edit files in extra directories outside the current project\n  (e.g. another project on disk that the current workspace cannot modify).\n  Use when the user asks to write, rewrite, append, or edit a file located\n  in a directory outside the current project, or when Trae\u002Fagent reports\n  that the target file is outside the workspace boundary. Operates on\n  directories listed in the EXTRA_DIRS whitelist in scripts\u002Fextra_dirs_config.py.\n---\n\n# Extra-Dirs File Edit\n\nWrite or edit files in whitelisted extra directories (outside the current project) using the bundled script.\n\n## Prerequisites\n\nThe target directory must be listed in `scripts\u002Fextra_dirs_config.py` (EXTRA_DIRS list, absolute paths). If it is missing, **do NOT edit the config yourself** — tell the user which directory to add (show the exact line to add), and wait for the user to confirm before proceeding.\n\n## Commands\n\nAll commands run from the skill's `scripts\u002F` directory:\n\n```powershell\npython edit_extra_dirs_file.py list\npython edit_extra_dirs_file.py write \u003Cpath> --content \u003Ctext> [--mode rewrite|append]\npython edit_extra_dirs_file.py write \u003Cpath> --content-file \u003Cfile> [--mode rewrite|append]\npython edit_extra_dirs_file.py edit \u003Cpath> \u003Cold_string> \u003Cnew_string> [--expected N]\n```\n\n### list\n\nShow the whitelist directories and verify the config file parses correctly.\n\n### write\n\nWrite a file (rewrite whole file by default; `--mode append` appends). Parent directories are created automatically. Encoding is UTF-8 (no BOM).\n\n**Rewriting an existing file is destructive**: `--mode rewrite` (the default) overwrites the entire file with no backup and no undo. Never use `rewrite` on an existing file — by default, modify existing files with `edit` (targeted find-and-replace). `rewrite` is only allowed in two cases: creating a new file, or the user explicitly asks for a full rewrite — and even then only after you have read the original file's complete content, so you know exactly what you are replacing.\n\n**Append carefully**: before appending, read the file first and confirm the content you are about to add is not already present (avoid duplicate appends). If the existing file does not end with a newline, start your content with `\\n` — otherwise it is concatenated onto the last line.\n\n- Use `--content` inline only for short, plain text without newlines or shell-special characters (quotes, `$`, etc.).\n- For any content containing newlines, quotes, `$`, non-ASCII characters, or a longer body: **you must** use `--content-file` — first write the content to a temp file inside the current project, then pass it with `--content-file \u003Ctempfile>`; delete the temp file afterwards.\n\n### edit\n\nExactly find-and-replace a text block. `old_string` must match the file content character-for-character (including whitespace and newlines). Use `--expected N` to require exactly N matches (default 1) — the edit is refused if the actual match count differs.\n\n**Be extremely careful when editing**: always prefer several small edits with a long, unique `old_string` (include surrounding context lines) over one edit with a large `--expected N`. A large `--expected` replaces all N matching blocks in one go and can silently modify unrelated code if the pattern repeats. Only raise `--expected` above 1 after verifying the exact match count and confirming you intend to change every occurrence. When in doubt, keep `--expected` at its default (1) and make multiple targeted edits.\n\n## Workflow\n\n1. Check the whitelist: `python edit_extra_dirs_file.py list`\n2. If the target directory is not listed, **stop and ask the user to add it** to `scripts\u002Fextra_dirs_config.py` (show the exact line to add, e.g. `r\"D:\\codes\\project-b\",`). Never edit the config file yourself — only the user decides which directories are whitelisted. The script also refuses to write\u002Fedit `extra_dirs_config.py` itself, even if the skill directory is accidentally whitelisted. Continue only after the user confirms.\n3. Run write or edit; if it fails (e.g. path not in whitelist, old_string not found), read the error and fix before retrying\n\n## Notes\n\n- Requires Python 3.6+ (pure standard library; no third-party packages). If `python` is not on PATH or is too old, run with a suitable interpreter explicitly, e.g. `D:\\ProgramData\\miniconda3\\envs\\py312\\python.exe`.\n- Paths not under any whitelist directory are rejected with an error.\n- Always pass **absolute paths** for `\u003Cpath>` and `--content-file`. Relative paths are resolved against the current working directory.\n- For content with newlines or shell-special characters (quotes, `$`), prefer `--content-file`: write the content to a temp file first, then pass it. This avoids PowerShell quoting issues and command-line length limits. When using `--content` or `edit` with special characters, wrap arguments in single quotes in PowerShell.\n- The script reloads `extra_dirs_config.py` on every run, so config changes take effect immediately.\n- `edit` preserves the target file's line endings byte-for-byte; new content is written back with the same newline style as the original file.\n","# Extra-Dirs File Edit\n\nWrite or edit files in whitelisted extra directories (outside the current project) using the bundled script.\n\n## Prerequisites\n\nThe target directory must be listed in `scripts\u002Fextra_dirs_config.py` (EXTRA_DIRS list, absolute paths). If it is missing, **do NOT edit the config yourself** — tell the user which directory to add (show the exact line to add), and wait for the user to confirm before proceeding.\n\n## Commands\n\nAll commands run from the skill's `scripts\u002F` directory:\n\n```powershell\npython edit_extra_dirs_file.py list\npython edit_extra_dirs_file.py write \u003Cpath> --content \u003Ctext> [--mode rewrite|append]\npython edit_extra_dirs_file.py write \u003Cpath> --content-file \u003Cfile> [--mode rewrite|append]\npython edit_extra_dirs_file.py edit \u003Cpath> \u003Cold_string> \u003Cnew_string> [--expected N]\n```\n\n### list\n\nShow the whitelist directories and verify the config file parses correctly.\n\n### write\n\nWrite a file (rewrite whole file by default; `--mode append` appends). Parent directories are created automatically. Encoding is UTF-8 (no BOM).\n\n**Rewriting an existing file is destructive**: `--mode rewrite` (the default) overwrites the entire file with no backup and no undo. Never use `rewrite` on an existing file — by default, modify existing files with `edit` (targeted find-and-replace). `rewrite` is only allowed in two cases: creating a new file, or the user explicitly asks for a full rewrite — and even then only after you have read the original file's complete content, so you know exactly what you are replacing.\n\n**Append carefully**: before appending, read the file first and confirm the content you are about to add is not already present (avoid duplicate appends). If the existing file does not end with a newline, start your content with `\\n` — otherwise it is concatenated onto the last line.\n\n- Use `--content` inline only for short, plain text without newlines or shell-special characters (quotes, `$`, etc.).\n- For any content containing newlines, quotes, `$`, non-ASCII characters, or a longer body: **you must** use `--content-file` — first write the content to a temp file inside the current project, then pass it with `--content-file \u003Ctempfile>`; delete the temp file afterwards.\n\n### edit\n\nExactly find-and-replace a text block. `old_string` must match the file content character-for-character (including whitespace and newlines). Use `--expected N` to require exactly N matches (default 1) — the edit is refused if the actual match count differs.\n\n**Be extremely careful when editing**: always prefer several small edits with a long, unique `old_string` (include surrounding context lines) over one edit with a large `--expected N`. A large `--expected` replaces all N matching blocks in one go and can silently modify unrelated code if the pattern repeats. Only raise `--expected` above 1 after verifying the exact match count and confirming you intend to change every occurrence. When in doubt, keep `--expected` at its default (1) and make multiple targeted edits.\n\n## Workflow\n\n1. Check the whitelist: `python edit_extra_dirs_file.py list`\n2. If the target directory is not listed, **stop and ask the user to add it** to `scripts\u002Fextra_dirs_config.py` (show the exact line to add, e.g. `r\"D:\\codes\\project-b\",`). Never edit the config file yourself — only the user decides which directories are whitelisted. The script also refuses to write\u002Fedit `extra_dirs_config.py` itself, even if the skill directory is accidentally whitelisted. Continue only after the user confirms.\n3. Run write or edit; if it fails (e.g. path not in whitelist, old_string not found), read the error and fix before retrying\n\n## Notes\n\n- Requires Python 3.6+ (pure standard library; no third-party packages). If `python` is not on PATH or is too old, run with a suitable interpreter explicitly, e.g. `D:\\ProgramData\\miniconda3\\envs\\py312\\python.exe`.\n- Paths not under any whitelist directory are rejected with an error.\n- Always pass **absolute paths** for `\u003Cpath>` and `--content-file`. Relative paths are resolved against the current working directory.\n- For content with newlines or shell-special characters (quotes, `$`), prefer `--content-file`: write the content to a temp file first, then pass it. This avoids PowerShell quoting issues and command-line length limits. When using `--content` or `edit` with special characters, wrap arguments in single quotes in PowerShell.\n- The script reloads `extra_dirs_config.py` on every run, so config changes take effect immediately.\n- `edit` preserves the target file's line endings byte-for-byte; new content is written back with the same newline style as the original file.\n",{"name":5,"description":7},"main","c9d35c0e379f9b59b3807abb9a04d98437ffbffa","lc_agent\u002Fskills\u002Fcontrib_skills\u002Fextra-dirs-file-edit",2,"https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent","https:\u002F\u002Fgithub.com\u002Fydf0509","研究oop编程思想","2026-11-05 17:49:50",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ydf0509\u002Flc-agent --skill extra-dirs-file-edit",{"tool":37,"command":38},"bunx","bunx skills add ydf0509\u002Flc-agent --skill extra-dirs-file-edit",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ydf0509\u002Flc-agent --skill extra-dirs-file-edit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fcontrib_skills\u002Fextra-dirs-file-edit\u002FSKILL.md",true,[45,51,57],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"README.md","REFERENCE","参考文档",397,"https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fcontrib_skills\u002Fextra-dirs-file-edit\u002FREADME.md",{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"scripts\u002Fedit_extra_dirs_file.py","SCRIPT","脚本",9692,"https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fcontrib_skills\u002Fextra-dirs-file-edit\u002Fscripts\u002Fedit_extra_dirs_file.py",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Fextra_dirs_config.py",354,"https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fcontrib_skills\u002Fextra-dirs-file-edit\u002Fscripts\u002Fextra_dirs_config.py",[62,68,75,82,89,96],{"skillNo":63,"name":64,"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":65,"categories":66,"keywords":67,"publishedAt":18},"01M75M719FJ3D75G010QKKGS9P","vision-bridge","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fvision-bridge\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M75M6WQ4JP3HHP635A4VA6XE","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fsuperpowers\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M75M6SNFFXN1WM46XAJTZM2B","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fsuperpowers\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M75M6PR8M5KYVWT4XJGMY9Y9","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fsuperpowers\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M75M6KQX25K40ZP204NFF89K","using-superpowers","Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fsuperpowers\u002Fusing-superpowers\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M75M6FYAG0D8EP8WXYNMVKQM","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fsuperpowers\u002Fusing-git-worktrees\u002FSKILL.md",[],[]]