A skill covering all APIs in the Day.js official documentation. Depending on the user's task, read the appropriate README.md and follow it to individual files.
Directory Structure
skills/dayjs/
SKILL.md
references/
installation/
README.md
installation.md
parse/
README.md
parse.md
get-set/
README.md
get-set.md
manipulate/
README.md
manipulate.md
display/
README.md
display.md
query/
README.md
query.md
i18n/
README.md
i18n.md
plugin/
README.md
plugin-overview.md
format-plugins.md
display-plugins.md
getset-plugins.md
parse-plugins.md
query-plugins.md
timezone-utc-plugins.md
other-plugins.md
customization/
README.md
customization.md
durations/
README.md
durations.md
timezone/
README.md
timezone.md
samples/
README.md
basic-parsing.md
custom-format-parsing.md
formatting.md
add-subtract.md
start-end-of.md
comparison.md
relative-time.md
locale.md
timezone.md
duration.md
scripts/
README.md
install.md
plugin.md
i18n.md
customization.md
test.md
Exploration Procedure
Derive the category from the task, and identify the target page in the category's README.md:
- Find the category corresponding to the task in the mapping table below
- of that category
references/{category}/README.mdrefer to identify the target page - Read the
.mdof the relevant page to check the details
Task → Category Mapping
| Task | Category | Reference README |
|---|---|---|
| npm install, CDN loading, TypeScript configuration | installation | references/installation/README.md |
| Creating objects with dayjs(), string parsing, Unix timestamp, clone, isValid | parse | references/parse/README.md |
| Getting/setting millisecond to year, weekday, quarter, max, min | get-set | references/get-set/README.md |
| Date/time manipulation with add, subtract, startOf, endOf, utcOffset | manipulate | references/manipulate/README.md |
| format、fromNow、diff、unix、toDate、toJSON、toISOString | display | references/display/README.md |
| isBefore、isSame、isAfter、isBetween、isDayjs、isLeapYear | query | references/query/README.md |
| Locale loading, language switching, list of month names and day names | i18n | references/i18n/README.md |
| Plugins such as AdvancedFormat, RelativeTime, Duration, UTC, Timezone, etc. | plugin | references/plugin/README.md |
| Month name/day name customization, relative time templates, custom locales | customization | references/customization/README.md |
| dayjs.duration()、humanize、format、as、get | durations | references/durations/README.md |
| dayjs.tz(), timezone conversion, default timezone settings | timezone | references/timezone/README.md |
| I want to know typical usage | samples | samples/README.md |
| I want to know installation, CLI commands, plugin settings | scripts | scripts/README.md |