Agent skill

forloop

Stars 1,760
Forks 136

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

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results