agentleFS
SentryKnown publishergetsentry/sentry-cocoa/scripts/AGENTS.md

sentry-cocoa / scripts

AGENTS.md1.1k starsChanged 3 months agoMITView on GitHub

Scope: scripts/**. Also follow root instructions.

Trending

Quiet this year.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the getsentry/sentry-cocoa repository that our weekly crawl found: only 13 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about getsentry/sentry-cocoa

The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 13

Talked about on GitHub (13 times).

On GitHub · 13

8 more on GitHub
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository8 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Start scripts with set -euo pipefail

    line 8
  2. Very specific:

    Document every parameter in usage()

    line 10
  3. Very specific:

    Keep validate-xcframework.sh product-agnostic.

    line 13
  4. Very specific:

    Use assemble-xcframework.sh for XCArchive, standalone-framework, and static-library assembly

    line 14
  5. Distinctive:

    Avoid complex heredocs and move substantial logic into an appropriate standalone script

    line 15
  6. Very specific:

    Follow scripts/sentry-xcodebuild.sh as the named-parameter reference

    line 16
  7. Distinctive:

    Do not migrate unrelated positional arguments while making a focused change

    line 54
  8. Very specific:

    Keep scripts/bump.sh positional: Craft requires its two positional version arguments

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “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
AGENTS.md

Scripts

Scope: scripts/**. Also follow root instructions.

Shell Scripts

  • New scripts must use named --kebab-case parameters with short aliases, not positional parameters
  • Start scripts with set -euo pipefail
  • Declare defaults before usage() and validate required parameters after parsing
  • Document every parameter in usage()
  • Source ci-utils.sh for CI logging; use log_info for routine output and reserve log_notice for intentional GitHub annotations
  • Extract repeated logic into local functions; source a shared library for logic used by multiple scripts
  • Keep validate-xcframework.sh product-agnostic; invoke product-specific checks from the caller
  • Use assemble-xcframework.sh for XCArchive, standalone-framework, and static-library assembly
  • Avoid complex heredocs and move substantial logic into an appropriate standalone script
  • Follow scripts/sentry-xcodebuild.sh as the named-parameter reference

Template

#!/bin/bash
set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=./ci-utils.sh
source "$SCRIPT_DIR/ci-utils.sh"

PARAM_ONE=""
PARAM_TWO="default-value"

usage() {
    log_info "Usage: $0"
    log_info "  -p, --param-one <value>    Description of param one (required)"
    log_info "  -t, --param-two <value>    Description of param two (default: default-value)"
    exit 1
}

while [[ $# -gt 0 ]]; do
    case $1 in
        -p|--param-one) PARAM_ONE="$2"; shift 2 ;;
        -t|--param-two) PARAM_TWO="$2"; shift 2 ;;
        *) usage ;;
    esac
done

if [ -z "$PARAM_ONE" ]; then
    log_error "Error: --param-one is required"
    usage
fi

Legacy Scripts

  • Do not migrate unrelated positional arguments while making a focused change
  • Migrate a legacy script to named parameters only when required by the requested change
  • Keep scripts/bump.sh positional: Craft requires its two positional version arguments

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.