(I am using a murder story as an example but my question is not limited to detective stories.)
If you were to shorten a detective story down to just the facts, the way people died and the places all the suspects were at that time. and you would then post that as a murder mystery.
You won't tell people the book or the author because that would make it way too easy. But you could mention it was from a detective book and people would also have to name the author and the book or you put it in spoiler tags in your question once it has be answered. I do think you will have to give credit to the original writer of the story but not immediately.
Are you allowed to do this (or is this frowned upon by the community)? and would this make for good puzzles?