Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
- `src/` hosts the Lambda service code: `app.py` is the handler, `bedrock_client.py` wraps Bedrock calls, `state.py` manages DynamoDB persistence, and channel adapters live in `whatsapp.py` and `discord_integration.py`. Shared validation models sit in `schemas.py`.
Sign in to like and favorite skills
src/ hosts the Lambda service code: app.py is the handler, bedrock_client.py wraps Bedrock calls, state.py manages DynamoDB persistence, and channel adapters live in whatsapp.py and discord_integration.py. Shared validation models sit in schemas.py.tests/ mirrors the runtime modules with pytest cases and fixtures in conftest.py; add new suites as test_<feature>.py.events/ contains sample API Gateway payloads for quick local replay, while kb/ stores knowledge-base Markdown seeded into Bedrock RAG flows..aws-sam/; keep it ignored in commits.make install provisions .venv and installs both runtime (src/requirements.txt) and dev dependencies.make test (or .venv/bin/pytest -q) runs the unit suite with moto and responses stubs.make build wraps sam build for packaging the Lambda; make local runs sam local start-api to expose /webhook and /discord against sam-local-env.json.curl -X POST $JsonChatUrl -d '{"text":"hi"}' -H 'Content-Type: application/json'.snake_case; classes (including Pydantic models) in PascalCase.config.py for logging setup and load secrets via environment variables, not inline literals.guard.py and centralise channel logic rather than branching in the entrypoint.tests/ with descriptive test_ names; colocate fixtures in conftest.py or dedicated helper modules.test_inbound_text_flow.py.Update config and bedrock client, Chore: trim pycache). Squash noisy virtualenv changes before committing.make test, sam build), link any tracking issues, and include screenshots or sample transcripts when UX behaviour changes..env.example for local secrets, but rely on AWS Secrets Manager (TWILIO_SECRET_NAME) in shared environments.TWILIO_VALIDATE_SIGNATURE true outside local development and rotate tokens alongside secret updates.template.yaml IAM statements for least privilege whenever introducing new AWS integrations.