xiaohongshu
xiaohongshu
mdf-md-api-docs-majo
MDF-style API reference documentation for markdown files. Use when writing API references or documentation from code using the meadow Docstring Format (MDF). Covers function and class documentation templates with proper formatting for arguments, returns, raises, methods, and usage examples.
Full skill instructions
API reference format following meadow Docstring Format (MDF) structure for markdown documentation.
Provide clear, consistent API documentation in markdown files that mirrors Python docstring conventions while remaining readable as plaintext.
writing-docs-majo when API docs are neededmdf-majo instead)writing-docs-majo)### def|class module.Name()T | None not Optional[T]### def|class module.Name()### <def|class> module.Name()
Examples:
### def tomlantic.ModelBoundTOML.set_field()### class tomlantic.ModelBoundTOML### def surplus.process()Order (all optional except preamble):
Use list format with two-space linebreak:
- arguments:
- `name: str`
description of the argument
- `count: int = 0`
optional count with default
- methods:
- [`def process()`](#def-moduleprocess)
processes the data
- `def validate()`
validates inputs
- returns: `ProcessedResult`
structured result containing processed fields
- returns:
- `SuccessResult`
when processing succeeds
- `ErrorResult`
when processing fails with error details
- raises: `ValueError`
raised when input is invalid
- raises:
- `ValueError`
raised when input is invalid
- `TimeoutError`
raised when operation exceeds time limit
- [`CustomError`](#class-modulecustomerror)
raised for domain-specific failures
### def tomlantic.ModelBoundTOML.set_field()
sets a field by its location. not recommended for general use due to a lack of
type safety, but useful when setting fields programatically
will handle `pydantic.ValidationError` into more toml-friendly error messages.
set `handle_errors` to `False` to raise the original `pydantic.ValidationError`
- signature:
```python
def set_field(
self,
location: str | tuple[str, ...],
value: object,
handle_errors: bool = True,
) -> None: ...
arguments:
location: str | tuple[str, ...]value: objecthandle_errors: bool = Trueraises:
AttributeErrortomlantic.TOMLValidationErrorpydantic.ValidationErrorhandle_errors is False
### Class Example
```markdown
### class tomlantic.ModelBoundTOML
glue class for pydantic models and tomlkit documents
- signature:
```python
class ModelBoundTOML(Generic[M]): ...
attributes:
model: pydantic.BaseModelmethods:
def model_dump_toml()def get_field()def set_field()usage:
toml = ModelBoundTOML(YourModel, tomlkit.parse(...))
toml.model.message = "hello"
document = toml.model_dump_toml()
### Simple Function Example
```markdown
### def surplus.process_file()
process a single file through the surplus pipeline
- signature:
```python
def process_file(
path: Path,
options: ProcessingOptions | None = None,
) -> ProcessingResult: ...
arguments:
path: Pathoptions: ProcessingOptions | None = Nonereturns: ProcessingResult
result containing processed output and metadata
raises: FileNotFoundError
if the file does not exist
usage:
result = process_file(Path("data.txt"))
if result.success:
print(result.output)
## Formatting Quick Reference
| Element | Format |
|---------|--------|
| Type | `` `Type` `` or `` `module.Type` `` |
| Variable | `` `name: Type` `` |
| Function signature | `` `def name(...) -> Return: ...` `` |
| Link internal | `` [`Type`](#section) `` |
| Link external | `` [`Type`](https://...) `` |
| Description separator | Two spaces + newline |
| Nested indentation | 4 spaces |
## Integration
This skill works alongside:
- `writing-docs-majo` — General documentation standards
- `mdf-majo` — Python docstring format (the inspiration for this markdown format)
- `python-majo` — Python code standards
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience