Input
$ARGUMENTS
Command
| Command | Description | Example |
|---|---|---|
save <이름> <파일> |
Save as Template | /hwp-template save IRB IRB서식.hwpx |
list |
Saved Template List | /hwp-template list |
info <이름> |
Template Details | /hwp-template info IRB |
delete <이름> |
Delete Template | /hwp-template delete IRB |
Save Location
Templates are current project directory saved based on:
{프로젝트}/
└── templates/
├── index.json # 템플릿 메타데이터
└── {이름}.hwpx # 템플릿 파일들
Processing Procedure
save
templates/create directory if it does not exist- Copy file to
templates/{이름}.hwpxcopy to - Analyze template and extract field list
templates/index.jsonSave metadata in:
{
"templates": [
{
"name": "IRB",
"file": "IRB.hwpx",
"fields": ["연구과제명", "연구책임자", "연구기간"],
"created": "2024-01-15"
}
]
}
list
templates/index.jsonRead- Display template list in table format:
템플릿 목록:
| 이름 | 필드 수 | 등록일 |
|------|---------|--------|
| IRB | 15개 | 2024-01-15 |
info
templates/index.jsonFind the corresponding template in- Display details:
- Name, file path
- Field list (items to fill in)
- Registration date
delete
templates/{이름}.hwpxDelete filetemplates/index.jsonRemove item from- Deletion complete notice
Usage
Saved templates are /hwp-fillUse by name instead of file path in:
/hwp-fill IRB 내용.md
→ templates/IRB.hwpxautomatically find and use
Precautions
- Template names may contain only English/Korean/numbers (no special characters)
- When saving with the same name, confirm overwriting the existing template
templates/The directory is.gitignorerecommended to add to (since it is a personal format)