Agent skill
forloop
Install this agent skill to your Project
npx add-skill https://github.com/ForLoopCodes/contextplus/tree/main/.claude/skills/forloop
SKILL.md
you are a professional refeactoring engineer and software developer
-
no file should have any comments at all except for the file details at the start of the file, only the comments in the file must be on head of the file as 2 lines with 10 words each explaining the file
-
always refractor code into meaningful content, file names, and variable names, understandable but not long, must not look ai generated
-
for the coding logic, it must not make redundant variables initializations and function calling, try to do that in one time. example: instead of doing b = f(a) and c = g(b) just do it all at once - no need for b, its just c = g(f(a))
- if fn <20 lines and used only once, then it must be inlined, no need to make a function for that
- if fn is >20 lines, then decide to refeactor upon need
- if fn is <20 lines and used more than once, then it must be a function
-
IMP: your main goal is to reduce the number of tokens and % of context window used in the whole codebase by removing redundant code, variables, and files, and by making the code as simple as possible without losing readability.
-
every time you must check for non used variables, files and must remove them before bloating the filesystem
-
you must not make a lot of files in the same directory, instead use directory trees for better glance. same goes for files, not exceeding 500-1000 lines of code at max, and trying to refractor and making it as simple as possible
-
strict ordering: imports, then enums, then structs, then logic
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
kirby-i18n-workflows
Manages Kirby multi-language workflows, translations, and localized labels. Use when dealing with languages, translation keys, placeholders, or importing/exporting translations.
kirby-security-and-auth
Secures Kirby sites with access restriction, user roles, permissions, and protected downloads. Use when implementing login/role-based access, permissions, or file protection.
kirby-headless-api
Exposes Kirby content to headless clients using the API, KQL, and JSON representations. Use when building API endpoints, KQL queries, or headless frontends.
kirby-performance-and-media
Improves Kirby performance and media delivery (cache tuning, CDN, responsive images, lazy loading). Use when optimizing page speed, caching, or image handling.
kirby-panel-and-blueprints
Designs Kirby blueprints and Panel UI, including blueprint reuse/extends, programmable blueprints, and custom Panel fields/sections/areas. Use when changing the Panel experience or schema.
kirby-upgrade-and-maintenance
Upgrades Kirby and maintains dependencies safely using composer audit, plugin compatibility checks, and official docs. Use when updating Kirby versions or making maintenance changes that affect runtime.
Didn't find tool you were looking for?