Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计异常

lisa-learn丽莎学习

Agent Skill

lisa-learn 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

857

周安装

35

GitHub Stars

1

下载量

274
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lisa-learn(丽莎学习)
来源仓库:https://github.com/codyswanngt/lisa
仓库路径:skills/lisa-learn
安装命令:
npx skills add https://github.com/codyswanngt/lisa --skill lisa-learn
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/codyswanngt/lisa --skill lisa-learn

简介

lisa-learn 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态或协作事项进行整理。
  • 通过 npx 命令从指定 GitHub 仓库安装并使用。
  • 使用前需确认权限范围、维护状态及是否涉及联网或文件操作。
  • lisa-learn 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Lisa Learn

Analyze the git diff in a downstream project after Lisa was applied. Identify improvements the project had that Lisa overwrote, potential breakage, safe overrides, and neutral changes. Offer to upstream improvements back to Lisa templates.

This completes a feedback loop: /lisa-integration-test applies and verifies, /lisa-learn analyzes the transition for upstream opportunities, and /lisa-review-project compares static drift.

Prerequisites

This skill must be run FROM the Lisa repository directory. The target project must have Lisa applied and have uncommitted changes from a recent Lisa run.

Instructions

Step 1: Validate Environment

  1. Confirm running from Lisa by checking for src/core/lisa.ts.

- If not in Lisa, error with: This command must be run FROM the Lisa repository. Current directory does not contain src/core/lisa.ts. Usage: /lisa-learn /path/to/target-project

  1. Extract project path from $ARGUMENTS. If not provided, ask the user: Which project would you like to analyze? Path: [user provides path]
  2. Validate the project path:

- Check the path exists and is a directory - Check at least one project marker exists (e.g., package.json for Node-based projects, bin/rails or config/application.rb for Rails projects)

  1. Check the project has uncommitted changes: git -C <project-path> status --porcelain

- If clean (no output), stop with: ` No uncommitted changes found in the project. Run bun run dev <project-path> first, then re-run /lisa-learn to analyze what changed. `

Step 2: Detect Types and Build File Map

  1. Detect project types by checking the project filesystem:

- cdk: cdk.json exists OR aws-cdk in package.json dependencies - nestjs: nest-cli.json exists OR @nestjs in package.json dependencies - expo: app.json exists OR eas.json exists OR expo in package.json dependencies - typescript: tsconfig.json exists OR typescript in package.json dependencies - rails: bin/rails exists OR config/application.rb exists - npm-package: package.json without "private": true AND has main, bin, exports, or files

  1. Build the type hierarchy. Example: if expo detected, types = [all, typescript, expo]

- If no types detected, use [all]

  1. Build the file map by scanning Lisa's template directories:

- For each type in the hierarchy, list files in {type}/copy-overwrite/, {type}/copy-contents/, {type}/create-only/ - Store as a lookup: {[relativePath]: {strategy, sourceTemplate}} - If the same relativePath appears in multiple types, the most specific type wins

Step 3: Capture Git Diff

Run these commands against the project:

  1. git -C <project-path> diff — full diff for modified tracked files
  2. git -C <project-path> diff --stat — summary of changes
  3. git -C <project-path> status --porcelain — identify new/untracked files (?? prefix) and modified files (M prefix)

Store the full diff output and the list of changed files for analysis.

Step 4: Correlate Diff with File Map

For each file that appears in the git diff or status output:

  1. Look up the file's strategy and source template in the file map (from Step 2)
  2. Record the mapping: {file, strategy, sourceTemplate, diff}
  3. Flag files NOT in the file map as "collateral changes" — these are files that Lisa didn't directly manage but were affected (e.g., lockfiles, generated files)

Step 5: Analyze Each Changed File

Categorize each changed file based on its strategy and the nature of the diff:

CategoryMeaningAction
Upstream CandidateProject had something better that Lisa overwroteOffer to upstream
Potential BreakageLisa's change might break the projectWarn user
Safe OverrideLisa's update is correct, project was outdatedNo action needed
Neutral ChangeCosmetic/formatting differencesSkip

Analysis rules by strategy:

  • copy-overwrite files (primary targets for learning):

- In the diff, - lines = project's old version (what was there before Lisa), + lines = Lisa's replacement - Analyze if removed content (- lines) represents an improvement over Lisa's version: - Better error handling, bug fixes, additional config options, better docs → Upstream Candidate - Project-specific config (env vars, custom paths, API keys) → Safe Override (Lisa correctly replaced) - Formatting differences only → Neutral Change - Check if added content (+ lines) might break the project: - Removes project-required config → Potential Breakage - Adds conflicting settings → Potential Breakage

  • copy-contents files:

