スキル一覧に戻る
nathanial

add-dependency

by nathanial

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: add-dependency description: Add a dependency to a Lean project's lakefile. Use when adding requires, dependencies, or imports to a project.

Add Dependency

Add dependencies to a Lean project with tier validation.

Quick Start

  1. Identify the project and dependency
  2. Check tier ordering (can't depend on higher tiers)
  3. Find the dependency's current version tag
  4. Update lakefile.lean with require statement
  5. Run lake update and lake build

Dependency Tiers

Projects should only depend on projects in the same or lower tiers.

TierProjects
0crucible, staple, cellar, assimptor, raster
1herald, trellis, collimator, protolean, scribe, chronicle, terminus, fugue, linalg, chronos, measures, rune, tincture, wisp, chisel, ledger, quarry, convergent, reactive, tabular, entity, totem, conduit, tracer, smalltalk
2citadel, legate, oracle, parlance, arbor, blockfall, twenty48, minefield, solitaire, stencil
3loom, afferent, canopy, ask, lighthouse, enchiridion, docgen
4todo-app, homebase-app, chroma, vane, worldmap, grove, cairn, afferent-demos

Require Statement Format

require <name> from git "https://github.com/nathanial/<repo>" @ "v0.0.X"

Finding Current Version

cd <category>/<dependency>
git describe --tags --abbrev=0

Or check GitHub releases.

Common Dependencies

DependencyUse CaseRequire Statement
crucibleTestingrequire crucible from git "https://github.com/nathanial/crucible" @ "v0.0.1"
collimatorOptics/lensesrequire collimator from git "https://github.com/nathanial/collimator" @ "v0.0.1"
terminusTUI appsrequire terminus from git "https://github.com/nathanial/terminus" @ "v0.0.1"
wispHTTP clientrequire wisp from git "https://github.com/nathanial/wisp" @ "v0.0.1"
chronosTime/datesrequire chronos from git "https://github.com/nathanial/chronos-lean" @ "v0.0.1"

External Dependencies

-- Mathlib (for collimator)
require mathlib from git "https://github.com/leanprover-community/mathlib4" @ "v4.X.0"

-- Batteries (for ledger)
require batteries from git "https://github.com/leanprover-community/batteries" @ "v4.X.0"

-- Plausible (for property testing)
require plausible from git "https://github.com/leanprover-community/plausible" @ "v4.X.0"

After Adding

lake update   # Fetch new dependency
lake build    # Verify it builds
lake test     # Ensure tests still pass

Tier Violation Warning

If adding a dependency from a higher tier, warn the user:

⚠️ Warning: Adding <dep> (Tier X) to <project> (Tier Y) violates tier ordering. This creates a circular dependency risk. Consider:

  • Moving <project> to a higher tier
  • Finding an alternative in a lower tier
  • Extracting shared code to a new lower-tier project

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です