1.6 KiB
1.6 KiB
Local Development Setup
This runbook covers setting up a local development environment for
molecule-skill-code-review.
Prerequisites
- Python 3.11+
ghCLI authenticated- Write access to
Molecule-AI/molecule-ai-plugin-molecule-skill-code-review
Clone & Bootstrap
git clone https://git.moleculesai.app/molecule-ai/molecule-ai-plugin-molecule-skill-code-review.git
cd molecule-ai-plugin-molecule-skill-code-review
Validating Plugin Structure
python3 -c "import yaml; yaml.safe_load(open('plugin.yaml'))"
echo "plugin.yaml OK"
python3 -c "
import yaml, os
with open('plugin.yaml') as f:
data = yaml.safe_load(f)
for skill in data.get('skills', []):
path = f'skills/{skill}/SKILL.md'
exists = os.path.exists(path)
print(f'[{\"OK\" if exists else \"MISSING\"}] {path}')
"
Testing the Code Review Skill
The harness wrapper is provided by the Molecule AI platform at runtime. To test:
- Install the plugin in a test workspace
- Open a PR in a test repo
- Run the
code-reviewskill against the PR diff - Verify findings appear in each relevant category
Troubleshooting
No findings on a deliberately buggy PR
- The skill uses heuristics — it may miss subtle bugs
- Run against a PR with known issues and verify at least some are caught
- Check the skill's criteria are correctly loaded
Review times out on large PRs
- Break large PRs into smaller chunks for review
- The skill may need a token or time limit for very large diffs
Related
skills/code-review/SKILL.md— full review criteria and usage