lisa-integration-test
Skill4 starsChanged 3 months agoMITView on GitHub
This skill should be used when integration testing Lisa against a downstream project. It applies Lisa templates, verifies the project still builds, and if anything breaks, fixes the templates upstream in Lisa and retries until the project passes all checks.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .claude-pr/CLAUDE.mdCLAUDE.md
- claude-code-actionSkill
- harness-parity-councilSkill
- lisa-enforcement-censusSkill
- lisa-learnSkill
- lisa-repair-intakeSkill
- lisa-review-projectSkill
- lisa-update-projectsSkill
- lisa-wiki-ingestSkill
- lisa-wiki-setupSkill
- lisa-wiki-usageSkill
- mutation-testingSkill
- analyze-pluginSkill
- claude-code-actionSkill
- implement-plugin-paritySkill
- lisa-codex-paritySkill
- lisa-coding-agent-paritySkill
- lisa-enforcement-censusSkill
- lisa-integration-testSkill
- lisa-learnSkill
- lisa-review-projectSkill
- lisa-update-projectsSkill
- lisa-wiki-ingestSkill
- lisa-wiki-setupSkill
- lisa-wiki-usageSkill
- mutation-testingSkill
- plugin-parity-driftSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 3 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Check the project's working directory is clean: git -C <project-path> status --porcelain
- Distinctive: line 27
If dirty, tell the user and stop: "The project has uncommitted changes.
- Very specific: line 31
Before applying Lisa, record the project's current state:
- Very specific: line 33
Run git -C <project-path> log --oneline -1 to note the current HEAD
- Very specific: line 38
Run from the Lisa directory:
- Very specific: line 44
If Lisa fails, report the error and stop.
- Very specific: line 48
Run git -C <project-path> status --short to see what Lisa modified.
- Very specific: line 50
If nothing changed, report "Lisa applied cleanly with no changes" and stop.
- Distinctive: line 54
Run the project's verification commands in order.
- Distinctive: line 77
If any verification step fails:
- Very specific: line 81
If the fix belongs in Lisa templates (the upstream change broke something), fix it in Lisa and go to Step 6a
- Very specific: line 82
If the fix belongs in the project's *.local.* files (project-specific override needed), fix it in the project and go to Step 6b
- Very specific: line 88
Run Lisa's own checks: bun run typecheck && bun run lint && bun run test
- Very specific: line 89
If Lisa's checks pass, go back to Step 3 (re-apply Lisa to the project)
- Very specific: line 90
If Lisa's checks fail, fix those too, then retry
- Very specific: line 102
Commit with message: chore: apply Lisa <version> templates
- Very specific: line 104
If upstream Lisa changes were made, commit and push those too
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Lisa Integration Test
Apply Lisa templates to a downstream project and verify it works end-to-end. If anything breaks, fix the upstream templates in Lisa and retry until the project passes all checks.
This must be run FROM the Lisa repository directory.
Prerequisites
- Running from the Lisa repo (has
src/core/lisa.ts) - The target project's working directory is clean (no uncommitted changes)
Instructions
Step 1: Validate Environment
- Confirm running from Lisa by checking for
src/core/lisa.ts - Extract project path from
$ARGUMENTS. If not provided, ask the user. - Validate the project path exists and has at least one project marker:
package.json(Node/Bun/TypeScript projects)Gemfileorconfig/application.rb(Rails projects)
- Check the project's working directory is clean:
git -C <project-path> status --porcelain- If dirty, tell the user and stop: "The project has uncommitted changes. Please commit or stash them first."
Step 2: Record Baseline
Before applying Lisa, record the project's current state:
- Run
git -C <project-path> log --oneline -1to note the current HEAD - Note the project's branch and whether there's an open PR:
git -C <project-path> branch --show-current
Step 3: Apply Lisa
Run from the Lisa directory:
bun run dev <project-path>If Lisa fails, report the error and stop.
Step 4: Check What Changed
Run git -C <project-path> status --short to see what Lisa modified.
If nothing changed, report "Lisa applied cleanly with no changes" and stop.
Step 5: Verify the Project
Run the project's verification commands in order. Stop at the first failure.
For Rails projects (Gemfile, bin/rails, or config/application.rb present), use the Rails path:
- Bundle check:
cd <project-path> && bundle check(orbundle installif dependencies are missing and the user approves dependency installation) - Database status:
cd <project-path> && bundle exec rails db:migrate:status - Lint:
cd <project-path> && bundle exec rubocopwhen RuboCop is configured; otherwise record "Lint: SKIPPED (RuboCop not configured)" - Test:
cd <project-path> && bundle exec rails test(or the project's documented Rails test command)
For Node/Bun/TypeScript projects, use the JS path:
- Typecheck:
cd <project-path> && bun run typecheck(ornpm run typecheckbased on package manager) - Lint:
cd <project-path> && bun run lint(or equivalent) - Test:
cd <project-path> && bun run test(or equivalent)
Determine the package manager by checking which lockfile exists:
bun.lockb→ bunpnpm-lock.yaml→ pnpmyarn.lock→ yarnpackage-lock.json→ npm
Step 6: Handle Failures
If any verification step fails:
- Diagnose: Analyze the error output to determine root cause
- Determine fix location:
- If the fix belongs in Lisa templates (the upstream change broke something), fix it in Lisa and go to Step 6a
- If the fix belongs in the project's
*.local.*files (project-specific override needed), fix it in the project and go to Step 6b
- Report what failed and what you're fixing
Step 6a: Fix Upstream in Lisa
- Make the fix in the Lisa template files
- Run Lisa's own checks:
bun run typecheck && bun run lint && bun run test - If Lisa's checks pass, go back to Step 3 (re-apply Lisa to the project)
- If Lisa's checks fail, fix those too, then retry
Step 6b: Fix in Project Local Files
- Make the fix in the project's local override files (e.g.,
tsconfig.local.json,eslint.config.local.ts,vitest.config.local.ts,jest.config.local.ts) - Go to Step 5 (re-verify the project)
Step 7: Commit and Push
Once all verification passes:
- Stage all changes in the project:
git -C <project-path> add <changed-files> - Commit with message:
chore: apply Lisa <version> templates - Push to the project's remote
- If upstream Lisa changes were made, commit and push those too
Step 8: Report Results
Output a summary:
## Lisa Integration Test: PASSED
**Project:** <project-path>
**Lisa version:** <version>
**Branch:** <branch>
### Changes Applied
- <list of changed files>
### Verification
- Typecheck: PASSED
- Lint: PASSED
- Tests: PASSED
### Upstream Fixes (if any)
- <list of Lisa template fixes made>
### Commits
- <project-commit-hash> chore: apply Lisa <version> templates
- <lisa-commit-hash> fix: <description> (if upstream fixes were needed)Important Notes
- Never skip verification — the whole point is proving it works empirically
- Fix upstream when possible — if Lisa broke something, fix the template, not the project
- Use local overrides for project-specific needs —
tsconfig.local.json,eslint.config.local.ts, etc. - Retry loop is bounded — if you've tried 3 fix-and-retry cycles without success, stop and report the situation to the user
- Preserve project conventions — check the project's commit message style before committing
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
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.

