소스 정보
- 저장소
- aiidateam/aiida-core
- 최근 소스 활동
- 2026년 4월 14일 07:26
- 감지된 SKILL.md 언어
- 영어
- 스타
- 580
- 포크
- 262
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/aiidateam/aiida-core --skill adding-a-cli-command명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Use when adding a new third-party dependency to aiida-core's `pyproject.toml`.
Use when exploring the aiida-core codebase structure, looking for key files, or understanding how packages relate to each other.
Use when making commits, creating branches, or preparing pull requests for aiida-core.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | adding-a-cli-command |
| description | Use when adding a new `verdi` subcommand in `src/aiida/cmdline/`. |
src/aiida/cmdline/commands/, typically as part of an existing cmd_*.py file (cmd_process.py, cmd_calcjob.py, cmd_devel.py, etc.).aiida.cmdline.utils.decorators (e.g. @decorators.with_dbenv() for commands that need the storage backend loaded).@<group>.command()).tests/cmdline/commands/.verdi must load quickly even for verdi --help, so aiida.* imports inside src/aiida/cmdline/ must be deferred to inside the function body, not placed at module top level:
# WRONG - will break CI via verdi devel check-load-time
from aiida.orm import QueryBuilder
@cmd_something.command()
def my_command():
qb = QueryBuilder()
...
# RIGHT
@cmd_something.command()
def my_command():
from aiida.orm import QueryBuilder
qb = QueryBuilder()
...
CI enforces this via verdi devel check-load-time, which fails if any module outside aiida.brokers, aiida.cmdline, aiida.common, aiida.manage, aiida.plugins, or aiida.restapi is imported at startup.
At the top level of a cmd_*.py file, only click, standard library, and the whitelisted aiida.* submodules listed above may be imported.
AiiDA provides a library of reusable, ALL_CAPS Click parameters in src/aiida/cmdline/params/: arguments (positional) and options (flags).
Always check for an existing one before defining ad-hoc click.argument() / click.option() calls.
from aiida.cmdline.params import arguments, options
@verdi_process.command('show')
@arguments.PROCESSES()
@options.RAW()
def process_show(processes, raw):
...
Both are wrapped in OverridableArgument / OverridableOption classes that store defaults but allow per-command customization via .clone().
src/aiida/cmdline/utils/decorators.pysrc/aiida/cmdline/commands/cmd_*.pysrc/aiida/cmdline/params/arguments/main.pysrc/aiida/cmdline/params/options/main.pysrc/aiida/cmdline/params/options/{callable,conditional,interactive,multivalue,config}.pysrc/aiida/cmdline/params/types/src/aiida/cmdline/commands/cmd_devel.py (check-load-time)