KeyFlow LogoKEYLOW
CLI ToolRelease Notes
Start Building

AI Agent Guide

Tell any AI to post it to KeyFlow

This is the guide Claude, Codex, AGY, and other AI agents read when you ask them to upload to KeyFlow. The CLI command keyflow guide prints the same text.

View raw Markdownkeyflow guideUpdated 2026-09-24

KeyFlow CLI Guide for AI Agents

Use this when a person asks you to post, upload, or publish something to KeyFlow (키플로우).
It works the same for any agent that can run shell commands.

1. Steps

  1. Write one Markdown file (for example post.md). Use the frontmatter and syntax below.
  2. Run keyflow check post.md --json and fix every error.
  3. Ask the person before uploading. Say whether it will be a private draft or a public post.
  4. Run keyflow push post.md. Report the returned post ID and URL.
  5. To change the post later, edit the same file and run keyflow push post.md again. It updates the same post.

If keyflow is not logged in, ask the person to run keyflow login themselves.

2. Frontmatter (all optional)

yaml
---title: Post title          # default: the first "# heading"tags: [nextjs, cache]publish: false             # true = publish (needs the person's approval)visibility: public         # public | followers | privatecover: ./images/cover.png  # local path or https URLsummary: One-line summary  # default: KeyFlow writes an AI summarylanguage: ko               # ko | en, default: detected---
  • No publish means a private draft.
  • publish: true without visibility publishes as public.
  • The CLI adds a keyflow: block with the post ID after the first upload. Do not edit or remove it unless the person wants a new post.
  • If you do not set title, the first # heading becomes the title and is not repeated in the body.

3. Images

  • Use local paths as normal Markdown images: ![Architecture diagram](/images/diagram.png).
  • Paths are relative to the Markdown file. The CLI uploads them and rewrites the uploaded copy only.
  • Allowed: PNG, JPEG, WebP, GIF. Max 10 MB each, 50 per post. SVG is not accepted.
  • Always write alt text in the brackets.

4. KeyFlow syntax

Callouts

markdown
> [!TIP]> Shorter builds come from caching the dependency layer.

Types: NOTE, TIP, IMPORTANT, WARNING, CAUTION, AI, USER, BOT, STEP.
Use USER and BOT for a question and answer, and STEP for numbered tutorial steps.

Code

Always name the language after the opening fence:

markdown
```tsexport const answer = 42;```

Math

Inline: $E = mc^2$. Block:

MASKED_BLOCK_4

Link card

MASKED_BLOCK_5

Document card

MASKED_BLOCK_6

Runnable code (Sandpack)

__MASKED_BLOCK_7__sandpack
{"template":"react","files":{"/App.js":"export default function App() { return

Hi

; }"}}
MASKED_BLOCK_8`

5. Common mistakes

  • A #word after a space or at the start of a line becomes a tag link. Write \#word or put it in backticks if you do not want a tag.
  • Do not start the body with the same heading as title.
  • Scripts and inline event handlers are removed when the post is rendered.
  • Do not invent new callout types. Unknown types fail keyflow check.

6. Rules

  • Never ask for, print, log, or store KeyFlow credentials, tokens, or .env values.
  • Get the person's approval before publish: true or --publish.
  • Do not claim a post is published unless keyflow push reported it.
KeyFlow LogoKEYLOW

Editorial Studio for modern writers.

Product

  • Home
  • About
  • ✨Become a Writer

Community

  • CLI GitHub

Legal

  • Privacy Policy
  • Terms of Service

© 2026 KeyFlow. All rights reserved.