filescom-expectations
Expectations let your Files.com site define what “correct” file delivery looks like, continuously evaluate whether it happened, and keep history when it did…
Skill by Files-com
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/files-com-filescom-expectations
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/filescom-expectations
What's inside
- Skill name
filescom-expectations- Description
- Expectations let your Files.com site define what “correct” file delivery looks like, continuously evaluate whether it happened, and keep history when it did not.
- License
- MIT
- Instructions
- 174 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# filescom-expectations
Expectations let your Files.com site define what “correct” file delivery looks like, continuously evaluate whether it happened, and keep history when it did not.
Expectations are meant to answer operational questions like:
* Did the expected file arrive?
* Was it on time?
* Did it meet the required shape and count rules?
* Is there an active issue someone needs to acknowledge?
Expectations are different from Automations and Syncs. Automations and Syncs act on files; Expectations monitor whether expected files arrived on time, in the right place, and in the right shape. In practice, Expectations are the sensor and Automations are the actuator.
An Expectation combines four concepts:
1. **Scope**: where to look for candidate files, using `path`, `source`, and optional `exclude_pattern`.
2. **Trigger / timing**: when a window opens and how long it stays eligible, using `trigger`, schedule fields, `lookback_interval`, `late_acceptance_interval`, `inactivity_interval`, and `max_open_interval`.
3. **Criteria**: what must be true for the window to succeed, using the structured `criteria` JSON document.
4. **Outcome history**: what happened over time, exposed through `ExpectationEvaluation` history and `ExpectationIncident` lifecycle records.
## Scope and matching
Expectations reuse the familiar Files.com path-plus-glob model.
The `path` field identifies the folder scope, while `source` identifies which files within that scope are candidates. `exclude_pattern` removes files from consideration.
Like Automations, these fields support glob-style matching. Expectations treat those matches as one logical candidate set for each window. A single Expectation does not implicitly fan out into separate per-customer or per-folder evaluations just because the path contains wildcards.
## Expectation windows
Expectations are evaluated in windows.
Each window is persisted as an `ExpectationEvaluation` record. A window opens, remains `open` while evidence can still arrive, and then closes into a terminal result such as `success`, `late`, `missing`, or `invalid`.
An Expectation has only one open window at a time.
## Trigger modes
Expectations can open windows in three ways:
* `daily`: run on a recurring daily/weekly/monthly/quarterly/yearly cadence using `interval` and either `recurring_day` or `recurring_days`.
* `custom_schedule`: run using either the reusable Site-level Schedule selected by `schedule_id` or specific weekdays and times stored on the Expectation.
* `manual`: an operator explicitly opens the window.
Schedule-driven expectations define an on-time deadline and may optionally remain eligible to close as `late` during `late_acceptance_interval`.
Manual expectations have no concept of `late`; they open when triggered and close based on inactivity or hard-stop timing.
## Success criteria
The `criteria` field is a structured JSON object describing what counts as success for the window.
Criteria v1 can express things like:
* file count constraints
* total byte constraints
* allowed extensions
* filename regex validation
* forbidden files
* required named or globbed files with their own per-file constraints
Criteria v2 adds `content_validation`, which runs a customer-authored Files Transform Script in either `per_file` or `whole_batch` mode. Per-file scripts receive the file contents parsed by FTS as `payload`. Whole-batch scripts receive an array of file objects containing `path`, `name`, `size`, `last_modified_at`, and each file's parsed `payload`.
A content-validation script returns `true` or `{ success: true }` to pass. It returns `false` or `{ success: false, errors: [...] }` to fail. Error entries may be strings or structured objects with values such as `message`, `field`, `row`, `expected`, and `actual`; these details are preserved in readable form in the Evaluation's `criteria_errors`. Script, parsing, download, and size-limit errors also fail the criterion. Each file is limited to 100 MB, and whole-batch mode additionally limits the combined raw input to 100 MB.
Required file rule keys may also include standard strftime-style date/time tokens like `%Y`, `%m`, and `%d`. Those tokens are resolved at evaluation time using a stable window anchor: schedule-driven expectations use the window's `deadline_at`, while manual and upload expectations use the window's `opened_at`.
## History and incidents
The Expectation itself stores summary state like `last_evaluated_at`, `last_success_at`, `last_failure_at`, and `last_result`.
For deeper inspection:
* `ExpectationEvaluation` history shows each open or closed window and the evidence captured for it.
* `ExpectationIncident` records track ongoing failure situations over time, including acknowledge, snooze, and resolve actions.
Manual windows do not open incidents in v1. Schedule-driven failures can open incidents, and later qualifying success can resolve them.
All subcommands also accept the flags documented in [`CONTEXT.md`](../../CONTEXT.md) (`--api-key`, `--format`, `--workspace-id`, `--debug`, and the pagination flags `--cursor` / `--per-page` / `--max-pages` on `list`). Those are not repeated below.
## Commands
### `files-cli expectations list`
List Expectations.
| Flag | Type | Description |
| --- | --- | --- |
| `--sort-by` | object | If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `name` or `disabled`. |
| `--filter` | object | If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled` and `workspace_id`. Valid field combinations are `[ workspace_id, disabled ]`. |
### `files-cli expectations find`
Show Expectation.
| Flag | Type | Description |
| --- | --- | --- |
| `--id` | int64 | Expectation ID. **Required.** |
### `files-cli expectations create [path]`
Create Expectation.
| Flag | Type | Description |
| --- | --- | --- |
| `--name` | string | Expectation name. |
| `--description` | string | Expectation description. |
| `--path` | string | Path scope for the expectation. Supports workspace-relative presentation. |
| `--source` | string | Source glob used to select candidate files. |
| `--exclude-pattern` | string | Optional source exclusion glob. |
| `--disabled` | bool | If true, the expectation is disabled. |
| `--trigger` | enum | How this expectation opens windows. One of: `manual`, `upload`, `daily`, `custom_schedule`. |
| `--interval` | string | If trigger is `daily`, this specifies how often to run the expectation. |
| `--recurring-day` | int64 | If trigger is `daily`, this selects the day number inside the chosen interval. |
| `--recurring-days` | []int64 | If trigger is `daily`, this selects one or more day numbers inside a `week`, `month`, `quarter`, or `year` interval. |
| `--schedule-id` | int64 | If trigger is `custom_schedule`, the reusable Schedule used instead of the Expectation's schedule fields. |
| `--schedule-days-of-week` | []int64 | If trigger is `custom_schedule`, the 0-based weekdays used by the schedule. |
| `--schedule-times-of-day` | []string | Times of day in HH:MM format for the Expectation schedule. |
| `--schedule-time-zone` | string | Time zone used by the Expectation schedule. |From Files-com/files-cli, MIT.
More from Files-com/files-cli
- 0.655score
filescom-gpg-keys
Files-com
A GPGKey object on Files.com is used to securely store both the private and public keys associated with a GPG (GNU Privacy Guard) encryption key pair.
SkillAFreshness: A★ 46Claude Code +9 - 0.655score
filescom-bundle-notifications
Files-com
A BundleNotification is an E-Mail sent out to users when certain actions are performed on or within a shared set of files and folders.
SkillAFreshness: A★ 46Claude Code +9 - 0.655score
filescom-child-site-management-policies
Files-com
A Child Site Management Policy is a centralized policy defined by a parent site to enforce consistent configurations across child sites.
SkillAFreshness: A★ 46Claude Code +9 - 0.655score
filescom-clickwraps
Files-com
A Clickwrap is a legal agreement (such as an NDA or Terms of Use) that your Users and/or Bundle/Inbox participants will need to agree to via a "Clickwrap" UI…
SkillAFreshness: A★ 46Claude Code +9 - 0.655score
filescom-bundles
Files-com
A Bundle is the API/SDK term for the feature called Share Links in the web interface.
SkillAFreshness: A★ 46Claude Code +9 - 0.652score
filescom-api-keys
Files-com
An APIKey is a key that allows programmatic access to your Site.
SkillAFreshness: A★ 46Claude Code +9 - 0.652score
filescom-ai-tasks
Files-com
An AI Task defines a Files.com AI prompt that can run on a schedule or in response to file actions.
SkillAFreshness: A★ 46Claude Code +9 - 0.652score
filescom-expectation-evaluations
Files-com
An ExpectationEvaluation records one open or closed window for an Expectation.
SkillAFreshness: A★ 46Claude Code +9 - 0.652score
filescom-as2-outgoing-messages
Files-com
An AS2OutgoingMessage is a single record created for each individual AS2 file transfer out to a Partner.
SkillAFreshness: A★ 46Claude Code +9 - 0.652score
filescom-as2-incoming-messages
Files-com
An AS2IncomingMessage is a single record created for each individual AS2 file transfer incoming from a Partner.
SkillAFreshness: A★ 46Claude Code +9 - 0.652score
filescom-as2-stations
Files-com
An AS2Station is a remote AS2 server that can send data into Files.com and receive data from Files.com.
SkillAFreshness: A★ 46Claude Code +9 - 0.652score
filescom-ai-assistant-personalities
Files-com
An AI Assistant Personality defines a system prompt used to customize the in-app AI Assistant.
SkillAFreshness: A★ 46Claude Code +9
Signals
- Stars
- 46
- Forks
- 4
- Open issues
- 0
- Last commit (this folder)
- Sep 24, 2026 (1 month ago)
- Last release
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Files-com/files-cli
- Website
- developers.files.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Files-com
- 0.655score
filescom-child-site-management-policies
Files-com
A Child Site Management Policy is a centralized policy defined by a parent site to enforce consistent configurations across child sites.
SkillAFreshness: A★ 46Claude Code +9 - 0.655score
filescom-clickwraps
Files-com
A Clickwrap is a legal agreement (such as an NDA or Terms of Use) that your Users and/or Bundle/Inbox participants will need to agree to via a "Clickwrap" UI…
SkillAFreshness: A★ 46Claude Code +9 - 0.655score
filescom-bundle-notifications
Files-com
A BundleNotification is an E-Mail sent out to users when certain actions are performed on or within a shared set of files and folders.
SkillAFreshness: A★ 46Claude Code +9 - 0.655score
filescom-bundles
Files-com
A Bundle is the API/SDK term for the feature called Share Links in the web interface.
SkillAFreshness: A★ 46Claude Code +9 - 0.655score
filescom-gpg-keys
Files-com
A GPGKey object on Files.com is used to securely store both the private and public keys associated with a GPG (GNU Privacy Guard) encryption key pair.
SkillAFreshness: A★ 46Claude Code +9 - 0.652score
filescom-ai-tasks
Files-com
An AI Task defines a Files.com AI prompt that can run on a schedule or in response to file actions.
SkillAFreshness: A★ 46Claude Code +9
Cite this page
filescom-expectations skill. Agent Mart. https://agentmart.dev/skills/files-com-filescom-expectations (last updated 2026-10-24)