dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:BruceXcluding/dev-almanac
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A programmer's almanac and daily horoscope for Claude Code.
Chinese almanac · daily horoscope · fortune slips · offline · deterministic · no tokens · never blocks your work
A traditional Chinese almanac tells you which activities suit each day and which to avoid. dev-almanac translates it for programmers. When the almanac favors a marriage, you merge branches today. When it warns against breaking ground, you leave the database schema alone.
The mod also gives a horoscope for the twelve signs, a fortune tube with 100 slips, and a small card above the prompt. Everything comes from the date. The mod makes no network or model calls and uses no tokens.
| Part | What it shows |
|---|---|
| Card above the prompt | The lunar date, your sign's stars, and a ticker of today's do and don't lists, your lucky item and today's festival |
| Status line | One short entry, such as 🀄 Do: write docs ☿ retro |
Almanac pane (/almanac) |
The full day: a seasonal postcard, the do and don't lists, the clash, the solar term, the twelve double-hours, the horoscope and the fortune tube |
Fortune slips (/qiuqian) |
One of 100 slips in seven grades, from Supreme to Dire, each with a two-line verse about code |
The card stays above the prompt for the whole session. When you send a prompt, an open card folds back to one line. Other mods' bars above the prompt show under it. On the card, Hide removes it until the session ends, and Turn off removes it in every session. To show it again, run /almanac card. The status line stays in both cases.
The mod shows Chinese by default. To show English, run /almanac en or press 🌐 English in the pane.
At the prompt of a terminal session, type:
/plugin install dev-almanac --marketplace BruceXcluding/dev-almanac
Type y to add the marketplace.
Select a scope. The mod is active at once.
Type /almanac en to open the almanac in English.
Type your birthday in the 🎂 field. This shows your sign and your Chinese zodiac animal.
From a shell, use this command:
claude plugin install dev-almanac --marketplace BruceXcluding/dev-almanac
The desktop app does not run /plugin. In the app, do these steps:
BruceXcluding/dev-almanac.The repository also has a dsh version in packages/dsh. It adds an almanac tab to the right sidebar, the /almanac and /qiuqian commands, and an almanac_today tool for the agent. It uses the same almanac code as the Claude Code mod.
The repository also has a Codex plugin in plugins/codex. It gives Codex four tools: almanac_today, draw_fortune_slip, set_almanac_birthday and set_almanac_language. To install it, run these commands:
codex plugin marketplace add BruceXcluding/dev-almanac
codex plugin add dev-almanac@dev-almanac
Then ask Codex "What does the almanac say about today?" or "Draw me a fortune slip".
| Command | What it does |
|---|---|
/almanac |
Opens the almanac pane. /huangli does the same. |
/almanac en |
Shows the mod in English. /almanac zh shows it in Chinese. |
/almanac birthday 1997-06-01 |
Sets your birthday. /almanac birthday clear removes it. |
/almanac card |
Shows the card above the prompt again. /almanac card off turns it off. |
/qiuqian |
Draws a fortune slip. /fortune does the same. Each draw gives a new slip. |
huangli is the Chinese word for the almanac, and qiuqian means "to draw a fortune slip".
The mod calculates the almanac for your local date. It shows:
Some examples of the mapping:
| Almanac term | On the do list | On the don't list |
|---|---|---|
| Breaking ground | Start a new project, git init |
Change the database schema |
| Opening for business | Release, go live | Release on a Friday |
| Marriage | Merge branches | Merge a long-lived branch |
| Ancestral offering | Write docs | |
| Removal, house sweeping | Delete dead code, pay tech debt | |
| Travel, moving house | Deploy, migrate servers | Deploy to production |
Special days get their own line on the card and in the pane. These include the Lunar New Year, the Mid-Autumn Festival, 1024 Programmers' Day and the first day of each solar term. About once in each lunar month, a Great Fortune day shows a gold card and a toast.
Each sign gets a new horoscope every day. The same date and sign always give the same result.
| Item | Example |
|---|---|
| Stars | Overall, coding, debugging and review, from 1 to 5 |
| Lucky color | Celadon blue · VS Code blue (the color also tints the card's border) |
| Lucky item | A rubber duck, a mechanical keyboard, an iced Americano |
| Lucky number | An HTTP status, a port or an exit code, such as 418 I'm a teapot |
| Lucky language or tool | Rust, git bisect, jq |
| Lucky hour | One of today's lucky double-hours |
| Pair partner | The best sign for pair programming today |
| Helpful person, watch out for, advice | One line each |
During Mercury retrograde, debugging loses one star and the card shows a warning. If today's clash is your zodiac animal, the card also shows a warning.
/almanac.There are 100 slips in seven grades: Supreme, Great, Good, Fair, Mixed, Poor and Dire. For the same birthday, the first draw of the day is the same on every machine. Each new draw gives a different slip.
The birthday and the language are set in the pane, and the mod remembers them. You can also set defaults as plugin options:
| Option | Values | Default |
|---|---|---|
birthday |
A date as YYYY-MM-DD. It gives your sign and your zodiac animal. |
empty |
language |
zh (Chinese) or en (English) |
zh |
level |
lively: card, status line, toasts and animations. quiet: status line only. off: commands only. |
lively |
These rules decide how the mod works. Keep them when you change it.
hooks/almanac.ts. Terms with the same meaning share a group, and a group shows as one row. Each list shows five rows. The other rows are under +N more.the local date, your birthday
│
hooks/almanac.ts lunar-javascript → lunar date, stems and branches, do/don't groups, clash, solar term, hours, element
hooks/horoscope.ts seeded by date and sign → stars, lucky color (five elements), item, number, hour
hooks/fortune.ts seeded by date, birthday and draw count → one of 100 slips
hooks/flavor.ts festival, solar-term and weekday lines
│
hooks/day.ts one Today value for every part
│
hooks/register.tsx card above the prompt · status line · almanac pane · /qiuqian
hooks/art.ts the postcard and the fortune tube as SVG, and text frames for the terminal
claude plugin validate .
claude plugin test .
node --test tests/dsh.test.mjs tests/codex.test.mjs
The tests cover known dates, the horoscope, the clash, Mercury retrograde, the slips and each part on every surface. The dsh and Codex tests need node scripts/build-dsh.mjs first.
The Chinese UI shows these terms. The English UI and this README use the English names.
| English | Chinese | Pinyin |
|---|---|---|
| Chinese almanac | 黄历 | huánglì |
| Do / Don't | 宜 / 忌 | yí / jì |
| Clash | 冲 | chōng |
| Unlucky direction | 煞 | shà |
| Solar term | 节气 | jiéqì |
| Double-hour | 时辰 | shíchen |
| Stems and branches | 干支 | gānzhī |
| Auspicious / inauspicious day | 黄道日 / 黑道日 | huángdào rì / hēidào rì |
| Chinese zodiac animal | 生肖 | shēngxiào |
| Five elements | 五行 | wǔxíng |
| Day element | 纳音 | nàyīn |
| Fortune tube / fortune slip | 签筒 / 签 | qiāntǒng / qiān |
| Supreme … Dire (slip grades) | 上上签 … 下下签 | shàngshàng qiān … xiàxià qiān |
| Great Fortune day | 大吉 | dàjí |
| Mercury retrograde | 水逆 | shuǐnì |
| Breaking ground | 破土, 动土 | pòtǔ, dòngtǔ |
| Opening for business | 开市 | kāishì |
| Marriage | 嫁娶 | jiàqǔ |
| Ancestral offering | 祭祀 | jìsì |
| Removal, house sweeping | 解除, 扫舍 | jiěchú, sǎoshè |
| Travel, moving house | 出行, 移徙 | chūxíng, yíxǐ |
hooks/vendor/ with its license.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。