docs(skills): add dpdata driver and plugin skills#952
docs(skills): add dpdata driver and plugin skills#952njzjz-bot wants to merge 5 commits intodeepmodeling:masterfrom
Conversation
for more information, see https://pre-commit.ci
|
Follow-up: ignored local uv artifacts ( Authored by OpenClaw (model: gpt-5.2) |
Merging this PR will not alter performance
|
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds development artifact exclusions to .gitignore ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip Flake8 can be used to improve the quality of Python code reviews.Flake8 is a Python linter that wraps PyFlakes, pycodestyle and Ned Batchelder's McCabe script. To configure Flake8, add a '.flake8' or 'setup.cfg' file to your project root. See Flake8 Documentation for more details. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #952 +/- ##
=======================================
Coverage 86.37% 86.37%
=======================================
Files 86 86
Lines 8086 8086
=======================================
Hits 6984 6984
Misses 1102 1102 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR adds two new documentation “Agent Skills” under skills/ describing (1) how to extend dpdata via external plugin packages (Format registration + entry points) and (2) how to use dpdata Driver plugins via System.predict() for labeling systems, plus a small .gitignore update for local uv artifacts.
Changes:
- Add
dpdata-pluginskill documenting external plugin discovery viadpdata.pluginsentry points. - Add
dpdata-driverskill documentingSystem.predict()/Driver usage, including an ASE-based example. - Ignore local
uv.lockand.venv/in.gitignore.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| skills/dpdata-plugin/SKILL.md | New skill explaining external dpdata plugin packaging and entry point registration. |
| skills/dpdata-driver/SKILL.md | New skill explaining Driver plugins and System.predict() usage with examples. |
| .gitignore | Ignore uv.lock and .venv/ local development artifacts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
skills/dpdata-driver/SKILL.md
Outdated
| Dependencies (recommended): use `uv`: | ||
|
|
||
| ```bash | ||
| uv run --with numpy --with ase python3 your_script.py |
skills/dpdata-driver/SKILL.md
Outdated
|
|
||
| print("energies", np.array(ls.data["energies"])) | ||
| print("forces shape", np.array(ls.data["forces"]).shape) | ||
| print("virials shape", np.array(ls.data["virials"]).shape) |
skills/dpdata-plugin/SKILL.md
Outdated
| return { | ||
| "atom_numbs": [20], | ||
| "atom_names": ["X"], | ||
| "atom_types": [0] * 20, |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@skills/dpdata-plugin/SKILL.md`:
- Around line 42-47: The fenced code block in SKILL.md containing the directory
listing (dpdata_random/ / pyproject.toml / dpdata_random/ / __init__.py) lacks a
language tag, triggering markdownlint MD040; update the opening fence from ```
to ```text (or another appropriate language) so the block starts with ```text
and keep the contents unchanged to satisfy the linter.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: d6294426-6143-49d8-b540-cfcd265691cd
📒 Files selected for processing (3)
.gitignoreskills/dpdata-driver/SKILL.mdskills/dpdata-plugin/SKILL.md
|
Addressed CodeRabbit markdownlint MD040: added language tag to the directory tree code fence (```text). Authored by OpenClaw (model: gpt-5.2) |
|
Addressed review comments:
Authored by OpenClaw (model: gpt-5.2) |
This PR adds two Agent Skills under
skills/to cover dpdata functionality beyond the existing CLI skill:dpdata-driver: dpdata Python Driver plugins andSystem.predict()usage (incl. runnable ASE example)dpdata-plugin: how to write/install external dpdata plugins viaFormat.register(...)+project.entry-points."dpdata.plugins"These are documentation-only additions and do not change dpdata runtime behavior.
Authored by OpenClaw (model: gpt-5.2)
Summary by CodeRabbit
Documentation
Chores