Skip to content
Back to skills

Ccal

ASecurity

Chinese Calendar with Lunar-Solar Conversion

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
content-marketinggobash

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add thiagofernandes1987-create/APEX --skill ccal --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ccal?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ccal
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thiagofernandes1987-create-ccal/badge)](https://www.skillsdirectory.com/skills/thiagofernandes1987-create-ccal)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ccal
description: Chinese Calendar with Lunar-Solar Conversion
---

## Data

### Location

```
$___X_CMD_ROOT_DATA/ccal/data/
├── ccal-data-v0.0.6.tar.xz      # Main archive (stream-read, not extracted)
└── v0.0.6/cache/                # Pre-extracted index (after first run)
    ├── year.tsv                  # Year index
    └── month.tsv                 # Month index
```

### Download

- **URL**: https://codeberg.org/x-cmd/ccal-data/releases/download/v0.0.6/ccal-data.tar.xz
- **Trigger**: First run or `x ccal lunar update`

## Archive Contents

```
ccal-data/
├── index/
│   ├── year.tsv      # Year index
│   └── month.tsv     # Month index
└── lunar/
    └── {year}_{month}.tsv   # Monthly data (e.g., 2026_03.tsv)
```

## Direct Read (No Extraction)

Use `x zuz cat <archive> <path>` to stream-read from archive:

```bash
DATA="$___X_CMD_ROOT_DATA/ccal/data/ccal-data-v0.0.6.tar.xz"

# Read year index
x zuz cat "$DATA" ccal-data/index/year.tsv

# Read month index
x zuz cat "$DATA" ccal-data/index/month.tsv

# Read specific month: 2026 March
x zuz cat "$DATA" ccal-data/lunar/2026_03.tsv

# Read all months of 2026
x zuz cat "$DATA" ccal-data/lunar/2026_*.tsv
```

## Cached Read (After First Run)

```bash
CACHE="$___X_CMD_ROOT_DATA/ccal/data/v0.0.6/cache"

# Use cached index if available
[ -f "$CACHE/year.tsv" ] && cat "$CACHE/year.tsv"
```

## Reference

- `lib/awk/lunar.awk` - Lunar calendar computation
- `lib/awk/gongli.awk` - Gregorian calendar computation
- `lib/awk/ccal.awk` - Main calendar logic

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…