agentleFS
moasqmoasq/ios-dev-agent/.agents/skills/charts/SKILL.md

charts

Skill4 starsChanged 6 months agoMITView on GitHub

Use when implementing data visualizations. Covers Swift Charts: BarMark, LineMark, AreaMark, axis customization, scrollable charts.

8 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use aminer-data-search, auto-target-tracker and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dav-niu474Skill

    aminer-data-search

    使用 AMiner 开放平台 API 进行学术数据查询与分析。当用户需要查询学者信息、论文详情、机构数据、期刊内容或专利信息时使用此 skill。 触发场景:提到 AMiner、学术数据查询、查论文/学者/机构/期刊/专利、学术问答搜索、引用分析、科研机构分析、学者画像、论文引用链、期刊投稿分析等。 支持 6 大组合工作流(学者全景分析、论文深度挖掘、机构研究力分析、期刊论文监控、学术智能问答、专利链分析)以及 28 个独立 API 的直接调用。 即使用户只说"帮我查一下 XXX 学者"或"找找关于 XXX 的论文",也应主动使用此 skill。

    Also in 3 projects that use this

  • dav-niu474Skill

    auto-target-tracker

    自动目标进度追踪器。在对话中检测到目标相关图片(笔记、进度、截图、记录)时,自动调用 VLM 识别关键信息并记录到目标日记。适用于学习管理、健身追踪、工作进度、习惯养成、创作记录等所有目标管理场景。

    Also in 3 projects that use this

  • Liang-MHSkill

    stock_analysis

    获取 A 股、基金和港股的实时行情和技术分析数据

    Also in 3 projects that use this

  • +9 more from dav-niu474

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this guide when implementing or modifying chart/data visualization features.

    line 8
  2. Very specific:

    Use AppTheme.Colors.* for chart colors, not hardcoded values

    line 65
  3. Very specific:

    Prefer BarMark for discrete categories, LineMark for continuous trends

    line 66
  4. Very specific:

    Add .chartYScale(domain: 0...10) when the scale should be fixed

    line 67

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Swift Charts

Use this guide when implementing or modifying chart/data visualization features.

Framework

import Charts

Basic Chart Container

Chart {
    ForEach(data) { item in
        BarMark(
            x: .value("Category", item.category),
            y: .value("Value", item.value)
        )
    }
}

Mark Types

MarkUse Case
BarMarkComparisons, distributions, categories
LineMarkTrends over time
AreaMarkCumulative values, ranges
PointMarkScatter plots, data points
RuleMarkReference lines, thresholds

Color Coding

BarMark(x: .value("Day", item.day), y: .value("Count", item.count))
    .foregroundStyle(by: .value("Category", item.category))

Axis Customization

Chart { ... }
    .chartXAxis {
        AxisMarks(values: .stride(by: .day, count: 4)) { value in
            AxisValueLabel(format: .dateTime.day().month())
        }
    }
    .chartYAxis {
        AxisMarks { value in
            AxisGridLine()
            AxisValueLabel()
        }
    }

Scrollable Charts (large datasets)

Chart { ... }
    .chartScrollableAxes(.horizontal)
    .chartXVisibleDomain(length: 7)  // Show 7 items at a time

Rules

  • Extract Chart into a separate computed property — avoid body complexity
  • Use AppTheme.Colors.* for chart colors, not hardcoded values
  • Prefer BarMark for discrete categories, LineMark for continuous trends
  • Add .chartYScale(domain: 0...10) when the scale should be fixed

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.