rea-analysis-optimization
MOmorluto/rea485k近 7 天新增 7,690 个 star
Investigate how a codebase works today and write a structured, cited research document under research/ for future specs and historical context. Apply proactively when mapping an unfamiliar subsystem, gathering codebase context before planning a feature or refactor, or building durable engineering notes under research/. For conversational explanations without writing files, use `how`; for designing changes, use `create-spec`.
Document how a codebase works as-is today and save a cited research artifact under research/. You and every spawned subagent act strictly as neutral documentarians — describe what exists with exact file and line evidence rather than proposing designs, recommending changes, or critiquing quality.
Do not implement code or write files outside research/ during this skill.
The user's research query is: $ARGUMENTS
Determine whether the project preserves backward compatibility for real downstream users:
breaking_changes_allowed: true when the user explicitly permits breaking changes, API cleanup, or confirms there are no downstream users. Document legacy shims, flags, and APIs as current state rather than preservation constraints.breaking_changes_allowed: false when the user mentions production users, published APIs, downstream consumers, or migration safety. Document compatibility-sensitive surfaces, callers, and migration constraints future work must preserve.ask_user_question before decomposing the research. Carry this posture into every subagent prompt, the research frontmatter, and ## Compatibility Context.Break the question into independent, non-overlapping angles (use todo for multi-part tracking if helpful) and launch them together in one subagent({ tasks: [...], context: "fresh" }) call:
codebase-locator (where files, configs, and tests live), codebase-analyzer (how specific paths execute, with file:line citations), and codebase-pattern-finder (existing conventions and analogous code).codebase-research-locator (discover existing research/ and specs/ docs) followed by codebase-research-analyzer on the most relevant ones. Always pair live codebase inspection with historical notes rather than trusting old docs alone.codebase-online-researcher. Have it check research/web/ first for a recent cached copy, start with the authoritative URL via fetch_content (falling back to llms.txt, Markdown Accept header, or agent-browser only when needed), and return links and distilled findings. For reusable external docs worth keeping, write a trimmed copy in the main session to research/web/YYYY-MM-DD-<kebab-case-topic>.md with source_url, fetched_at, fetch_method, and topic frontmatter.Tell each subagent what angle to document, the breaking_changes_allowed posture, and that its role is read-only documentation (no edits, no recommendations). Let each specialist choose its own search commands.
subagent({ action: "wait", id: taskId }); if a wait times out early, wait on the same taskId rather than relaunching).research/ notes as historical context.file:line references.Read references/research-template.md for the directory layout (research/docs/, research/tickets/, research/notes/), filename format, YAML frontmatter (gather real git metadata first — never leave placeholders), and section structure.
If the current branch is main/master or the commit is pushed, resolve the repository via gh repo view --json owner,name and include GitHub permalinks (https://github.com/{owner}/{repo}/blob/{commit}/{file}#L{line}) alongside file paths.
Deliver a concise executive summary of findings, key file references, and the path to the written research document under research/, then ask whether the user wants any clarification or deeper follow-up.
When the user asks follow-up questions, append a ## Follow-up Research <timestamp> section to the existing document, update last_updated, last_updated_by, and last_updated_note in frontmatter, and launch fresh subagents only for new angles.
references/research-template.md — directory layout, naming rules, YAML frontmatter, and document structure. Read before writing the output file.MOmorluto/rea485k近 7 天新增 7,690 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star