[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E429NPTSP2J0DTVM4ZJASE":3,"skill-same:01M6E429NPTSP2J0DTVM4ZJASE":72},{"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":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M6E429NPTSP2J0DTVM4ZJASE","pseudocode-to-r",null,"Translate pseudocode package to an R package whilst preserving behavior and generating verification tests. Use when translating pseudocode  to R","stata-translations\u002FStata2R","stata-translations","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F278628511?v=4","01M6E421S96PPWG3FEP837A5T5","01M6E421XKPSAD6P0VJQQM7299",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstata-translations\u002FStata2R\u002Fblob\u002Fmain\u002Fstata-translation\u002Fskills\u002Fpseudocode-to-r\u002FSKILL.md",[],[18,19,20,21,22,23,24,25],"pseudocode","pseudocode to r","translate","verification","package","behavior","use","tests","2026-11-10 10:12:30",false,"---\nname: pseudocode-to-r\ndescription: Translate pseudocode package to an R package whilst preserving behavior and generating verification tests. Use when translating pseudocode  to R\n---\n\n# Pseudocode to R \n\nPrompt the user for a location to create the new package. Suggest {..\u002Fpackage-name R}\n\n## 1. Setup\n- Use renv to create a local environment and use this to install any required packages.\n- Install the languageserver package to enable R LSP\n\n## 2. Code translation\nTranslate the code in the pseudocode directory to an R package, whilst preserving behaviour, adapting idioms, and generating verification tests.\n- Preserve original behaviour exactly\n- Follow R tidyverse language idioms and conventions \n- Maintain code structure when possible.\n- Add appropriate R error handling.\n- Include necessary imports and dependencies\n\n## 3. Create a Shiny GUI to recreate any dlg files in the package directory.\n\n## 4. Generate Tests\n\nCreate tests to verify package functions:\n\n**Test generation approach:**\n1. Create new tests covering:\n   - Basic functionality for each function\u002Fmethod\n   - Edge cases (empty inputs, null values, boundary conditions)\n   - Error handling and exceptions\n   - Integration between components\n\n\n## 5. Complete Documentation\n\nCompare the documentation in the .sthlp and examples\u002F directory with the R directory. Port any missing elements from stata to the R package.\n\nLook through the source files in the package for any additional documentation or history information and port it to the R package.\n\nUse examples to create vignettes\n\n### 6. Add open source infrastructure\n- Copy the license file from the original package to the r package.\n- Add a contributing guide to the r package\n- Add a github workflow to run r tests on push to main, pull requests, and workflow dispatch\n- add a .gitignore to r package\n- Add a README to the r package\n\n","# Pseudocode to R \n\nPrompt the user for a location to create the new package. Suggest {..\u002Fpackage-name R}\n\n## 1. Setup\n- Use renv to create a local environment and use this to install any required packages.\n- Install the languageserver package to enable R LSP\n\n## 2. Code translation\nTranslate the code in the pseudocode directory to an R package, whilst preserving behaviour, adapting idioms, and generating verification tests.\n- Preserve original behaviour exactly\n- Follow R tidyverse language idioms and conventions \n- Maintain code structure when possible.\n- Add appropriate R error handling.\n- Include necessary imports and dependencies\n\n## 3. Create a Shiny GUI to recreate any dlg files in the package directory.\n\n## 4. Generate Tests\n\nCreate tests to verify package functions:\n\n**Test generation approach:**\n1. Create new tests covering:\n   - Basic functionality for each function\u002Fmethod\n   - Edge cases (empty inputs, null values, boundary conditions)\n   - Error handling and exceptions\n   - Integration between components\n\n\n## 5. Complete Documentation\n\nCompare the documentation in the .sthlp and examples\u002F directory with the R directory. Port any missing elements from stata to the R package.\n\nLook through the source files in the package for any additional documentation or history information and port it to the R package.\n\nUse examples to create vignettes\n\n### 6. Add open source infrastructure\n- Copy the license file from the original package to the r package.\n- Add a contributing guide to the r package\n- Add a github workflow to run r tests on push to main, pull requests, and workflow dispatch\n- add a .gitignore to r package\n- Add a README to the r package\n\n",{"name":5,"description":7},"main","fc1e62ead7ed098aca820549b2fd4e25a07a2be1","stata-translation\u002Fskills\u002Fpseudocode-to-r",0,"https:\u002F\u002Fgithub.com\u002Fstata-translations\u002FStata2R","https:\u002F\u002Fgithub.com\u002Fstata-translations","2026-07-13 22:23:22",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add stata-translations\u002FStata2R --skill pseudocode-to-r",{"tool":44,"command":45},"bunx","bunx skills add stata-translations\u002FStata2R --skill pseudocode-to-r",{"tool":47,"command":48},"pnpm","pnpm dlx skills add stata-translations\u002FStata2R --skill pseudocode-to-r","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstata-translations\u002FStata2R\u002Fblob\u002Fmain\u002Fstata-translation\u002Fskills\u002Fpseudocode-to-r\u002FSKILL.md",true,[52,58,62,66],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"_AIWF_IMPORT.json","REFERENCE","参考文档",349,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Fskills\u002Fgithub_imports\u002Fexperiment-designer\u002F_AIWF_IMPORT.json",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fexperiment-playbook.md",1934,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Fskills\u002Fgithub_imports\u002Fexperiment-designer\u002Freferences\u002Fexperiment-playbook.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fstatistics-reference.md",1546,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Fskills\u002Fgithub_imports\u002Fexperiment-designer\u002Freferences\u002Fstatistics-reference.md",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Fsample_size_calculator.py","SCRIPT","脚本",3024,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Fskills\u002Fgithub_imports\u002Fexperiment-designer\u002Fscripts\u002Fsample_size_calculator.py",[73,86,94,104,114,129],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":26},"01M6E42G9WS4HNBCHE8AG0DR4N","translation-strategy","Decide whether it is worth translating a Stata package to other programming languages. Use before performing any translation.","https:\u002F\u002Fgithub.com\u002Fstata-translations\u002FStata2R\u002Fblob\u002Fmain\u002Fstata-translation\u002Fskills\u002Ftranslation-strategy\u002FSKILL.md",[],[80,81,82,83,24,84,85,22],"translation strategy","translation","strategy","programming languages","decide","programming",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":26},"01M6E42EV4DR2CH8CW4NQ5BXRR","stata-to-pseudocode","Translare Stata to psuedocode. Use before translating to other languages.","https:\u002F\u002Fgithub.com\u002Fstata-translations\u002FStata2R\u002Fblob\u002Fmain\u002Fstata-translation\u002Fskills\u002Fstata-to-pseudocode\u002FSKILL.md",[],[93,18,24],"stata to pseudocode",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":26},"01M6E42CY639G2FGXD2PGF08SM","run-stata","Use the Rstata package to run stata code","https:\u002F\u002Fgithub.com\u002Fstata-translations\u002FStata2R\u002Fblob\u002Fmain\u002Fstata-translation\u002Fskills\u002Frun-stata\u002FSKILL.md",[],[101,102,103,24,22],"run stata","run","code",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":26},"01M6E428DB5AAH0TA4F5TFW5HZ","hello","Greet the user with a friendly message","https:\u002F\u002Fgithub.com\u002Fstata-translations\u002FStata2R\u002Fblob\u002Fmain\u002Fstata-translation\u002Fskills\u002Fhello\u002FSKILL.md",[],[106,111,112,113],"message","greet","user",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":26},"01M6E425Z5EC1X371AVEZKQ8QK","add-stata-tests-r","Iterates through each file in stata testing directory, summarises matching tests in R, adds missing tests, and summarises again. runs when user askes to \"compare tests\"","https:\u002F\u002Fgithub.com\u002Fstata-translations\u002FStata2R\u002Fblob\u002Fmain\u002Fstata-translation\u002Fskills\u002Fadd-stata-tests-r\u002FSKILL.md",[],[121,122,25,123,124,125,126,127,113,128],"add stata tests r","add","directory","compare","missing","testing","matching","file",{"skillNo":130,"name":131,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":26},"01M6E423FT63VT1X30VA8AFW9S","add-missing-tests","https:\u002F\u002Fgithub.com\u002Fstata-translations\u002FStata2R\u002Fblob\u002Fmain\u002Fstata-translation\u002Fskills\u002Fadd-missing-tests\u002FSKILL.md",[],[135,25,122,125,123,128,113,127,126,124],"add missing tests"]