lfy-ops

Original🇨🇳 Chinese
Translated

Operational data query skill, which is applicable to obtaining operational data such as the enterprise's fiscal year time range and current week number. Use this skill when users need to: (1) Query current fiscal year information; (2) Get the current week number of the fiscal year.

6installs
Added on

NPX Install

npx skill4agent add 6fy/lfy-cli lfy-ops

SKILL.md Content (Chinese)

View Translation Comparison →

Operational Data Query Skill

lfy-cli
is a command-line program provided by Lufy, all operations are completed by executing
lfy-cli
commands.
Interact with the operation system via
lfy-cli ops <interface name> '{}'
.

Notes

  • If
    errcode
    is not
    0
    or the return format is abnormal, you need to inform the user of the error information
  • Fiscal year information is set by the enterprise, and dates are returned in Beijing time
  • Technical fields such as
    week_no
    are not displayed by default

Interface List

Get Current Fiscal Year Information (get_fiscal_year)

bash
lfy-cli ops get_fiscal_year '{}'
Get the time range of the enterprise's current fiscal year, calculated based on the fiscal year start date set by the enterprise.
See API Details.

Get Current Week Number (get_current_week)

bash
lfy-cli ops get_current_week '{}'
Get the current week number of the fiscal year, calculated from the start date of the fiscal year.
See API Details.

Typical Workflow

Get Fiscal Year Information

Classic query examples:
  • "Which fiscal year are we in currently?"
  • "When does the fiscal year start?"
  • "Check the fiscal year range of this year"
Process:
  1. Call the
    get_fiscal_year
    command to obtain fiscal year information
  2. Display the start and end dates of the fiscal year
Display Result:
📅 Current fiscal year information:
Fiscal YearStart DateEnd Date
<current_fiscal_year> Year<start_date><end_date>

Get Current Week Number

Classic query examples:
  • "What week is it now?"
  • "What is the date range of this week?"
  • "Current week information"
Process:
  1. Call the
    get_current_week
    command to obtain current week information
  2. Display the current week number and date range
Display Result:
📆 Current week information:
Week NameStart DateEnd Date
<week_name><start_date><end_date>