agentleFS
OpenSAEOpenSAE/EverResearch/.agents/skills/maintain-code/SKILL.md

maintain-code

Skill130 starsChanged 6 days agoApache-2.0View on GitHub

Review, fix, or refactor research code and its callers. Trace a normal invocation through its dependencies and verify that it still delivers the requested behavior.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use for code review, bug fixes, refactors, shared implementation, and source placement.

    line 14
  2. Very specific:

    Before applying EverResearch rules to project edits, check the project's maintenance status with rh projects project status <project-root>.

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Maintain research code

Purpose and main function

Trace a research project's real entry points, fix confirmed problems in the responsible code, and verify the behavior its callers rely on.

Scope of application

Use for code review, bug fixes, refactors, shared implementation, and source placement. Start from the user's request and the project's documented commands. Use maintain-project for whole-project coordination and maintain-optional for standalone scripts, tests, and documentation.

Check project maintenance before editing

Before applying EverResearch rules to project edits, check the project's maintenance status with rh projects project status <project-root>. If no mode has been selected, follow the repository's own rules. When the user asks to use EverResearch on that project, hand off to maintain-project for authorized setup before applying these rules. Read-only inspection and planning can proceed before setup.

With managed, use the reported guide and follow the authorized request. If the connection is unavailable or its status cannot be verified, explain the gap and resolve it before applying EverResearch rules.

Follow the actual call

  1. Identify the entry point, intended result, actual callers, and behavior to preserve. Read the selected code, its tests, and the project instructions.
  2. Trace imports, dynamic loading, subprocesses, and file access to their actual targets. Run python -B <skill-directory>/check_dependencies.py <project-root> for affected core code before the change and after a repair. Locate the script next to this SKILL.md.
  3. Core code in base/, datasets/, models/, and tasks/ can depend on other core components, the Python standard library, and installed dependencies. Keep project runtime dependencies within the core. Core components may write run outputs to experiment/.
  4. Follow report_before_fix, which is on by default. Before an authorized repair, summarize the observed problem, its cause, and the proposed change. Make the smallest change that fixes the actual caller, and verify it through the project's normal entry point. Record the changed paths, observed result, and any check that could not run.

Read details when needed

  • Code review covers functional gaps, evidence, trade-offs, and reporting. Read it for a functional review or when judging whether a change is needed.
  • Code placement covers ownership, directory limits, duplicate logic, compatibility, and result paths. Read it for a move, consolidation, layout repair, or downstream compatibility check. Use rh projects project check --json <project-root> for layout changes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.