[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFRNRBA9SAF5BTD02D7XWP":3,"skill-same:01M7EFRNRBA9SAF5BTD02D7XWP":50},{"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":6,"updatedAt":29,"install":30,"resources":43},"01M7EFRNRBA9SAF5BTD02D7XWP","cpp-create-file",null,"Use it to create a new C++ file","diego-minguzzi-sw\u002Fai-coding","diego-minguzzi-sw","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F172079330?v=4","01M7EFRBN2F8VYSC20K3JKV25H","01M7EFRBP4XWHKJRXY8585Z273",1,"MIT","https:\u002F\u002Fgithub.com\u002Fdiego-minguzzi-sw\u002Fai-coding\u002Fblob\u002Fmain\u002Fskills\u002Fcpp-create-file\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cpp-create-file\ndescription: Use it to create a new C++ file\n---\nInstructions to create a C++ header or source file, in the path \u003Csource-path> with name \u003Cfilename>\nThis skill is intended to be used in C++ projects only.\n\nRequired parameters:\n  - \u003Csource-path> : the path where the new C++ source file will be created.\n  - \u003Cfilename> : the name of the C++ source file to create, including either the .h or the .cpp extension\n\n# Steps to create a new C++ file\n\n## Check whether the file already exists\nIf the file already exists, stop and notify the user that the file will not be overwritten.\n\n## Check whether the directory \u003Csource-path> already exists\nIf \u003Csource-path> does not exist, create it before creating the file.\n\n## Ask for confirmation to the user\nBefore adding the file, ask confirmation to the user, saying:\n\"About to create the file \u003Csource-path>\u002F\u003Cfilename> . Proceed?\"\n\nIf the user denies, stop immediately.\n\n## Find environment information\n\n### Username\nThe username of the current user is required to populate the file header.\nUse the skill \u002Futils-get-username to retrieve the username.\nAssign the username to the variable [username] .\n\n\n## Create the file header\nBefore creating the C++ source file, read assets\u002Fsource_header.cpp relative to this SKILL.md.\nRead the contents of `assets\u002Fsource_header.cpp` into a variable called `header`.\nIn `header` substitute [username] with the username found at the step before.\n\nIn the new C++ source file, replace every occurrence of the string `[username]` in the `header` variable with the retrieved username.\n\n## Create the C++ source file\nCreate a file with filename \u003Csource-path>\u002F\u003Cfilename>\n\nThe C++ source file must contain the header\n\n```c++\n[header]\n```\n","Instructions to create a C++ header or source file, in the path \u003Csource-path> with name \u003Cfilename>\nThis skill is intended to be used in C++ projects only.\n\nRequired parameters:\n  - \u003Csource-path> : the path where the new C++ source file will be created.\n  - \u003Cfilename> : the name of the C++ source file to create, including either the .h or the .cpp extension\n\n# Steps to create a new C++ file\n\n## Check whether the file already exists\nIf the file already exists, stop and notify the user that the file will not be overwritten.\n\n## Check whether the directory \u003Csource-path> already exists\nIf \u003Csource-path> does not exist, create it before creating the file.\n\n## Ask for confirmation to the user\nBefore adding the file, ask confirmation to the user, saying:\n\"About to create the file \u003Csource-path>\u002F\u003Cfilename> . Proceed?\"\n\nIf the user denies, stop immediately.\n\n## Find environment information\n\n### Username\nThe username of the current user is required to populate the file header.\nUse the skill \u002Futils-get-username to retrieve the username.\nAssign the username to the variable [username] .\n\n\n## Create the file header\nBefore creating the C++ source file, read assets\u002Fsource_header.cpp relative to this SKILL.md.\nRead the contents of `assets\u002Fsource_header.cpp` into a variable called `header`.\nIn `header` substitute [username] with the username found at the step before.\n\nIn the new C++ source file, replace every occurrence of the string `[username]` in the `header` variable with the retrieved username.\n\n## Create the C++ source file\nCreate a file with filename \u003Csource-path>\u002F\u003Cfilename>\n\nThe C++ source file must contain the header\n\n```c++\n[header]\n```\n",{"name":5,"description":7},"main","26d912625dd9a12b0a24b20e4eec245c7e51f12f","skills\u002Fcpp-create-file",0,"https:\u002F\u002Fgithub.com\u002Fdiego-minguzzi-sw\u002Fai-coding","https:\u002F\u002Fgithub.com\u002Fdiego-minguzzi-sw","2026-11-15 02:24:47",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add diego-minguzzi-sw\u002Fai-coding --skill cpp-create-file",{"tool":36,"command":37},"bunx","bunx skills add diego-minguzzi-sw\u002Fai-coding --skill cpp-create-file",{"tool":39,"command":40},"pnpm","pnpm dlx skills add diego-minguzzi-sw\u002Fai-coding --skill cpp-create-file","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdiego-minguzzi-sw\u002Fai-coding\u002Fblob\u002Fmain\u002Fskills\u002Fcpp-create-file\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"assets\u002Fsource_header.cpp","ASSET","资产文件",214,"https:\u002F\u002Fgithub.com\u002Fdiego-minguzzi-sw\u002Fai-coding\u002Fblob\u002Fmain\u002Fskills\u002Fcpp-create-file\u002Fassets\u002Fsource_header.cpp",[51,58,65,71,78,85],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7EFSK00N89VJN4Z7F57WERA","utils-get-username","Use it to get the name of the user running the skill.","https:\u002F\u002Fgithub.com\u002Fdiego-minguzzi-sw\u002Fai-coding\u002Fblob\u002Fmain\u002Fskills\u002Futils-get-username\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7EFSFNN3JHBRC5FM4TK4J38","sparring-partner","When I plan a task, act like a sparring partner.","https:\u002F\u002Fgithub.com\u002Fdiego-minguzzi-sw\u002Fai-coding\u002Fblob\u002Fmain\u002Fskills\u002Fsparring-partner\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"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":68,"categories":69,"keywords":70,"publishedAt":18},"01M7EFSCJKKJPPR0RZ7FNNA9T1","rs-create-lib","https:\u002F\u002Fgithub.com\u002Fdiego-minguzzi-sw\u002Fai-coding\u002Fblob\u002Fmain\u002Fskills\u002Frs-create-lib\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},"01M7EFS88SWRW6P8QNH8Y4B565","rs-create-lib-mod","Use with Rust, to create a new module in the project library.","https:\u002F\u002Fgithub.com\u002Fdiego-minguzzi-sw\u002Fai-coding\u002Fblob\u002Fmain\u002Fskills\u002Frs-create-lib-mod\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7EFS4DRWFP231PHGH4987MF","rs-create-file","Use it to create a new Rust source file","https:\u002F\u002Fgithub.com\u002Fdiego-minguzzi-sw\u002Fai-coding\u002Fblob\u002Fmain\u002Fskills\u002Frs-create-file\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7EFS1NW4T7F9A567Q2E2JD5","rs-add-lib-mod-file","Use it to create a Rust source file in a library module","https:\u002F\u002Fgithub.com\u002Fdiego-minguzzi-sw\u002Fai-coding\u002Fblob\u002Fmain\u002Fskills\u002Frs-add-lib-mod-file\u002FSKILL.md",[],[]]