CHARLS Paper Reproduction Guide
xjtulyc/MedgeClaw
Guides an agent through reproducing papers built on the CHARLS health and retirement survey, from variable mapping to cognition, depression and isolation scores.
Builds clear, executable, and auditable inclusion and exclusion criteria for biomedical and clinical research protocols.
$ npx skills add aipoch/medical-research-skills --skill inclusion-exclusion-criteria-builder -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install aipoch/medical-research-skills inclusion-exclusion-criteria-builder --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'awesome-med-research-skills/Protocol Design/inclusion-exclusion-criteria-builder' .claude/skills/inclusion-exclusion-criteria-builder && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "inclusion-exclusion-criteria-builder" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Protocol%20Design/inclusion-exclusion-criteria-builder into .claude/skills/inclusion-exclusion-criteria-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inclusion-exclusion-criteria-builder", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Protocol%20Design/inclusion-exclusion-criteria-builderType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add aipoch/medical-research-skills --skill inclusion-exclusion-criteria-builder -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install aipoch/medical-research-skills inclusion-exclusion-criteria-builder --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/'awesome-med-research-skills/Protocol Design/inclusion-exclusion-criteria-builder' .agents/skills/inclusion-exclusion-criteria-builder && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "inclusion-exclusion-criteria-builder" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Protocol%20Design/inclusion-exclusion-criteria-builder into .agents/skills/inclusion-exclusion-criteria-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inclusion-exclusion-criteria-builder", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aipoch/medical-research-skills --skill inclusion-exclusion-criteria-builder -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install aipoch/medical-research-skills inclusion-exclusion-criteria-builder --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/'awesome-med-research-skills/Protocol Design/inclusion-exclusion-criteria-builder' .cursor/skills/inclusion-exclusion-criteria-builder && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "inclusion-exclusion-criteria-builder" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Protocol%20Design/inclusion-exclusion-criteria-builder into .cursor/skills/inclusion-exclusion-criteria-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inclusion-exclusion-criteria-builder", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/aipoch/medical-research-skills.git --path 'awesome-med-research-skills/Protocol Design/inclusion-exclusion-criteria-builder'--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add aipoch/medical-research-skills --skill inclusion-exclusion-criteria-builder -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install aipoch/medical-research-skills inclusion-exclusion-criteria-builder --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/'awesome-med-research-skills/Protocol Design/inclusion-exclusion-criteria-builder' .gemini/skills/inclusion-exclusion-criteria-builder && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "inclusion-exclusion-criteria-builder" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Protocol%20Design/inclusion-exclusion-criteria-builder into .gemini/skills/inclusion-exclusion-criteria-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inclusion-exclusion-criteria-builder", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install aipoch/medical-research-skills inclusion-exclusion-criteria-builderInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add aipoch/medical-research-skills --skill inclusion-exclusion-criteria-builder -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/'awesome-med-research-skills/Protocol Design/inclusion-exclusion-criteria-builder' .github/skills/inclusion-exclusion-criteria-builder && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "inclusion-exclusion-criteria-builder" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Protocol%20Design/inclusion-exclusion-criteria-builder into .github/skills/inclusion-exclusion-criteria-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inclusion-exclusion-criteria-builder", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add aipoch/medical-research-skills --skill inclusion-exclusion-criteria-builder -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install aipoch/medical-research-skills inclusion-exclusion-criteria-builder --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/'awesome-med-research-skills/Protocol Design/inclusion-exclusion-criteria-builder' .opencode/skills/inclusion-exclusion-criteria-builder && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "inclusion-exclusion-criteria-builder" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Protocol%20Design/inclusion-exclusion-criteria-builder into .opencode/skills/inclusion-exclusion-criteria-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "inclusion-exclusion-criteria-builder", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
inclusion-exclusion-criteria-builderBuilds clear, executable, and auditable inclusion and exclusion criteria for biomedical and clinical research protocols.
Inclusion Exclusion Criteria Builder is an agent skill from aipoch/medical-research-skills. Builds clear, executable, and auditable inclusion and exclusion criteria for biomedical and clinical research protocols. Always use this skill when a user needs to translate a target population into operational screening rules tied to chart fields, time windows, tests, procedures, prior therapies, exclusions, and reviewable edge cases. Focus on protocol-stage precision, ambiguity reduction, auditability, and screening reproducibility rather than generic study design advice.
Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including reference files (for example `eval_report_inclusion-exclusion-criteria-builder_result.json`, `references/ambiguity-and-edge-case-rules.md` and `references/clarification-gating-rules.md`).
It sits in Research & Science, covering Clinical and healthcare research, Experimental design and Reproducible research. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Inclusion Exclusion Criteria Builder loads about 4.2k tokens when it runs, and up to ~5.9k if it reads all its reference files. Until then it costs about 129 tokens; SKILL.md has 2,032 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 2,032 words, ~4,191 tokens.
.claude/skills/inclusion-exclusion-criteria-builder/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.You are an expert protocol-stage eligibility-framing specialist for biomedical and clinical research.
Task: Convert a target study population into a clear, executable, auditable inclusion-and-exclusion framework that can be applied consistently by reviewers, study coordinators, chart abstractors, or data-screening teams.
This skill is for users who have a disease area, intervention context, study objective, biomarker idea, cohort concept, or target population in mind, but need help translating that intent into:
This skill must be precise, skeptical, and implementation-aware. It should actively search for vague population wording, hidden screening ambiguity, contradictory criteria, unverifiable requirements, and criteria that will be hard to operationalize in real screening.
This skill must not confuse:
The references/ directory is not optional background material. It defines the operational rules that must be actively used while running this skill.
Use the reference modules as follows:
references/clarification-gating-rules.md → use before drafting long-form eligibility outputs and whenever user intent or population boundaries are underspecified.references/population-framing-rules.md → use when translating the user’s target population into an operational source population in Sections A and B.references/inclusion-criteria-rules.md → use when drafting inclusion rules in Sections C and F.references/exclusion-criteria-rules.md → use when drafting exclusion rules in Sections D and F.references/time-window-and-index-rules.md → use when defining timing anchors, baseline windows, prior-treatment windows, washout periods, and eligibility timing in Sections B, C, D, and E.references/field-operationalization-rules.md → use when tying criteria to chart fields, diagnosis codes, laboratory tests, pathology, imaging, medications, or procedures in Sections E and F.references/ambiguity-and-edge-case-rules.md → use when identifying vague wording, overlap, contradiction, or screening uncertainty in Sections G and H.references/output-section-guidance.md → use as the formatting and content control standard for Sections A–J.references/workflow-step-template.md → use to keep the reasoning sequence aligned with the required step order.If any output section is generated without using its corresponding reference module, the output should be treated as incomplete.
Valid input: one or more of the following:
Examples:
Out-of-scope — respond with the redirect below and stop:
"This skill is designed to build protocol-stage inclusion and exclusion criteria for biomedical research. Your request ([restatement]) is outside that scope because it requires [patient-specific eligibility judgment / live-record screening execution / treatment advice / non-biomedical support]."
This skill has a mandatory clarification gate.
If the user has not clearly specified enough of the following to define an executable target population, you must ask focused follow-up questions before producing a long eligibility framework:
When clarification is needed:
This rule is mandatory. Broad, underspecified requests should trigger clarification rather than premature completion.
This skill should:
This skill should not:
This skill can be used for:
If the study context is not explicitly stated, infer the most likely context from the user’s description, but label any such inference as an assumption.
Use references/clarification-gating-rules.md to decide whether the request is specific enough for long-form eligibility drafting. If not, ask narrowing questions first.
Use references/population-framing-rules.md to define the likely disease context, setting, index moment, and source population.
Use references/inclusion-criteria-rules.md and references/time-window-and-index-rules.md to decide what must be true for a participant or record to qualify.
Use references/exclusion-criteria-rules.md and references/time-window-and-index-rules.md to identify which factors should exclude a participant or record and why.
Use references/field-operationalization-rules.md to tie important criteria to concrete data fields, tests, dates, procedures, pathology, medications, or specimen evidence.
Use references/ambiguity-and-edge-case-rules.md to identify criteria that are vague, redundant, contradictory, circular, or likely to be inconsistently applied.
Use references/output-section-guidance.md to produce a structured final output with executable criteria and reviewer-facing notes.
When sufficient detail exists to draft the framework, always output the following sections.
Briefly restate the likely study type, target population, study setting, and any assumptions you had to make.
Define where eligible records or participants would come from and what initial screening frame is implied.
Present the inclusion criteria in clear, numbered form.
Present the exclusion criteria in clear, numbered form.
State the key eligibility timing logic, such as diagnosis window, treatment line, baseline period, test timing, washout period, specimen timing, or follow-up requirement.
Use a table with columns such as:
This table is strongly recommended whenever the criteria must be mapped to chart review, EHR extraction, or auditable screening.
Identify unclear wording, contradictory logic, hidden reviewer discretion, unverifiable requirements, and overrestriction risks.
List the main scenarios where two reviewers might disagree and state how those cases should be handled.
If any important scope elements remain uncertain, list the minimum additional questions required to finalize the criteria.
Label the current draft as one of:
If the user provides draft criteria, do not simply rewrite them. First identify:
Then revise the criteria in a way that preserves the study intent while improving executability.
This skill should not:
A high-quality output from this skill should:
© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 10 other files (references) in awesome-med-research-skills/Protocol Design/inclusion-exclusion-criteria-builder of aipoch/medical-research-skills.
Open the folder on GitHubat commit 686e09d
Inclusion Exclusion Criteria Builder next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Inclusion Exclusion Criteria Builder this skillaipoch/medical-research-skills | 1.9k | — | ~4.2k | Automated safety check: Pass | MIT | |
| CHARLS Paper Reproduction Guidexjtulyc/MedgeClaw | 617 | 1 repos | ~1.8k | Automated safety check: Pass | None | |
| PacsomaticK-Dense-AI/scientific-agent-skills | 48k | 1 repos | ~1.6k | Automated safety check: Pass | MIT | |
| Light Experiment CodingLight0305/Light-skills | 640 | — | ~2.3k | Automated safety check: Pass | MIT | |
| Clinical Protocol Draftingaws-samples/amazon-bedrock-agents-healthcare-lifesciences | 274 | — | ~1.4k | Automated safety check: Pass | MIT-0 | |
| Ablation Study Plannerwanshuiyin/Auto-claude-code-research-in-sleep | 17k | — | ~1.3k | Automated safety check: Notes | MIT |
xjtulyc/MedgeClaw
Guides an agent through reproducing papers built on the CHARLS health and retirement survey, from variable mapping to cognition, depression and isolation scores.
K-Dense-AI/scientific-agent-skills
Prepares and launches nf-core/pacsomatic matched tumor-normal PacBio HiFi genomics workflows from unaligned BAM inputs.
Light0305/Light-skills
Builds the code for a frozen research experiment test-first, with leakage controls, seed handling and saved evidence so results can be rerun and audited.
aws-samples/amazon-bedrock-agents-healthcare-lifesciences
A skill your agent uses when drafting clinical trial protocol sections (objectives, background, study design) grounded in ICH guidelines (E6, E8, E9) and FDA regulations (21 CFR Part 312).
wanshuiyin/Auto-claude-code-research-in-sleep
Plans the ablation studies a paper needs after main results support its claim: Codex designs them like a reviewer, Claude Code checks feasibility and runs them.
alirezarezvani/claude-skills
A skill your agent uses when designing a prospective clinical study before submission — selecting and classifying endpoints (primary / key-secondary / exploratory, with surrogate-endpoint flagging)…
aipoch/medical-research-skills
Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…
aipoch/medical-research-skills
Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.
aipoch/medical-research-skills
Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.
aipoch/medical-research-skills
A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.
aipoch/medical-research-skills
Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…
aipoch/medical-research-skills
Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.
Categories
Builds clear, executable, and auditable inclusion and exclusion criteria for biomedical and clinical research protocols. Inclusion Exclusion Criteria Builder is an agent skill from aipoch/medical-research-skills. Builds clear, executable, and auditable inclusion and exclusion criteria for biomedical and clinical research protocols.
Inclusion Exclusion Criteria Builder fits situations like: A user needs to translate a target population into operational screening rules tied to chart fields; prior therapies; reviewable edge cases.
Run `npx skills add aipoch/medical-research-skills --skill inclusion-exclusion-criteria-builder -a claude-code`. Or copy the skill folder (awesome-med-research-skills/Protocol Design/inclusion-exclusion-criteria-builder in aipoch/medical-research-skills) into .claude/skills/inclusion-exclusion-criteria-builder in your project. Claude Code loads it when a task matches its description.
Run `npx skills add aipoch/medical-research-skills --skill inclusion-exclusion-criteria-builder -a codex`. Or copy the skill folder (awesome-med-research-skills/Protocol Design/inclusion-exclusion-criteria-builder in aipoch/medical-research-skills) into .agents/skills/inclusion-exclusion-criteria-builder in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill inclusion-exclusion-criteria-builder -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/inclusion-exclusion-criteria-builder, .gemini/skills/inclusion-exclusion-criteria-builder, .github/skills/inclusion-exclusion-criteria-builder and .opencode/skills/inclusion-exclusion-criteria-builder in your project.
SKILL.md names no scripts, command-line tools or credentials: Inclusion Exclusion Criteria Builder is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Inclusion Exclusion Criteria Builder is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Inclusion Exclusion Criteria Builder: CHARLS Paper Reproduction Guide (xjtulyc/MedgeClaw, 617 stars), Pacsomatic (K-Dense-AI/scientific-agent-skills, 48k stars), Light Experiment Coding (Light0305/Light-skills, 640 stars) and Clinical Protocol Drafting (aws-samples/amazon-bedrock-agents-healthcare-lifesciences, 274 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.
Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.