- Only + lines (additions are safe, they're new content Lisa added) - Note additions but they're typically Safe Override

  • merge / package-lisa files (e.g., package.json):

- Check if Lisa removed or overwrote project-specific values - Removed dependencies the project needs → Potential Breakage - Updated versions → Safe Override - Added governance dependencies → Safe Override

  • create-only files:

- These should NOT be modified by Lisa after initial creation - If they appear in the diff, flag as unexpected → Potential Breakage

  • Collateral changes (not in file map):

- Lockfile changes → Neutral Change - Other changes → investigate and categorize

Step 6: Breakage Detection (Optional)

Ask the user if they want to run verification checks:

Would you like to run typecheck/lint/test on the project to detect breakage?

1. Yes — run all checks
2. No — skip verification

If yes:

  1. Detect package manager from lockfile:

- bun.lockb → bun - pnpm-lock.yaml → pnpm - yarn.lock → yarn - package-lock.json → npm

  1. Run in order (stop at first failure):

- cd <project-path> && <pm> run typecheck - cd <project-path> && <pm> run lint - cd <project-path> && <pm> run test

  1. Report results and add any failures to the Potential Breakage category

Step 7: Generate Report

Create a markdown report:

# Lisa Learn Report

**Lisa Directory:** {lisa-path}
**Target Project:** {project-path}
**Project Types:** {types}
**Project Name:** {from package.json name or directory basename}
**Generated:** {current date/time ISO}

## Summary

- **Total files changed:** X
- **Upstream Candidates:** X
- **Potential Breakage:** X
- **Safe Overrides:** X
- **Neutral Changes:** X
- **Collateral Changes:** X

## Upstream Candidates

These files had improvements that Lisa overwrote. Consider adopting them back into Lisa templates.

### {relative/path/to/file}

**Source Template:** {type}/copy-overwrite/{path}
**Strategy:** copy-overwrite

<details>
<summary>View diff (- = project's version, + = Lisa's version)</summary>

\`\`\`diff
{diff output}
\`\`\`

</details>

**Analysis:** {Why the project's version was better and what should be upstreamed}

---

[Repeat for each upstream candidate]

## Potential Breakage

These changes might break the project. Review carefully.

### {relative/path/to/file}

**Source Template:** {type}/copy-overwrite/{path}
**Strategy:** copy-overwrite

<details>
<summary>View diff</summary>

\`\`\`diff
{diff output}
\`\`\`

</details>

**Risk:** {What might break and why}

---

[Repeat for each potential breakage]

## Safe Overrides

These are correct template updates where Lisa's version is an improvement over the project's outdated version.

<details>
<summary>X files safely updated</summary>

- {file1} — {brief reason}
- {file2} — {brief reason}

</details>

## Neutral Changes

<details>
<summary>X files with cosmetic/formatting differences</summary>

- {file1}
- {file2}

</details>

## Collateral Changes

Files not managed by Lisa that were affected:

- {file1} — {brief description}

Step 8: Offer to Upstream

For each Upstream Candidate, offer to copy the project's pre-Lisa version back into the corresponding Lisa template:

I found X upstream candidates. Would you like to upstream any improvements back to Lisa?

[List files with brief descriptions]

Options:
1. Upstream all candidates
2. Select specific files to upstream
3. Review candidates in detail first
4. Skip — no changes to Lisa

If the user wants to upstream:

  1. For each selected file, get the project's pre-Lisa version: git -C <project-path> show HEAD:<relativePath>
  2. Determine the target Lisa template path from the Step 4 mapping
  3. Confirm with user: "Copy project's version of {relativePath} to {sourceTemplate}?"
  4. If confirmed, write the pre-Lisa content to the Lisa template file using the Write tool
  5. Report success for each file

Step 9: Handle Breakage

If any Potential Breakage items were identified, offer options:

I found X potential breakage items. How would you like to handle them?

Options:
1. Fix in Lisa templates (upstream the fix)
2. Fix in project local overrides (*.local.* files)
3. Review each breakage item
4. Skip — handle manually later

For option 1 (fix upstream): Analyze the breakage, determine the fix, apply it to the Lisa template, and report.

For option 2 (fix in project): Identify the appropriate local override file (e.g., tsconfig.local.json, eslint.config.local.ts, vitest.config.local.ts, jest.config.local.ts) and apply the fix there.

Important Notes

  • Never auto-upstream without confirmation — always ask the user before modifying Lisa templates
  • Pre-Lisa content comes from git — use git -C <project-path> show HEAD:<path> to get the committed version before Lisa's uncommitted changes
  • Preserve the most specific type directory — if a template exists in expo/copy-overwrite/, upstream there, not to all/copy-overwrite/
  • Handle missing files gracefully — if a file appears in the diff but not in the file map, it's a collateral change
  • Compare carefully — some differences may be platform-specific (line endings, env vars) and should NOT be upstreamed
  • Retry loop is bounded — if fixing breakage requires more than 3 iterations, stop and report the situation to the user
  • This skill is Lisa-only — it is NOT distributed to downstream projects via all/copy-overwrite/

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.91%
按下载量换算98

Claude

30.78%
按下载量换算84

Cursor

18.82%
按下载量换算52

Gemini CLI

10.36%
按下载量换算28

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills